Solved Rotate ladder.

Discussion in 'Spigot Plugin Development' started by minecraftguy719, Feb 17, 2020.

  1. Hello all,

    I am trying to place a ladder with code (#block#setType(Material)) however it isn't rotated correctly.

    How would I go about rotating it?

    Thanks!
     
  2. You'll have to guess by setting the block data values [Block#setData(byte)]. One of the values should rotate it how you want.

    This would be pretty trivial is you were using a more updated version of the API as Ladder implements Directional :(
     
  3. Do you know which byte that I have to set?
    Thanks!
     
  4. A three-bit field storing a value from 2 to 5:
    • 2: Ladder facing north
    • 3: Ladder facing south
    • 4: Ladder facing west
    • 5: Ladder facing east
    Invalid values default to 2.