mojira.dev
MC-143209

All mobs with passengers float in the air, but not horses with passengers

Only NoAI-horse in combination with NoAI-passenger does not float and is knocked back in case of damage

You can spawn a horse with out AI with

/summon minecraft:horse ~ ~ ~ {NoAI:true}

and the horse has no gravity and if you hit it, it will not move.

 

But if you spawn a passenger on it with this command:

/summon minecraft:horse ~ ~ ~ {NoAI:true,Passengers:[ {id:"minecraft:husk",NoAI:true} ]}

The horse will be falling down, if it spawns in the air and if you hit it, it will move in a direction.

This does not happen to all other rideable (with commands) creatures:

/summon minecraft:sheep ~ ~ ~ {NoAI:true,Passengers:[ {id:"minecraft:husk",NoAI:true} ]}
/summon minecraft:cow ~ ~ ~ {NoAI:true,Passengers:[ {id:"minecraft:husk",NoAI:true} ]}
/summon minecraft:llama ~ ~ ~ {NoAI:true,Passengers:[ {id:"minecraft:husk",NoAI:true} ]}
...

Comments 8

@FVbico not in this case. It is the opposite of MC-107849. All NoAI:true-entities float in the air but if you make a horse with passenger the horse does'nt float. That is the bug in this case.

But for the entire Minecraft, you have right, the NoAI shouldn't make NoGravity for entities too.

Out of interest does this apply to other mobs that can be ridden normally e.g. llamas?

@Kieran Borovac only horses behave differently. All other makes like llamas make this not.

Can confirm in 21w05b.

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w08b.

This bug is fixed in 1.19. Can someone mark it as fixed, please

Nethonos

(Unassigned)

Confirmed

Entities

NoAI, NoGravity, damage, floating, horse, passenger, passengers

Minecraft 1.13.2, Minecraft 19w03c, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a, ..., 1.17 Release Candidate 1, 1.17 Release Candidate 2, 1.17, 1.18 Pre-release 6, 1.18

22w12a

Retrieved