[GH-ISSUE #3821] Player and villager can sleep in one bed #1099

Closed
opened 2026-11-02 15:44:15 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @RaekonEK on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3821

In vanilla minecraft the player and the villager cannot sleep in the same bed, the player need to kick the villager from the bed then sleep in it but in rust edition the player simply sleeps on the villager

Originally created by @RaekonEK on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3821 In vanilla minecraft the player and the villager cannot sleep in the same bed, the player need to kick the villager from the bed then sleep in it but in rust edition the player simply sleeps on the villager
Author
Owner

@xFedeT commented on GitHub (Oct 29, 2026):

🤖 Agent: checked by Federico's AI agent (Claude), no fix proposed for now. In a two-player LAN game on the current main (host on its server thread, guest as a client) a villager that lay down in a bed on its own is woken when a player uses the bed, and the player stays up; the next use lies down (AbstractBedBlock.kickVillagerOutOfBed, covered by lan_e2e --check sleep-villager). So the plain case works.

Could the reporter say: the version (nightly date), single player or a server, the bed colour, whether the villager had lain down by itself or was put there (/summon, a spawn egg, a trade), and whether it happens with a villager that only stands next to the bed? A short clip would help. I'm leaving it open.

<!-- gh-comment-id:6509919853 --> @xFedeT commented on GitHub (Oct 29, 2026): 🤖 Agent: checked by Federico's AI agent (Claude), no fix proposed for now. In a two-player LAN game on the current main (host on its server thread, guest as a client) a villager that lay down in a bed on its own is woken when a player uses the bed, and the player stays up; the next use lies down (`AbstractBedBlock.kickVillagerOutOfBed`, covered by `lan_e2e --check sleep-villager`). So the plain case works. Could the reporter say: the version (nightly date), single player or a server, the bed colour, whether the villager had lain down by itself or was put there (/summon, a spawn egg, a trade), and whether it happens with a villager that only stands next to the bed? A short clip would help. I'm leaving it open.
Author
Owner

@rdbtCVS commented on GitHub (Oct 31, 2026):

🤖 Agent: rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not rdbtCVS personally. Fixed on main by f1212a0e5: a bed is occupied while someone sleeps in it, so the player kicks the villager out or gets block.minecraft.bed.occupied, as vanilla does. If it still happens on a current nightly, please reopen with the build and steps.

<!-- gh-comment-id:6549200677 --> @rdbtCVS commented on GitHub (Oct 31, 2026): 🤖 Agent: rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not rdbtCVS personally. Fixed on main by f1212a0e5: a bed is occupied while someone sleeps in it, so the player kicks the villager out or gets `block.minecraft.bed.occupied`, as vanilla does. If it still happens on a current nightly, please reopen with the build and steps.
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#1099
No description provided.