mojira.dev
MC-76131

Cannot set weapon slot of a mob/armor stand with armour or player/mob head (/replaceitem)

The bug

When using /replaceitem you can not set any type of armour or mob heads to slot.weapon.

How to reproduce

  1. /summon armor_stand

  2. /replaceitem entity @e[type=armor_stand,limit=1] weapon minecraft:iron_chestplate

  3. Error: "Could not put [Iron Chestplate] in slot 98"

Note that other items, such as stone blocks, work.

Linked issues

Comments 16

Use /entitydata or /summon, /replaceitem enforces slot restrictions.

I don't think this is intended. You're trying to put a chestplate in the hand slot but it doesn't work. Shouldn't it act as any other item?

6 more comments

Confirmed in 1.15.2 and 1.16 Pre-release 3.

Still in 1.16.1 and 20w27a

Cannot reproduce in 20w48a.

Works as expected in 20w49a

/item entity @e[type=minecraft:armor_stand,limit=1] weapon replace minecraft:iron_chestplate

Resolving as 'Cannot Reproduce' for now. A fix version can be added afterwards in case someone finds out the exact version where this got fixed.

Logstone

(Unassigned)

Confirmed

Commands

Minecraft 1.8.2-pre1, Minecraft 15w44b, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 3, ..., 20w27a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Release Candidate 1, 1.16.2

Retrieved