mojira.dev
MC-90084

When sitting in boats and boats with chest mobs legs penetrate the hull

The bug

When sitting in boats and boats with chest mobs legs penetrate the hull.

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

Reproduce steps

Use the following command:

/summon boat ~ ~1 ~ {NoGravity:1b,Passengers:[{id:zombie_villager}]}

After the version 1.9-pre4:

  • Wither skeleton

  • Guardian

  • Elder guardian

  • Zombie villager

  • Husk

  • Cave spider

  • Spider

  • Evoker

  • Illusioner

  • Salmon

  • Phantom

  • Drowned

  • Dolphin

  • Pillager

  • Axolotl

  • Camel(when sitting)

  • Sniffer

  • Cat(tail)

  • Fox(tail)

  • Ghast

  • Glow squid

  • Ocelot(tail)

  • Ravager

  • Squid

  • Turtle

  • Creeper Fixed in 23w31a

  • Slime Fixed in 23w31a

  • Magma cube Fixed in 23w31a

  • Skeleton Fixed in 23w31a

  • Zombie Fixed in 23w31a

  • Enderman Fixed in 23w31a

  • Villager Fixed in 23w31a

  • Witch Fixed in 23w31a

  • Polar bear Fixed in 23w31a

  • Vindicator Fixed in 23w31a

  • Cod Fixed in 23w31a

  • Pufferfish Fixed in 23w31a

  • Tropical fish Fixed in 23w31a

  • Panda Fixed in 23w31a

  • Wandering trader Fixed in 23w31a

  • Piglin Fixed in 23w31a

  • Piglin brute Fixed in 23w31a

  • Iron golem Fixed in 23w31a

  • Snow golem Fixed in 23w31a

  • Warden Fixed in 23w31a

  • Bat Fixed in 23w31a

  • Mule(tail) Fixed in 23w31a

  • Stray Fixed in 23w31a

  • Tadpole Fixed in 23w31a

  • Zoglin Fixed in 23w31a

  • Zombie horse(tail) Fixed in 23w31a

  • Zombified piglin Fixed in 23w31a

  • Shulker Fixed

  • Allay Fixed

Code Analysis / Potential Fix

Code analysis and fix by @unknown can be found in this comment.

Linked issues

Attachments

Comments

[Mod]Les3awe

Confirmed for 16w04a
Still affects Creeper.
Mod please reopened.

Jonah Simm

also affects the player when a passenger is in the boat

marcono1234

Personally I do not think this is worth fixing.
Nearly every mob has different leg length or no legs at all. Implementing for every single mob a special case is in my opinion not worth it and not even possible.
For Endermen it looks already strange because they are kind of floating...

[Mod]Les3awe

Creeper is still not fixed.
Players can attack Creeper from boat bottom.

marcono1234

Damaging is hitbox based and very likely MC-80877

shufboyardee

Affects 16w07b.

shufboyardee

Affects 1.9.4.

muzikbike

Fixed for players. Affects 18w20c

muzikbike

Possibly clones MC-6241

muzikbike

Affects 18w22b

muzikbike

Affects 18w22c

muzikbike

Affects 1.13-pre1

muzikbike

Affects 1.13-pre2.

Since villagers are completely anthropomorphic, shouldn't the fact that they don't adopt a sitting position like other mobs do be considered a bug in its own right?

muzikbike

Affects 1.13-pre3

muzikbike

Affects 1.13-pre4

muzikbike

Affects 1.13-pre5

muzikbike

Affects 1.13-pre6

muzikbike

Affects 1.13-pre7

migrated

Affects 18w30b

migrated

Please link this in the description of the report.

The following is based on a decompiled version of Minecraft 1.12 using MCP 940

The reasons for this is caused in the method net.minecraft.entity.item.EntityBoat.updatePassenger where the setposition for passengers is set, at first the posY float looks to not cause it.

float f1 = (float)((this.isDead ? 0.009999999776482582D : this.getMountedYOffset()) + passenger.getYOffset());

But once you go to the method getMountedYOffset() you can see why this happens,

public double getMountedYOffset()
{
return -0.1D;
}

what this does is return the value '-0.1D' which will set the entity 0.1 down therefore the entity goes through the boat.

Potential fix

Change the value to '0.0D' so it will return the value 0, which basicially means it will not change it's posY.

public double getMountedYOffset()
{
return 0.0D;
}

I'll attach two screenshots with the potential fix.

Hope this helps and explains this issue 🙂

ZeNico13

Still in 1.14 pre-3, 1.14 pre-4 and 1.14 pre-5

ZeNico13

Still in 1.14 Release

ZeNico13

Still in 1.14.1 Release

ZeNico13

Still in 1.14.2 Pre-Release 1 and 1.14.2 Pre-Release 2

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w07a.

Avoma

Relates to MC-150016.

Avoma

Can confirm in 21w13a.

Avoma

Can confirm in 21w15a.

Avoma

Can confirm in 21w17a.

Avoma

Can confirm in 1.17.

ampolive

Can confirm in 21w42a.

migrated

Can confirm in 1.18.1 (I only checked villagers and players with and without armour, but I'm sure it works with the other mobs too).

Avoma

Can confirm in 1.18.2.

ampolive

@unknown Please stop confirming tickets for outdated versions.

migrated

Can confirm in 23w03a.

AMGAMES04

Can confirm in 23w13a

[Mod]Les3awe

(Unassigned)

Confirmed

Platform

Low

Entities, Rendering, Textures and models

boat, boat-hull, boat-with-chest, legs, mobs, player, sit

Minecraft 15w41b, Minecraft 15w42a, Minecraft 15w43a, Minecraft 15w43b, Minecraft 15w43c, ..., 25w05a, 25w09b, 1.21.5 Release Candidate 1, 1.21.5, 25w17a

Minecraft 16w04a

Retrieved