Block piston pushing blocks

Discussion in 'Plugin Development' started by Amgis, Dec 6, 2013.

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

    Amgis

    Given:
    Code:
    Location location;
    How do I ensure that no block can be pushed into location by a piston?

    For example, assume location is the block that is directly above the sandstone block in the following picture. If a player tried to activate any of these pistons, the event would be canceled.

    [​IMG]

    Thanks.
     
  2. Offline

    thepaperboy99

  3. Offline

    PogoStick29

    Would it be sufficient to check for pistons nearby the block?
     
Thread Status:
Not open for further replies.

Share This Page