Steps to reproduce:
Equip an item into armor.body slot:
/item replace entity @s armor.body with minecraft:diamond_horse_armor
Equip an item into saddle slot:
/item replace entity @s saddle with minecraft:saddle
Check if item is in the armor.body and/or saddle slot:
/data get entity @s equipment.body
/data get entity @s equipment.saddle
Changing the gamerule keepInventory to True:
/gamerule keepInventory true
Kill the player:
/kill @s
Expected Result:
/data get entity @s equipment.body returning item stack, meaning the slot still has the item.
/data get entity @s equipment.saddle 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.
/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 world, Survival gamemode, no gamerule changes, Allowed Commands:On
The other video was on a Fabric version in case, that is a problem even though it was just optimization mods, here is in the latest snapshot.
[media]