mojira.dev
MC-309405

Using "block_transformer" component with "rule_based_state_provider" causing Disconnected

How to Reproduce

run the following command:

give @s minecraft:iron_hoe[block_transformer=[{block_state_provider:{type:rule_based_state_provider,rules:[{if_true:{type:matching_blocks,blocks:["minecraft:moss_block"]},then:{type:simple_state_provider,state:{Name:"minecraft:gold_block"}}}]}}]]

Expected

The game should either execute the /give command (and give me an iron hoe that could turn only moss_block into gold_block) or return failed.

Actually

The crash happens:

io.netty.handler.codec.EncoderException: Failed to encode packet 'clientbound/minecraft:set_entity_data'

Then the game shows the Connection Lost window with message Disconnected, and once you try to reopen the same world, it says Disconnected.

Linked issues

Attachments

Comments 2

Thank you for helping us improve Minecraft! We saved your files:

[media][media][media]

Thank you for your report!
We're tracking this issue in MC-309403, so this ticket is being resolved and linked as a Duplicate.

If you would like to add a vote and any extra information to the main ticket, it would be appreciated.

If you haven't already, please make use of the search feature to see if an issue you are about to report has already been reported.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

LeatherSword

(Unassigned)

Unconfirmed

26.3 Snapshot 2

Retrieved