Place extended piston?

Discussion in 'Plugin Development' started by The_IcATaRiX, Mar 12, 2014.

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

    The_IcATaRiX

    Hey guys,

    does someone know how to place a extended piston which is extended to the sky? I tried it with placing the two Materials but ... it didn't work.
    Thanks for your help!
     
  2. Offline

    creepers84

    I don't think there is a way of keeping the piston constantly extended. Unless you want to spawn the piston_extension piece pointing to the sky?
     
  3. Offline

    The_IcATaRiX

    creepers84
    Yes, if that works.. But how would I do that? It kept despawning or it wasn't even placed or it was facing down :)
     
  4. Offline

    creepers84

    Mess around with:
    Code:java
    1. block.setType(Material.PISTON_MOVING_EXTENSION);

    Set the data value to 4 or 5 to have it pointing upright.
     
  5. Offline

    The_IcATaRiX

    creepers84
    I got it working with the PISTON_EXTENSION thingy but the lower part doesn't get placed..
     
Thread Status:
Not open for further replies.

Share This Page