How make this structure rotate?

Started by Ball-van on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How make this structure rotate?
Sat, 04/09/2022 - 12:02 (edited)

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
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could I see the on right…
Thu, 04/07/2022 - 18:10

Could I see the on right click procedure you are using to create it ?

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
well if youre placing a…
Fri, 04/08/2022 - 14:41

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.

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey! Can you show the…
Fri, 04/08/2022 - 16:31

Hey! Can you show the procedure itself? It will make it much easier for me to understand!

Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Any updates on this?…
Sat, 11/25/2023 - 01:14

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.

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is currently impossible…
Thu, 04/18/2024 - 22:16

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"