mojira.dev
MC-114967

Command selectors cannot find shoulder entities (parrots)

The bug

Command selectors cannot find shoulder entities.

How to reproduce

  1. Summon a parrot and tame it

  2. Right click to parrot to have it sit on your shoulder

  3. Use a command selector

    /say @e[type=parrot]

    → You will notice that the parrot is not listed

Linked issues

Comments 5

When on the players shoulder the parrot seems to no longer be an entity, when showing the hitbox (F3+B) on mobs and items one does no appear around the parrot on the shoulder.

Edit:
It would seem that the target selector for the parrots on the shoulder are within the players NBT not through the parrot entity.

/testfor @a {ShoulderEntityLeft:{id:"minecraft:parrot"},ShoulderEntityRight:{id:"minecraft:parrot"}}

Just noticed this with the latest snapshot, searched, came across this. Can't help mention that I think it's a bit easy to claim "works as intended". Isn't the intention of the /kill command to actually kill entities in the first place?

The parrot on your shoulder is not a real entity.

It should at least find shoulder entities of name and take the shoulder entity off and kill the entity.

The snapshot is not out yet. I do not see why we should reopen because of MC-206107. The fix for that issue will either be parrots fly off when a player's hitbox collides with powder snow or when the player takes freezing damage. See MC-115048, which is related to MC-206107.

marcono1234

migrated

Confirmed

ShoulderEntity, command, parrot, selector

Minecraft 17w13a

Retrieved