How make this structure rotate?

Started by Ball-van on

Topic category: Help with Minecraft modding (Java Edition)

Active 6 months ago
Joined Apr 2021
Points:
824

User statistics:

  • Modifications: 0
  • Forum topics: 46
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 40
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
Active 2 years ago
Joined Feb 2021
Points:
608

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 12
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 ?

Active 1 month ago
Joined Mar 2021
Points:
647

User statistics:

  • Modifications: 0
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 28
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.

Active 6 months ago
Joined Apr 2021
Points:
824

User statistics:

  • Modifications: 0
  • Forum topics: 46
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 40
Hi! Yes, look! Only there,…
Fri, 04/08/2022 - 16:27

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

Active 6 months ago
Joined Apr 2021
Points:
824

User statistics:

  • Modifications: 0
  • Forum topics: 46
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 40
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!

Active 1 year ago
Joined Aug 2023
Points:
205

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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.

Active 1 year ago
Joined Sep 2020
Points:
630

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
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"