mojira.dev
MC-226257

Items, boats and minecarts have no invulnerability time, causing them to receive significantly more damage from cactus, lava, fire and explosions

The Bug:
Unlike other mob entities, environmental damage deals extra damage to items, boats, and minecarts causing them to disappear instantly instead of a few seconds.

To Reproduce:
1. Throw an item onto a cactus.
2. Summon a chicken on a cactus.

Results:
Although items have more health than a chicken, they disappear quicker than the chicken.

Code Analysis:
Code analysis by @unknown can be found in this comment.

Linked issues

Comments 12

Players and mobs use a timer to count down the next time they can take damage as described here called invulnerableTime. Which means that non-mob entities don't take more damage, but take damage every tick instead of every 10 ticks. Interestingly, the field invulnerableTime is available in the Entity class, so all that needs to be done is to take the logic from players/mobs and apply it to the other entities.

hey is the owner of this report still active? If not I'd like to help contribute to this, thanks

Yes, the owner is still active.

Just look at the history of the report next time. (And if that seems inactive, check the user's activity feed.)

2 more comments

this is a feature request. there is  0 indication that the behaviour of boats,carts ,items should be the same as living entities nor is anything funny in the code happening... items,carts,boats etc are not the same as a creeper
https://feedback.minecraft.net/hc/en-us

still in 1.19 release-candidate 1

Can confirm in 1.20.4 Release Candidate 1

can confirm in 24w40a

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version HistorySnapshot Version HistoryThe official Minecraft feedback site

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

InfinitySwordofDiamond

(Unassigned)

Confirmed

Entities

1.16.5, 21w20a, 1.17 Pre-release 1, 1.17 Pre-release 2, 1.17 Pre-release 3, , 25w41a, 25w44a, 25w46a, 1.21.11 Pre-Release 1, 1.21.11

Retrieved