Started by
Nispeew
on
Topic category: Help with Minecraft modding (Java Edition)
Hi, I'm having trouble figuring out how to make a block placed by a procedure rotate to face the player's direction. Whenever I place the block, it's always oriented to the north. Does anyone know how to do this?
Video: https://www.youtube.com/watch?v=luU4aT2GYLk
Procedure for placing blocks:
Edited by Nispeew on Sat, 03/23/2024 - 07:58
Does the block rotate if its placed outside of a procedure? if it doesn't, then you probs haven't set the block to be able to rotate. its on the visual tab.
You can use "set direction of Block" procedure block, in the Block Procedures Action menu to set the spawned block's rotation. you just need to determine the player's position in relation to the spawned block position and determine from there if the player is north, south, east or west of its position.
Hi, the block itself rotates absolutely fine. However, I still can't get the procedure to work. Could you please send me an image of how the rotation procedure works? It would mean a lot to me. :)
Hey, I've finally managed to get it working! Here is the code for anyone who wants it.
congrats on solving it :)
Thank you so much for telling me how to do it! I couldn't figure it out for over 2 months now. :D