Topic category: Feature requests and ideas for MCreator
Can we have a block procedure that looks for what way the player is facing?
This would be handy when it comes to making blocks like Logs or Stairs etc.
You could texture the block or model different ways then have the event (when block placed by) to target the players facing direction to determine what block to update the block the player just placed.
EXAMPLE
If player is facing -x
Place x facing log block.
If player is facing +x
Place x facing log block.
If player is facing -y
Place y facing log block.
If player is facing +y
Place y facing log block.
If player facing -z
Place z facing log block.
If player is facing +z
Place z facing log block.
BLOCKS
- LogY (Main block)
- LogX
- LogZ
That would be the procedure for the main block the other blocks can be hidden from creative inventory and drop the default state block that the player places which holds the events shown above, this would allow players to make blocks with blockstates.
Now, to do this normally people need to make different models each facing a different direction and use procedures and code to actually make it face you. I recommend making a suggestion for this type of thing
There is already a plan for this here: https://mcreator.net/tracker/issue/43157
I ended up going over the wiki and it looks like you may be able to use blockstate or something, I need to find that page again, I will post the link here if I do find it, but Mojang uses blockstates or models one of the two, to rotate logs, I did attempt doing my self before I found the tutorial but with no luck, however, I recall that I was doing it wrong, If I find it I will post the link to the tutorial below.
The ticket was closed: https://mcreator.net/tracker/issue/43157