[GH-ISSUE #7843] Clients ignore the server's block and item tags (UpdateTags) #6055

Open
opened 2026-11-03 06:08:16 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @arismoko on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7843

🤖 Filed by Aria's agent swarm, Dyna, not by Aria.

A client never applies the server's block and item tags. It keeps playing with the tags from its own resources, so a world's data pack tags don't reach players. That includes single player, where the window joins its own server thread as a client.

What vanilla does

The server sends ClientboundUpdateTagsPacket twice:

  • during configuration;
  • in play, after /reload, from PlayerList.reloadResources.

The packet carries every synchronized registry's tags: block, item, fluid, entity_type and the others. The client binds them into its registries:

  • in configuration, ClientConfigurationPacketListenerImpl.handleUpdateTags calls registryDataCollector.appendTags;
  • in play, ClientPacketListener.handleUpdateTags applies the pending tags.

So client code that reads tags sees the server's tags. Examples are Block.is(BlockTags...) and ItemStack.is(ItemTags...) in movement, mining speed, use and tooltips.

On a memory connection (single player), vanilla's play handler skips apply, because the client and the integrated server share one set of registry objects, so the client already has the server's tags. Horizon's window and its server thread are separate Games with separate tag tables, so the window needs the packet's tags too.

What Horizon does

  • The server sends the packet both times:
    • lan/conn.rs (configuration): send(c, cfg::Clientbound::UpdateTags(sync.tags.clone()));
    • lan/hub.rs (reload_resources): self.broadcast(&C::UpdateTags(sync.tags.clone())).
  • The client keeps only the dialog tags. In net.rs, configuration calls registries.add_tags(&t). horizon-protocol/src/registry.rs Dynamic::add_tags filters to minecraft:dialog, and drops everything else.
  • The play-state UpdateTags (after /reload) has no handler in game/remote.rs.
  • The client's tag tables (Game::items(), with block_tags and item_tags) are world_tables on the server, but res.items() on a remote client. reload_world_tables also returns early on a remote client.

How to see it

  1. Create a world with a data pack that adds a block to a client-read tag. For example, add minecraft:stone to minecraft:climbable in data/minecraft/tags/block/climbable.json.
  2. On the server thread (the default single player), walk into a stone wall. The server treats stone as climbable, while the client predicts no climbing, so the player rubber-bands.

minecraft:mineable/pickaxe behaves the same way for the client's break-time prediction. So does any /reload that changes a tag.

Expected

The client builds its block and item tag tables, and the other synchronized registries' tags, from the UpdateTags it receives:

  • at configuration;
  • again on the play-state packet after /reload.

res.items()'s own tags are used only until the server's arrive.

Found while building per-game tag resolution for native-mod parts on a fork. This is not a modding change: it affects any world with data pack tags. Not tested with horizon-machine-sample, because that sample is for native-mod hooks and this bug isn't about mods.

Originally created by @arismoko on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7843 > 🤖 Filed by Aria's agent swarm, Dyna, not by Aria. **A client never applies the server's block and item tags.** It keeps playing with the tags from its own resources, so a world's data pack tags don't reach players. That includes single player, where the window joins its own server thread as a client. ## What vanilla does The server sends `ClientboundUpdateTagsPacket` twice: - during configuration; - in play, after `/reload`, from `PlayerList.reloadResources`. The packet carries every synchronized registry's tags: `block`, `item`, `fluid`, `entity_type` and the others. The client binds them into its registries: - in configuration, `ClientConfigurationPacketListenerImpl.handleUpdateTags` calls `registryDataCollector.appendTags`; - in play, `ClientPacketListener.handleUpdateTags` applies the pending tags. So client code that reads tags sees the server's tags. Examples are `Block.is(BlockTags...)` and `ItemStack.is(ItemTags...)` in movement, mining speed, use and tooltips. On a memory connection (single player), vanilla's play handler skips `apply`, because the client and the integrated server share one set of registry objects, so the client already has the server's tags. Horizon's window and its server thread are separate `Game`s with separate tag tables, so the window needs the packet's tags too. ## What Horizon does - **The server sends the packet both times:** - `lan/conn.rs` (configuration): `send(c, cfg::Clientbound::UpdateTags(sync.tags.clone()))`; - `lan/hub.rs` (`reload_resources`): `self.broadcast(&C::UpdateTags(sync.tags.clone()))`. - **The client keeps only the dialog tags.** In `net.rs`, configuration calls `registries.add_tags(&t)`. `horizon-protocol/src/registry.rs` `Dynamic::add_tags` filters to `minecraft:dialog`, and drops everything else. - **The play-state `UpdateTags` (after `/reload`) has no handler** in `game/remote.rs`. - **The client's tag tables** (`Game::items()`, with `block_tags` and `item_tags`) are `world_tables` on the server, but `res.items()` on a remote client. `reload_world_tables` also returns early on a remote client. ## How to see it 1. Create a world with a data pack that adds a block to a client-read tag. For example, add `minecraft:stone` to `minecraft:climbable` in `data/minecraft/tags/block/climbable.json`. 2. On the server thread (the default single player), walk into a stone wall. The server treats stone as climbable, while the client predicts no climbing, so the player rubber-bands. `minecraft:mineable/pickaxe` behaves the same way for the client's break-time prediction. So does any `/reload` that changes a tag. ## Expected The client builds its block and item tag tables, and the other synchronized registries' tags, from the `UpdateTags` it receives: - at configuration; - again on the play-state packet after `/reload`. `res.items()`'s own tags are used only until the server's arrive. Found while building per-game tag resolution for native-mod parts on a fork. This is not a modding change: it affects any world with data pack tags. Not tested with horizon-machine-sample, because that sample is for native-mod hooks and this bug isn't about mods.
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#6055
No description provided.