The minecraft:placement_direction block trait supports the enabled_states value minecraft:corner_and_cardinal_direction. The trait also allows for defining y_rotation_offset with increments of 90° to apply a custom rotation offset to a block. This is commonly used with cardinal blocks to choose whether to have them face the same or opposing direction as the placing player.
For some reason, minecraft:corner_and_cardinal_direction is not allowed to be used by itself with y_rotation_offset. However, including minecraft:cardinal_direction will allow for such. This is bizarre because minecraft:corner_and_cardinal_direction implies the existence of minecraft:cardinal_direction.
Demonstration
The attached image demonstrates the issue via the content log error emitted when minecraft:corner_and_cardinal_direction is given by itself. This case should not error. The attached world also shows the behavior working when minecraft:cardinal_direction is also (redundantly) provided.
Reproduction
This example is 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.
Attachments
Comments 2
Hi!
Thank you for your report!
However, this issue is Working As Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, Redstone, villagers, and animals may not work the same in current versions.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
Thank you for helping us improve Minecraft! We saved your files: