Disable Item Drops on Explosion

Discussion in 'Plugin Development' started by McStormify, Apr 2, 2013.

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

    McStormify

    I have this code:

    Code:java
    1. world.createExplosion(location, 5);


    Very quick question, how can I force the explosion to explode the blocks but not drop the items?

    Thanks! :D
     
  2. Offline

    Nitnelave

    Hmm... I would say listen to EntityExplodeEvent, and set the blocks to air. But you would have to be able to recognize which explosion is yours...
     
Thread Status:
Not open for further replies.

Share This Page