Topic category: Troubleshooting, bugs, and solutions
I apologize if this is a duplicate but I spent a few hrs going through all the bugs posts for rotation and didn't find anything relating to what I'm seeing.
So, I have a procedure that is called on right-clicking a block (the middle block in the image below), this procedure checks the blocks next to it;
Now, the above setup works, you right-click the middle block and the procedure does its check and then it opens the GUI I have set to open.
The middle block has the new rotation option set so when you place it, it faces towards you (like a furnace).
Now, the check was achieved by the following procedures. I have 4 of these checks total for checking the blocks on the different directions (because the middle block and be placed facing the 4 cardinal directions).
It turns out, only one of these procedures works, and I think I know why.
The block I have a check for (the one in the picture to the right) also has the new block rotation option set on. When it does the check, I think it's looking for the block with the default rotation, and because the block is not in its default rotation, the check = false even though the block is actually correct.
Hopefully that all makes sense. (If I'm doing something wrong, pls tell me.)
You need to check in both +1 and -1 directions for this to work.
And this is not even related to the actual block rotations as global coordinates stay the same no matter the block orientation.
In response to your first reply, I believe I am checking in both the + & - directions on all the axies.
In response to your second reply, That is what I thought, the coordinates are the same no matter which way the block is facing.
To help show the possible issue, I made a quick video to show what it's doing in real time (and you should be able to reproduce the setup if needed for testing).
https://youtu.be/TAWQS9qFr7g
As you can see in the vid, the procedures work when it's a block without the rotation enabled, but when a block is used with the rotation enabled it just doesn't work.
It just doesn't make sense to me...
Thanks for your replies though, I'll just keep trying till I stumble upon what I'm doing wrong.
For some reason, there was a small clip missing from the original video.
Please have a look at the missing bit here;
https://youtu.be/M6IWOtb6aQM
I think this small clip highlights that there is indeed something fishy going on with block rotation.
Open a support ticket here: https://mcreator.net/tracker and attach your example workspace please, so I can replicate this bug faster. Thanks!
Please reference this forum topic in it too so I can connect this together :D
I will try to find a cause for this and a potential fix.
A support ticket has been created.
The workspace I used in the video to show this issue was attached as requested.
Thanks, I will look it up.
Ticket: https://mcreator.net/tracker/issue/46814