mojira.dev
MC-66070

NoAI on minecarts

Summoning a minecart with the tag {NoAI:1} does not stop the player from moving it around, or picking up mobs.

Comments 8

minecarts don't have any AI so the NoAI tag has no effect.
Works as I would expect it too

Actually, they do... In a flatland world, i set a minecarts entity data to {} and here is what showed up:

{UUIDLeast:-4906066466207270165L,Motion:[0:-5.190825505530378E-145d,1:0.0d,2:7.407501119087771E-144d,],OnGround:1b,UUIDMost:-7006448492424705624L,Dimension:0,Air:0s,id:"MinecartRideable",Pos:[0:373.4891406478631d,1:4.0d,2:728.749639033712d,],PortalCooldown:0,Fire:-1s,FallDistance:0.0f,Rotation:[0:-85.99154f,1:0.0f,],Invulnerable:0b,}

So dont tell me this isnt a bug 😛

The tags that would normally be stopped would be rotation and motion.

Edit: All edits were reverted back to the original post.

An entity can have rotation and motion tags without having an AI.

I understand the reasoning behind why the minecarts shouldnt move, since players cannot push other entities (sheep, etc) around when they have the NoAI set to 1, but the reasoning of not having rotation/motion tags is completely wrong.

This said, the NoAI tag removes an entities AI, it being pushed around by outside forces really isnt an AI thing imo. But we'll see what Searge has to say (or anyone else) since Searge has marked a lot of NoAI issues as "won't fix"

NoAI tag works only on mobs, not on minecarts and other non-mob entities.

Works as Intended, since minecarts are not mobs and therefore don't have an AI.

Intended. NoAI tag only applies to mobs.

minecarts don't have any AI to begin with.

user-2a4c8

(Unassigned)

Confirmed

Minecraft 14w33a, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.2-pre1

Retrieved