Started by
Ball-van
on
Topic category: Help with Minecraft modding (Java Edition)
Hello!
I made an advanced workbench, it consists of 4 blocks. I made an item when it clicks on any block, it places 4 blocks that form the workbench itself, but it only looks in one direction, and I would like it to look in different directions depending on how the player placed it. Can you please tell me if this is possible and how?
Below I attached a link to a gif with the placement of the workbench.
https://www.deviantart.com/duckmadnes/art/How-report-912210646
Edited by Ball-van on Sat, 04/09/2022 - 12:02
Could I see the on right click procedure you are using to create it ?
well if youre placing a structure and not just a large model you would probably be best off making the block you place face you with the rotation setting then getting the rotation of the block and placing the structure off of that. however, if youre using an item then you need to find the way the player is facing and reverse it to place the structure.
Hi! Yes, look! Only there, instead of planks and logs, there is a part of the workbench model, I just use their textures.
1 Part: https://www.deviantart.com/duckmadnes/art/Screen-3-912415568
2 Part: https://www.deviantart.com/duckmadnes/art/Screen-4-912415570
Hey! Can you show the procedure itself? It will make it much easier for me to understand!
Any updates on this? Currently working on a modular room placing system and I'm trying to figure out how to get the structure I place (via a right-clicked block) to rotate based around the block rotation.
This is currently impossible, as regardless of what rotation the block has "visually" in the game, the game treats it as always facing North. At least that was what I found with the limited tests I did.
I used the "get block direction" procedure, along with a print message that upon the block being right-clicked, it would display which direction it was facing, and no matter what direction I placed, regardless of which way the block was rotated, the message always displayed "block is facing north"