Minecraft wiki entry for Item_(entity), associated text: Items cannot be attacked by players or mobs; attempting to do so simply hits through them. However, they take damage and disappear from environmental or block-based damage such as explosions, fire, lava, a falling anvil,‌[Java Edition only] and contact with cactus. Items have essentially no health, so they are destroyed by the slightest damage, though if set on fire they may remain for a few seconds before disappearing. Nether stars are immune to explosions, and netherite-based items and tools are immune to fire and float on top of lava. Also, some blocks that normally damage mobs, such as magma blocks, campfires, sweet berry bushes and wither roses, do not damage items.