[SOLVED] ItemDestroyEvent ?

Discussion in 'Plugin Development' started by vildaberper, Feb 17, 2012.

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

    vildaberper

    I'd like to catch when an Item get burnt by fire or lava.
    Is this possible?
     
  2. ItemDespawnEvent, try that
     
  3. Offline

    vildaberper

    That was the first thing I tried. I also tried EntityDamageEvent.

    I guess I have to track item spawns and item despawns, if the item spawned without it despawning it must have been destroyed.
    Ugly, but it will work.
     
  4. Offline

    Seadragon91

    You could use the EntityCombustEvent and if the event is called, then remove the item.
     
  5. Offline

    vildaberper

    Haha, how did I not think of that? xD
    Anyways, thanks man, it works. Just as I got my ugly version working. :D
     
Thread Status:
Not open for further replies.

Share This Page