1.15.2 Remove Item Despawn

Discussion in 'Spigot Plugin Development' started by Bredo, Mar 26, 2020.

  1. So I am working on a plugin and I want to disable item despawn for some items. I been looking through the internet and found a few solutions I didn't like, but I saw that there is a way to set how long the item has lived
    Code (Java):
    if I keep setting the lived ticks to 0, will the item live forever?
  2. You could just listen to ItemDespawnEvent and cancel it if one of the items you don't want to despawn does.
  3. Uhh I didn't know that event existed, thanks
    • Like Like x 1