Is there a way to make it so any dropped items are invulnerable? Could I make them so they do not blow up or burn without removing the explosion effects? I cannot seem to figure it out, I don't get any errors but it doesn't save the items.
Code:
on damage of a entity:
if "%victim%" is "dropped item":
if "%damage type%" is "burning" or "lava" or "fire" or "explosion":
cancel event