Affects Version/s: Minecraft 1.11, Minecraft 1.12 Pre-Release 6, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.2, Minecraft 17w47b, Minecraft 18w02a, Minecraft 18w11a, Minecraft 18w19b, Minecraft 1.13-pre1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w12b, Minecraft 19w13b, 1.15.1, 1.15.2 Pre-release 2
Fix Version/s: None
Using /replaceitem you cannot set the horse saddle to air (remove it), one would expect it to function the same as any other slot.
- Summon a horse:
- Add a saddle:
→ See "Replaced a slot on Horse with [Saddle]"
- Try to remove the saddle:
→ See "Could not put [Air] in slot 400"
The following is based on a decompiled version of Minecraft using MCP for 1.11.
The replaceItemInInventory() method in class net.minecraft.entity.passive.AbstractHorse requires the item to be a saddle at all times:
This is unlike other mob equipment such as ArmorItems, where the contents can be deleted by replacing with "air".