API for changing piston maximum push length.

Discussion in 'Plugin Development' started by Elizacat, Jul 21, 2011.

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

    Elizacat

    Hallo,

    After walking through the craftbukkit source, I do not see anywhere to adjust the maximum amount of blocks a piston can push. Is there a way such an API could be provided, or am I missing something glaringly obvious? It would be useful for a few ideas I have right now.
     
  2. Offline

    Hretsam

    Well the pushing itself is fairly easy to increase (you've got to edit the bukkit source though).
    Only when i tested it with 20 blocks, the animation wasn't smooth anymore. So i dont recommend increasing it.
    If you want to know its line 269,282, 308 & 320 where you have to change a number.
    And to answer your question about the API, no. The limits are now hardcoded, so you got to wait for bukkit to make it a variable you can adjust.
     
    Elizacat likes this.
Thread Status:
Not open for further replies.

Share This Page