mojira.dev
MC-311450

`block_transformer` item components with `random_block_provider` block state providers sometimes cycle through every specified block

When using "random_block_provider" in the "block_transformer" item component, it sometimes cycles through all available blocks in the “blocks” list.

Steps to reproduce:

  1. Use this command: /give @s minecraft:blaze_rod[minecraft:block_transformer=[{"block_state_provider":{type:"random_block_provider",blocks:["emerald_block","diamond_block","gold_block"]}}]]

  2. Right click on any block while holding the blaze rod until you see the bugged behavior.

Expected behavior: The block should be transformed immediately to a block in the “blocks” list.

Actual behavior: Sometimes it works as expected, but sometimes it visually cycles through every block in the “blocks” list before picking one.

Attachments

Comments 2

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

[media]

Can confirm. In the latest snapshot, use this datapack and run

/give @s minecraft:blaze_rod[minecraft:block_transformer=random_test]


[mediaInline]

galaxypuppygirl

(Unassigned)

Confirmed

Platform EC

Low

Commands

26.3 Snapshot 10

Retrieved