Custom Explosion

Discussion in 'Plugin Development' started by MrGriefer_, May 23, 2017.

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

    MrGriefer_

    Hello everyone,

    I was wondering how could I create an explosion that does NOT hurt players and breaks blocks but with no drops! NMS?
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    MrGriefer_

    I know its easier to use Bukkit, but I'm going to override the explosion class and maybe play around with it. Just for learning but my only question is; how do you spawn it?
     
  4. Offline

    timtower Administrator Administrator Moderator

  5. Offline

    MrGriefer_

    Explosion class
     
  6. Offline

    MrGriefer_

    I tried to spawn a primed tnt with a metadata and I listened for EntityExplodeEvent and checked if it was primed tnt with the metadata, then I looped for all the blocks and set it to air. But it didn't work!
     
  7. Offline

    MomentHCF

    Because when you set that to air it completely removes the tnt cancelling an explosion. Sorry, just trying to help.
     
  8. Offline

    MrGriefer_

    Yeah but that should work fine, right? Because I'm just setting all the blocks being damaged to air so it won't drop the blocks.
     
  9. Offline

    ipodtouch0218

    Wouldn't that set the blocks to air after the explosion? Try clearing the dropped items list.
     
  10. Offline

    FlorianIsStoer

    You can create a custom Fireball with a bigger explosion in the tnt.
     
Thread Status:
Not open for further replies.

Share This Page