mojira.dev
MC-297862

armor.body and saddle slots not working as intended with prevent_equipment_drop Enchantment Effect, keepInvetory gamerule and /clear command

armor.body slot prevent_equipment_drop enchantment effect bug:
Steps to reproduce:

Equipping an item into the armor.body slot that has Curse of Vanishing Enchantment(prevent_equipment_drop enchantment effect):
/item replace entity @s armor.body with minecraft:diamond_horse_armor[enchantments={vanishing_curse:1}]

Dying to see if the Curse of Vanishing works:
/kill @s

Expected Result:
Item disappearing and not dropping on death.

Actual Result:
Item dropping to the ground on death even though it has Curse of Vanishing.



saddle slot prevent_equipment_drop enchantment effect bug:
Steps to reproduce:

Equipping an item into the saddle slot that has Curse of Vanishing Enchantment(prevent_equipment_drop enchantment effect):
/item replace entity @s saddle with minecraft:saddle[enchantments={vanishing_curse:1}]

Dying to see if the Curse of Vanishing works:
/kill @s

Expected Result:
Item disappearing and not dropping on death.

Actual Result:
Item dropping to the ground on death even though it has Curse of Vanishing.

armor.body slot not working with /clear command:
Steps to reproduce:

Equpping an item into armor.body slot:
/item replace entity @s armor.body with minecraft:diamond_horse_armor

Checking if item is in the armor.body slot:
/data get entity @s equipment.body

Using /clear command:
/clear @s

Checking if item is in the armor.body slot:
/data get entity @s equipment.body

Expected Result:
/data get entity @s equipment.body returning fail with the description of: Found no elements matching equipment

Actual Result:
/data get entity @s equipment.body returning item stack, meaning the slot still has the item.



saddle slot not working with /clear command:
Steps to reproduce:

Equpping an item into saddle slot:
/item replace entity @s saddle with minecraft:saddle

Checking if item is in the armor.body slot:
/data get entity @s equipment.saddle

Using /clear command:
/clear @s

Checking if item is in the saddle slot:
/data get entity @s equipment.saddle

Expected Result:
/data get entity @s equipment.saddle returning fail with the description of: Found no elements matching equipment

Actual Result:
/data get entity @s equipment.saddle returning item stack, meaning the slot still has the item.



armor.body slot disappearing on death while gamerule keepInventory is True:
Steps to reproduce:

Equpping an item into armor.body slot:
/item replace entity @s armor.body with minecraft:diamond_horse_armor

Changing the gamerule keepInventory to True:
/gamerule keepInventory true

Killing the player:
/kill @s

Checking if item is in the armor.body slot:
/data get entity @s equipment.body

Expected Result:
/data get entity @s equipment.body returning item stack, meaning the slot still has the item.

Actual Result:
/data get entity @s equipment.body returning fail with the description of: Found no elements matching equipment
The item is also not dropped on death, so it completely vanishes.



saddle slot disappearing on death while gamerule keepInventory is True:
Steps to reproduce:

Equpping an item into saddle slot:
/item replace entity @s saddle with minecraft:saddle

Changing the gamerule keepInventory to True:
/gamerule keepInventory true

Killing the player:
/kill @s

Checking if item is in the armor.body slot:
/data get entity @s equipment.saddle

Expected Result:
/data get entity @s equipment.saddle returning item stack, meaning the slot still has the item.

Actual Result:
/data get entity @s equipment.saddle returning fail with the description of: Found no elements matching equipment
The item is also not dropped on death, so it completely vanishes.

Environment

Newly created 1.21.5 world with Cheats Enabled, on Survival and no gamerules changed with no datapacks.
Newly created 25w20a world with Cheats Enabled, on Survival gamemode and no gamerules changed with no datapacks.

Comments 2

Thank you for your report!
However, this issue is Invalid.

Please put only one bug report in each ticket. It is very difficult to keep track of bugs when they are not in their own tickets.
However, please review the Bug Tracker Guidelines before creating new reports. Be sure to search for an existing issue as it is likely to have already been reported.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

All of these issues are connected, they are not different bugs but instead caused by variation of same bug, I didn’t want to flood it by creating 6 different bug reports for it.

Efimity

(Unassigned)

Unconfirmed

(Unassigned)

1.21.5, 25w20a

Retrieved