Replace TNT with something else

Discussion in 'Plugin Development' started by CapitanChewbacca, Mar 17, 2014.

Thread Status:
Not open for further replies.
  1. I want to delete the entity of the Primed TNT when it's at 1 tick to explode and replace it with something else, for example a firework. How can I do it?
     
  2. Offline

    _Cookie_

    Check when the block is placed, when it has been placed, set a timer to when it is at one tick, when that has happened, get the x, y, z replace the block to something else.
     
  3. Offline

    alex123099

    _Cookie_
    Not sure if this works, but try listening to an EntityExplodeEvent
    if the entity is a TNT, replace the location of it with a different block and then cancel the event.
     
Thread Status:
Not open for further replies.

Share This Page