mojira.dev
MC-96409

Creepers can't blow up the boat and boat with chest they ride, when it is on the land

The bug

Creepers can't blow up the and boat with chest they ride, when it is on the land.

Does not affect the bamboo raft or bamboo raft with chest.

How to reproduce

Boat:

  1. Push Creeper to the boat.

  2. Make Creeper explosion.

Horse: Fixed in 20w18a

  1. Use

    /summon horse ~ ~1 ~ {Passengers:[{id:creeper}],Tame:1}
  2. Make Creeper explosion.

Llama: Fixed in 20w18a

  1. Use

    /summon llama ~ ~1 ~ {Passengers:[{id:creeper}],Tame:1}
  2. Make Creeper explosion.

Code analysis

The following is based on decompiled version of Minecraft 1.9 using MCP 9.24 beta. All method and class names are the names used in the decompiled version.

The methods net.minecraft.entity.passive.EntityHorse.attackEntityFrom(DamageSource, float) and net.minecraft.entity.item.EntityBoat.attackEntityFrom(DamageSource, float) prevent the riding entity from damaging it. This was maybe added for players riding a horse or a boat, strangerwise this is not the case for minecarts and it looks like even if this test is removed the player is still unable to damage the horse respectively boat.

Linked issues

Attachments

Comments 17

I think it is more correct to say "Creepers can not cannot blow up the boat they ride"

Confirmed for

  • 16w04a This is however not a general problem with Creepers and boats. Creepers outside a boat can still blow it up

Thanks for your suggestion. 🙂
The issue title has been changed.

Thank you 🙂
I just noticed it is rather "cannot" than "can not" see ‘Cannot’ or ‘can not’?

Please link to this comment in the description

The following is based on decompiled version of Minecraft 1.9 using MCP 9.24 beta. All method and class names are the names used in the decompiled version.

The methods net.minecraft.entity.passive.EntityHorse.attackEntityFrom(DamageSource, float) and net.minecraft.entity.item.EntityBoat.attackEntityFrom(DamageSource, float) prevent the riding entity from damaging it. This was maybe added for players riding a horse or a boat, strangerwise this is not the case for minecarts and it looks like even if this test is removed the player is still unable to damage the horse respectively boat.

Confirmed in 1.16-pre4.

7 more comments

Can confirm in 21w13a.

Can confirm in 21w15a.

Can confirm in 1.17.

Can confirm in 1.18.1.

Fixed in 23w33a.

[Mod]Les3awe

(Unassigned)

Confirmed

Low

Entities, Mob behaviour

boat, creeper, explosion, horse, land, llama, ride

Minecraft 16w03a, Minecraft 16w04a, Minecraft 16w05a, Minecraft 16w05b, Minecraft 16w06a, ..., 1.20, 1.20.1 Release Candidate 1, 1.20.1, 23w31a, 23w32a

23w33a

Retrieved