mojira.dev
MC-90923

Boats and minecarts not picking up armor stands

The bug

Boats and minecarts are unable to pick up armor stands even if (in case of the minecart) it has a high enough speed to pick up entities. Note that minecarts picking up armor stands is explicitly intended: https://twitter.com/seargedp/status/497030467359477760

Code analysis

The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.

The reason for this is that the method net.minecraft.util.EntitySelectors.func_188442_a(Entity) is used to get potential passengers. This method is also used for entity collision (pushing other mobs) and calls the method net.minecraft.entity.Entity.canBePushed() to test if the entity can be pushed at all. For the ArmorStand this method returns false.
Additionally the currently used method would respect the team option collisionRule which does not make very much sense for boats in my opinion. Would only make sense for pushing away the mob if it cannot become a passenger.

Linked issues

Attachments

Comments 39

Aifer Gettisneim

I would also like to mention that placing an ArmorStand into a boat via commandblocks causes them to rapidly rotate rather than face forward. This applies to the lastest snapshot, 15w43b.

@unknown You mean MC-90191. Please do not hijack unrelated tickets.

Aifer Gettisneim

I couldn't find such an issue in the search. Pardon me, but I find that response very discrediting. It is most obviously not my intention to "hijack" issues with my own. I would have preferred if this opportunity were taken to remind users that each specific bug is given their own issue and encouraged to vote up those issues as well. Something along the lines of:

"AiferGettisneim there is a separate issue for that! MC-90191 I would recommend voting up this issue so it gets noticed more easily. If you don't already know, we create separate issues for each distinctive bug to make them easier to find!"

Something like that, would not make me feel like I'm only running around causing problems...but I don't expect a possibly unpaid volunteer moderator to take advise from a lowly user. So whether you feel this is worth considering is up to you. I just felt some good public relations was needed; although I may be making a big deal out of nothing.

I'd like to add that armor stands aren't living mobs, they are non living like arrows, item frames, etc
this is probobly the reason they aren't getting picked up (and might be intended to be so?)

@unknown I'm sorry that my answer has irritated you, that wasn't my intention.

29 more comments

Can confirm in 1.18.

Can confirm in 1.18.1.

Can confirm in 1.18.2.

Can confirm in 1.19.2.

Can confirm in 1.21

dodo comododo

[Mod] markderickson

(Unassigned)

Confirmed

Platform

Normal

Entities, Minecart

armor_stand, boat, minecart

Minecraft 15w42a, Minecraft 15w43c, Minecraft 15w44a, Minecraft 15w44b, Minecraft 15w45a, ..., 23w51b, 1.21, 24w34a, 25w05a, 1.21.8 Release Candidate 1

Minecraft 16w04a

Retrieved