createExplosion () getting the drops?

Discussion in 'Plugin Development' started by TheGamesHawk2001, Apr 8, 2015.

Thread Status:
Not open for further replies.
  1. hey all, im currently making an explosion plugin, I have the explosion worked out but I was wondering how I could get the blocks and add them into the players inventory?
     
  2. Offline

    ColonelHedgehog

    In the explode event, you can use getBlockList().
     
  3. Offline

    Bram0101

    The entityExplodeEvent will be triggered, and in there you have the getBlockList() there you can get the blocks that are removed, and you can use ItemSpawnEvent to know when an item is spawned. You should be able to figure out the rest
     
Thread Status:
Not open for further replies.

Share This Page