Explosion event

Discussion in 'Plugin Development' started by zwoosks, Apr 24, 2020.

Thread Status:
Not open for further replies.
  1. Hi, I'm trying to find a way to execute a code when there's an explosion. I know that there's the EntityExplodeEvent but that event wouln't be effective if I spawned an explosion (World#createExplosion())

    Any ideas? Thanks!
     
  2. Offline

    NukerFall

    Create own class which extend Event. And add some checks there...
    BlockBreakEvent cause of explosion maybe
     
    zwoosks likes this.
  3. Yeah, I think that this could be the only solution, but I don't know how to get the involved blocks in the explosion created :/
     
  4. Offline

    NukerFall

    e.blockList()
     
Thread Status:
Not open for further replies.

Share This Page