The minecraft:transformation component is not being applied correctly to boxes in custom blocks. If the following components aren’t defined, their behaviors (independently of one another) do not respect the given transformation values:
minecraft:selection_boxminecraft:collision_box
This bug does not have any effect on models, which always respect transformation correctly.
Demonstration
The attached screenshots demonstrate this issue. Both presented blocks have the following transformation: {"scale": [1, 0.5, 1]}; this transformation scales the block vertically by half, flattening it towards the center of the block.
The selection box of the block labeled as not having defined boxes is not being scaled. The same is not true for the block with defined boxes. While not apparent in the images, this applies independently to the blocks’ collisions, too.
Reproduction
This issue affects any custom block with the transformation component but missing either the collision or selection components. Although only scale was demonstrated, the issue also applies to translation. rotation has not been tested.
The demo screenshots and code are taken from the behavior pack in the attached world for convenience. This world can be opened (in Minecraft Preview) for inspection or unzipped to access the code associated with such.
Thank you for helping us improve Minecraft! We saved your files: