Rotate like a log

Started by GustavoLank9236 on

Topic category: Help with modding (Java Edition)

Last seen on 17:53, 20. Sep 2020
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Rotate like a log
Fri, 09/28/2018 - 22:46 (edited)

I want to make a trunk, but I do not know how to do the rotations, I did not find any updated tutorial.

 

Edited by GustavoLank9236 on Fri, 09/28/2018 - 22:46
Last seen on 13:24, 14. Oct 2018
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This will require you to do…
Sun, 09/30/2018 - 07:57

This will require you to do some code editing and java knowlege.

You need to create PropertyDirection property, new Blockstate container, edit onBlockAdded method and edit the blockstate .json file.

 

You can look into my rotatable block which I have created, you should be able to figure out how it is working. I have somewhere easier code for this, but propably not uploaded online.

 

https://github.com/Toma1O6/pubgmc/blob/master/src/main/java/com/toma/pu…