Solved Clear the block list of only one explosion

Discussion in 'Plugin Development' started by Orion31, Oct 10, 2016.

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

    Orion31

    Hi!
    I am trying to make a plugin that requires explosions to be made. My question is this: I don't want to have the explosion made by my plugin blow up any blocks, but I don't want to clear every block list for every explosion, because I want TNT to explode.
    Is there a way I can get an instance of an Explosion and put it into an ArrayList and only clear the block list of the explosion if the Explosion is in the list, or is there no way to get an Explosion variable.
    Thanks for your time,
    Orion31
     
  2. Offline

    Zombie_Striker

    @Orion31
    Why not cancel the default explosion, and create your own explosion with 0 power (meaning no blocks will be broken).

    Here's the method for the custom explosion:
    HERE
     
  3. Offline

    mythbusterma

    @Orion31

    You can play out an explosion without breaking any blocks. This would be far more effective.
     
  4. Offline

    Orion31

    @Zombie_Striker Thanks so much! I didn't realize there was a method for creating an explosion without breaking blocks!
     
Thread Status:
Not open for further replies.

Share This Page