[GH-ISSUE #3132] Straw beds doesn't break after you sleep #829

Closed
opened 2026-11-02 15:42:13 +07:00 by bsakaguchi · 6 comments
Owner

Originally created by @BinaryHarbinger on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3132

Straw beds doesn't break after you used them.

Originally created by @BinaryHarbinger on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3132 Straw beds doesn't break after you used them.
bsakaguchi 2026-11-02 15:42:13 +07:00
Author
Owner

@proshiv85-byte commented on GitHub (Oct 28, 2026):

I can reproduce this too. Some details that might help:

Versions: game v0.2.93 (Minecraft 26.3), launcher 0.2.20, Arch Linux

Expected (vanilla 26.3): the Straw Bed is destroyed with no item drop, and the subtitle subtitles.block.straw_bed.break_leave ("Straw Bed destroyed") is shown.

Actual: the bed stays in place and can be used again.

Tested in: [Creative / Survival / both]

Possible lead: 26.3 changed the bed rule format (explodes → destroy_on_use, new destroy_on_leave, and a separate minecraft:gameplay/straw_bed_rule). Maybe the straw bed rule's destroy fields aren't applied?

<!-- gh-comment-id:6473581549 --> @proshiv85-byte commented on GitHub (Oct 28, 2026): I can reproduce this too. Some details that might help: **Versions:** game v0.2.93 (Minecraft 26.3), launcher 0.2.20, Arch Linux **Expected (vanilla 26.3):** the Straw Bed is destroyed with no item drop, and the subtitle `subtitles.block.straw_bed.break_leave` ("Straw Bed destroyed") is shown. **Actual:** the bed stays in place and can be used again. Tested in: [Creative / Survival / both] Possible lead: 26.3 changed the bed rule format (`explodes` → `destroy_on_use`, new `destroy_on_leave`, and a separate `minecraft:gameplay/straw_bed_rule`). Maybe the straw bed rule's destroy fields aren't applied?
Author
Owner

@kira-horizon[bot] commented on GitHub (Oct 29, 2026):

Also reported on Discord by Kreklin: Discord thread

What I did: He slept on a straw bed.

What happened: When I woke up, the straw bed didn’t break, even though in the original it breaks when you get up.

What I expected: It should break after the player has slept.

Horizon version: 0.2.97

OS, CPU, GPU: Windows 11, i31200f, 1650 gtx.

<!-- gh-comment-id:6486129303 --> @kira-horizon[bot] commented on GitHub (Oct 29, 2026): Also reported on Discord by **Kreklin**: [Discord thread](https://discord.com/channels/1559227979002028052/1565189043208331436) > What I did: He slept on a straw bed. > > What happened: When I woke up, the straw bed didn’t break, even though in the original it breaks when you get up. > > What I expected: It should break after the player has slept. > > Horizon version: 0.2.97 > > OS, CPU, GPU: Windows 11, i31200f, 1650 gtx. - [java_versions_2026.10.29_-_11.18.54.06.mp4](https://cdn.discordapp.com/attachments/1565189043208331436/1565189043929612318/java_versions_2026.10.29_-_11.18.54.06.mp4?ex=6ae3ff63&is=6ae2ade3&hm=ca9e5c73c813ff231a5e174eb920d2733fbb9c08b0319058669941b9b213a931&) - [v0.2.97_2026.10.29_-_11.19.43.08.mp4](https://cdn.discordapp.com/attachments/1565189043208331436/1565189044797837363/v0.2.97_2026.10.29_-_11.19.43.08.mp4?ex=6ae3ff64&is=6ae2ade4&hm=7a8c671e606fd2006c5c7e7d0878638cfa06a1f6a79e7ceb4529df289a9ac7c1&) <!-- kira -->
Author
Owner

@degepie commented on GitHub (Oct 30, 2026):

🤖 Agent: written by degepie's AI agent (Claude Code, Claude Opus 5.5), not by degepie personally. This looks fixed on main already: commit 1474b118b "Break a straw bed when its sleeper gets up in the Overworld", from merged PR #3954. The reports here are from v0.2.93 and v0.2.97, older than that merge.

Game::free_left_beds in game/beds.rs now destroys the straw bed in the Overworld once its sleeper has left, with no drop. That matches LivingEntity.stopSleeping → StrawBedBlock.destroyOnLeave in the 26.3 jar and the Overworld's straw_bed_rule.

We checked this by reading the code against the jar; we did not run it in game, and a dedicated-server connection is unchecked. Could someone confirm on a current nightly? If it works there, this can be closed.

<!-- gh-comment-id:6524838737 --> @degepie commented on GitHub (Oct 30, 2026): 🤖 Agent: written by degepie's AI agent (Claude Code, Claude Opus 5.5), not by degepie personally. This looks fixed on main already: commit 1474b118b "Break a straw bed when its sleeper gets up in the Overworld", from merged PR #3954. The reports here are from v0.2.93 and v0.2.97, older than that merge. `Game::free_left_beds` in `game/beds.rs` now destroys the straw bed in the Overworld once its sleeper has left, with no drop. That matches `LivingEntity.stopSleeping` → `StrawBedBlock.destroyOnLeave` in the 26.3 jar and the Overworld's `straw_bed_rule`. We checked this by reading the code against the jar; we did not run it in game, and a dedicated-server connection is unchecked. Could someone confirm on a current nightly? If it works there, this can be closed.
Author
Owner

@degepie commented on GitHub (Oct 30, 2026):

🤖 Agent: written by degepie's AI agent (Claude Code, Claude Opus 5.5), not by degepie personally. Update: now checked in the real game, and it's fixed on main.

Tested on origin/main c3db4a63d (contains 1474b118b) against v0.2.96 as a control, each as a host window and a LAN guest, Overworld at night, getting up both ways (the leave button and sleeping to morning):

Build Straw bed after getting up Normal bed
v0.2.96 stays (bug) stays
c3db4a63d gone, both halves, no drop stays

Not covered: the Nether and End, and dying or disconnecting while asleep. This can be closed unless someone wants those covered first.

Pipeline: Sonnet 5.5 (in-game check) · Opus 5.5 (report review)

<!-- gh-comment-id:6525554422 --> @degepie commented on GitHub (Oct 30, 2026): 🤖 Agent: written by degepie's AI agent (Claude Code, Claude Opus 5.5), not by degepie personally. Update: now checked in the real game, and it's fixed on main. Tested on origin/main c3db4a63d (contains 1474b118b) against v0.2.96 as a control, each as a host window and a LAN guest, Overworld at night, getting up both ways (the leave button and sleeping to morning): | Build | Straw bed after getting up | Normal bed | |---|---|---| | v0.2.96 | stays (bug) | stays | | c3db4a63d | gone, both halves, no drop | stays | Not covered: the Nether and End, and dying or disconnecting while asleep. This can be closed unless someone wants those covered first. <sub>Pipeline: Sonnet 5.5 (in-game check) · Opus 5.5 (report review)</sub>
Author
Owner

@proshiv85-byte commented on GitHub (Oct 30, 2026):

5. 🤖 Agent: written by degepie's AI agent (Claude Code, Claude Opus 5.5), not by degepie personally. Update: now checked in the real game, and it's fixed on main.
Tested on origin/main c3db4a6 (contains 1474b11) against v0.2.96 as a control, each as a host window and a LAN guest, Overworld at night, getting up both ways (the leave button and sleeping to morning):

    Build
    Straw bed after getting up
    Normal bed
    
    
    
    
    v0.2.96
    stays (bug)
    stays
    
    
    [c3db4a6](https://github.com/horizon-rust/horizon/commit/c3db4a63d577967f4684203d8e617816a7614ec0)
    gone, both halves, no drop
    stays
    
    
    
    Not covered: the Nether and End, and dying or disconnecting while asleep. This can be closed unless someone wants those covered first.
    Pipeline: Sonnet 5.5 (in-game check) · Opus 5.5 (report review)

thanks for the fix

<!-- gh-comment-id:6526069166 --> @proshiv85-byte commented on GitHub (Oct 30, 2026): > 5\. 🤖 Agent: written by degepie's AI agent (Claude Code, Claude Opus 5.5), not by degepie personally. Update: now checked in the real game, and it's fixed on main. > Tested on origin/main [c3db4a6](https://github.com/horizon-rust/horizon/commit/c3db4a63d577967f4684203d8e617816a7614ec0) (contains [1474b11](https://github.com/horizon-rust/horizon/commit/1474b118b416d326f4a7c74b9ca8af70f3900ebe)) against v0.2.96 as a control, each as a host window and a LAN guest, Overworld at night, getting up both ways (the leave button and sleeping to morning): > > > > Build > Straw bed after getting up > Normal bed > > > > > v0.2.96 > stays (bug) > stays > > > [c3db4a6](https://github.com/horizon-rust/horizon/commit/c3db4a63d577967f4684203d8e617816a7614ec0) > gone, both halves, no drop > stays > > > > Not covered: the Nether and End, and dying or disconnecting while asleep. This can be closed unless someone wants those covered first. > Pipeline: Sonnet 5.5 (in-game check) · Opus 5.5 (report review) thanks for the fix
Author
Owner

@kacpherek commented on GitHub (Oct 30, 2026):

This looks fixed on main: 1474b118b (#3954): straw bed destroyed when the sleeper gets up. Closing; if it still happens on the latest build, please reopen with your version and logs/latest.log.

<!-- gh-comment-id:6527758185 --> @kacpherek commented on GitHub (Oct 30, 2026): This looks fixed on main: 1474b118b (#3954): straw bed destroyed when the sleeper gets up. Closing; if it still happens on the latest build, please reopen with your version and `logs/latest.log`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#829
No description provided.