When running hasComponent() entity binding for the minecraft:health component on entities including:
boats
minecarts
paintings
ender crystals
leash knots
tnt
falling sand
fireballs
wither skulls
shulker bullets
llama spit
the binding returns true, due to how these entities have a "health" of sorts to allow players to punch to remove them.
On attempting to retrieve this component with a subsequent getComponent() entity binding, the game crashes instantly.
Thank you for your report!
Crashes such as these are logged automatically, and will be looked into further by the development team.
If you need help or support you might like to follow a link below.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki