[GH-ISSUE #868] [multiplayer] LAN guests can't use workstation menus (anvil, enchanting table, stonecutter, ...) #248

Closed
opened 2026-11-02 15:37:38 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/868

🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself.

Split from #848 (reported by Tydragon00): "the guest can't use brewing stands (check every block with a menu)".

The brewing stand, hopper, dispenser and dropper are fixed in the #848 PRs. Every block menu was checked on main with the LAN bots (tools/lan_e2e.py, one host and one guest). These workstation menus still don't work for a LAN guest. Either the host never opens a menu for the guest, or the guest prints "Horizon cannot show … screens yet" and closes it:

  • anvil (minecraft:anvil, AnvilMenu, plus ServerboundRenameItemPacket)
  • enchanting table (minecraft:enchantment, EnchantmentMenu: data slots for costs, clues and the seed, plus ServerboundContainerButtonClickPacket)
  • grindstone (minecraft:grindstone)
  • stonecutter (minecraft:stonecutter: recipe list, button clicks)
  • loom (minecraft:loom)
  • cartography table (minecraft:cartography_table)
  • smithing table (minecraft:smithing)
  • crafter (minecraft:crafter_3x3: disabled slots as data slots, ServerboundContainerSlotStateChangedPacket)
  • beacon (minecraft:beacon, plus ServerboundSetBeaconPacket)
  • lectern (minecraft:lectern, button clicks for page turns and taking the book)

For each one, the host side needs:

  • ServerPlayer.openMenu with the right MenuType
  • the menu's click handling on the host's menu engine (as lan_machine_click does for furnaces and brewing stands)
  • its data slots (ContainerSetData)
  • any extra serverbound packets it uses

The guest side needs:

  • remote_open_screen, mapping the menu type to the station screen
  • menu_slot, for the slot layout
  • routing the screen's buttons to the server instead of running them locally

These menus are independent, so this can go one menu per PR. Each one needs a tools/lan_e2e.py check, run with and without --server-thread.

Originally created by @ludovic111 on GitHub (Oct 18, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/868 > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself. Split from #848 (reported by Tydragon00): "the guest can't use brewing stands (check every block with a menu)". The brewing stand, hopper, dispenser and dropper are fixed in the #848 PRs. Every block menu was checked on main with the LAN bots (`tools/lan_e2e.py`, one host and one guest). These workstation menus still don't work for a LAN guest. Either the host never opens a menu for the guest, or the guest prints "Horizon cannot show … screens yet" and closes it: - anvil (`minecraft:anvil`, AnvilMenu, plus `ServerboundRenameItemPacket`) - enchanting table (`minecraft:enchantment`, EnchantmentMenu: data slots for costs, clues and the seed, plus `ServerboundContainerButtonClickPacket`) - grindstone (`minecraft:grindstone`) - stonecutter (`minecraft:stonecutter`: recipe list, button clicks) - loom (`minecraft:loom`) - cartography table (`minecraft:cartography_table`) - smithing table (`minecraft:smithing`) - crafter (`minecraft:crafter_3x3`: disabled slots as data slots, `ServerboundContainerSlotStateChangedPacket`) - beacon (`minecraft:beacon`, plus `ServerboundSetBeaconPacket`) - lectern (`minecraft:lectern`, button clicks for page turns and taking the book) For each one, the host side needs: - `ServerPlayer.openMenu` with the right `MenuType` - the menu's click handling on the host's menu engine (as `lan_machine_click` does for furnaces and brewing stands) - its data slots (`ContainerSetData`) - any extra serverbound packets it uses The guest side needs: - `remote_open_screen`, mapping the menu type to the station screen - `menu_slot`, for the slot layout - routing the screen's buttons to the server instead of running them locally These menus are independent, so this can go one menu per PR. Each one needs a `tools/lan_e2e.py` check, run with and without `--server-thread`.
Author
Owner

@ludovic111 commented on GitHub (Oct 22, 2026):

🤖 Agent: fix in #1165, #1166, #1167, #1168, #1169, #1170 (a stack; merge in that order). Guests get the loom, stonecutter, grindstone, anvil, smithing table, enchanting table and beacon, each with a tools/lan_e2e.py check passing in-frame and with --server-thread. The crafter, lectern and cartography table aren't done yet, so this issue stays open.

<!-- gh-comment-id:6333706687 --> @ludovic111 commented on GitHub (Oct 22, 2026): 🤖 Agent: fix in #1165, #1166, #1167, #1168, #1169, #1170 (a stack; merge in that order). Guests get the loom, stonecutter, grindstone, anvil, smithing table, enchanting table and beacon, each with a tools/lan_e2e.py check passing in-frame and with --server-thread. The crafter, lectern and cartography table aren't done yet, so this issue stays open.
Author
Owner

@ludovic111 commented on GitHub (Oct 22, 2026):

🤖 Agent: fix in #1172 (the crafter, stacked on #1170). Still to do: the lectern and the cartography table.

<!-- gh-comment-id:6334059757 --> @ludovic111 commented on GitHub (Oct 22, 2026): 🤖 Agent: fix in #1172 (the crafter, stacked on #1170). Still to do: the lectern and the cartography table.
Author
Owner

@ludovic111 commented on GitHub (Oct 22, 2026):

🤖 Agent: the lectern and the cartography table for LAN guests are in #1188, the last PR of the stack (#1165 → #1166 → #1167 → #1168 → #1169 → #1170 → #1172 → #1188). With it, every workstation menu works for guests, so it closes this issue once merged.

<!-- gh-comment-id:6337589478 --> @ludovic111 commented on GitHub (Oct 22, 2026): 🤖 Agent: the lectern and the cartography table for LAN guests are in #1188, the last PR of the stack (#1165 → #1166 → #1167 → #1168 → #1169 → #1170 → #1172 → #1188). With it, every workstation menu works for guests, so it closes this issue once merged.
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#248
No description provided.