Interaction with a 3d block (rotation)

Started by Kozak K0KS on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Interaction with a 3d block (rotation)

I make a gas stove with an oven

And as I click the mouse button, it rotates this block and as I click again it does not rotate but is placed in the wrong direction 

 

At a glance:

When I put a block from another side and click it, it rotates not in this direction and wants that after clicking it set towards the player (I have in the procedurę) Place [block] at x: [x] y: [y] z: [z]

 

I still have a question how to set a good hit box in blockbench to set it well in Mcreator pls I have long problems with this!

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
...I would recommend…
Sat, 12/03/2022 - 18:29

...I would recommend changing your rotation settings in the Block Menu. One option will rotate the block based on the direction the player is facing when placing it, and the other will rotate it based on the block they're aiming at. (You probably want the first one.)
As for hitboxes, Mcreator can add multiple hitboxes for your block- if you really want it perfect, you can set the hitboxes to the positions of every shape in your custom block. However, you'll probably fine just using a couple to get the general outline.

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So what rotation to choose…
Thu, 12/08/2022 - 15:48

So what rotation to choose in the menu?
(block rotation mode)