The Scripting API can't apply direction-related blockstate component to blocks.
The scripting API can get the blockstate component from a certain block, including direction. But it can't apply it. Instead, this would be logged:
ScriptBlockStateComponent | Invalid type passed for block state 'weirdo_direction'
or:
ScriptBlockStateComponent | Invalid type passed for block state 'facing_direction'
Created Issue:
The Scripting API can't apply direction-related blockstate component to blocks.
The scripting API can get the blockstate component from a certain block, including direction. But it can't apply it. Instead, this would be logged:
ScriptBlockStateComponent | Invalid type passed for block state 'weirdo_direction'
or:
ScriptBlockStateComponent | Invalid type passed for block state 'facing_direction'
Added Labels: scripting-api
Applying component changes to minecraft block states seems to work with string based components but always changes blockstates of number values (e.g. "facing_direction") to 0 no matter what you replace them with.
Thank you for your report!
However, this issue has been temporarily resolved as Awaiting Response
Is this still an issue in the latest version?
If it is, please be sure to include steps to reproduce the problem:
If your ticket does not look like the example given here, then it's likely to be closed as incomplete.
This ticket will automatically reopen when you reply.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
This bug is NOT fixed.
Is this still an issue in the latest version? If so, can you add it to the affected versions?
Closing as awaiting response, it is only temporary till you reply. It will then automatically reopen.
Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki