How to rotate blocks

Discussion in 'Plugin Development' started by Molten, May 13, 2014.

Thread Status:
Not open for further replies.
  1. Offline


    As the title says, I am wondering how to rotate blocks.

    I have a plugin right now that is 99% done, all it needs is to rotate the blocks.

    The blocks I need to rotate are logs. I need them to rotate from the upright position like they are in trees, to the sideways position where the "inner" wood that is visible is only visible on the sides.

    If you need more information please let me know, I have spent the past hour on this and looked at all the documentation I could, googled it for a long time and nothing.

  2. Offline


    Use .setDurability() on the itemstack of the block. Then put in the damage value for side you need.
  3. Offline


    The way I'm having it place the blocks is all server side with a setType at the location. If I'm not mistaken I can only use the setDurability if the item would be from my hand?
  4. Molten if youre mean that you want to rotate a block in the world, use block.setData();
  5. Offline


    Ya but that is deprecated.
  6. Offline


Thread Status:
Not open for further replies.

Share This Page