Break a block when it reaches a certain coordinate

Discussion in 'Plugin Development' started by MrGhetto, Jul 27, 2014.

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

    MrGhetto

    I'm trying to make a plugin that will break a block once it hits a certain coordinate. I want to break a block once it's at 128 Y, including falling blocks. I'm not sure how to get begin, I'm worried that the only way will be to check every block placed, but even then, I will need to be able to check falling blocks (for tnt cannons).
     
  2. Offline

    fireblast709

    MrGhetto for falling ones, you will need to have a BukkitRunnable that tracks the entities. Blocks require you to track some events, like the BlockPlaceEvent and BlockPistonExtendEvent
     
  3. Offline

    Jalau

    Entity(FallingBlock) .remove and block
    Break should do the job :)
     
Thread Status:
Not open for further replies.

Share This Page