Preventing TNT chaining

Discussion in 'Plugin Development' started by damo1995, Jan 1, 2016.

Thread Status:
Not open for further replies.
  1. Hi Guys,

    Quick question, is there anyway through the API I can prevent TNT from chaining, I know how to cancel the Events, but currently working on a plugin which requires only a single block of TNT to explode and not affect any other TNT blocks around it.

    Any advice or information you could provide would be awesome.

    Kind Regards
    Damien
     
  2. Offline

    elian1203

  3. Offline

    Zombie_Striker

    @damo1995
    I believe the "TNT chaining" happens because a TNT block is in the collection that stores the blocks that would be destroyed. When the server tries to destroy the tnt block, the internal code spawns a primed tnt to continue the chain.
     
  4. Thanks for this, I am aware of the javadocs, But Correct me if im wrong but this will be called irregardless of if its chained or not? im not wanting to cancel the event all together just block the chaining of TNT

    Thanks for this, I was unaware this is how it worked, Is there anyway of accessing this collection to remove any TNT entities/blocks?

    Thanks again for your responses

    Damo
     
  5. Offline

    Zombie_Striker

Thread Status:
Not open for further replies.

Share This Page