mojira.dev
MC-38278

Minecarts riding other entities affect their movement

If you spawn a minecart riding a wolf using

/summon minecraft:wolf ~ ~1 ~ {Owner:"<Your name>",Passengers:[{id:"minecraft:minecart",Attributes:[{Name:generic.movementSpeed, Base:3.0f}]}]}

and push the wolf, it will start slowly moving in one direction, even sitting. You can stop it by placing blocks in it's path, and it follows you with the personal "Chest", but once it stops, it keeps on slowing "Scooting" one direction.

Also, if you modify the movementSpeed of the entity the minecart is riding, the minecart will control the movement of the entity until it runs into something, at which point the ridden entity's AI will take over. For example, run this command:

/summon minecraft:wolf ~ ~1 ~ {Passengers:[{id:"minecraft:minecart",Attributes:[{Name:generic.movementSpeed, Base:3.0f}]}]}

The wolf will slowly shuffle south until it hits a block, and then start running around at high speed.

However, if you isolate the minecart from the bottom entity by stacking another riding entity between them, the minecart will no longer affect the movement of the bottom entity:

/summon minecraft:wolf ~ ~1 ~ {Passengers:[{id:"chicken",Attributes:[{Name:generic.movementSpeed, Base:3.0f}],Passengers:[{id:"minecart"}]}]}

Linked issues

Attachments

Comments 10

That's sounds like how the minecart would function. Previously the AI of the bottom-most entity would be used for movement. Now that there are chicken jockeys, which use the AI of the rider rather than the mount, I'm not sure how it works.

Still a concern in 1.7.4/5 and 14w08a

Still a concern in 14w10a/b

Confirmed for 14w11b

Deleted account

Is this still a concern in the current Minecraft version 14w19a / Launcher version 1.3.11 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Confirmed for 14w31a

Legofan Minifig

Confirmed for 1.8-pre1. Also works if the wolf is running around and you make it sit while it's moving.

Confirmed in 1.8, happens with all mobs and minecarts (as well as Minecarts riding other Minecarts).

Is this still an issue in the most recent versions (i.e. 1.10.2, or 16w42a) of Minecraft?

This issue does not occur if either entity is on a team with collisionRule set to never. This suggests the issue is in fact related to collisions as opposed to AI.

redstonefreak589

(Unassigned)

Confirmed

Entities, Hitboxes

json, minecart, movementSpeed, riding, scooting

Minecraft 1.7.2, Minecraft 1.7.10, Minecraft 14w31a, Minecraft 1.8-pre1, Minecraft 1.8, ..., 1.21.3, 1.21.5, 1.21.6, 1.21.7, 1.21.8

Retrieved