I'm trying to make a map where a player has a diamond chestplate named "Heros Chestplate" and I was wondering if there is a command out there that deletes all items in a player's inventory but that item? I'm currently in 1.8.8 and
I'm using the command /clear @a !minecraft:diamond_chestplate 1 0 {display:{Name:"Hero's Chestplate"},ench:[{id:34,lvl:150}]}
Minecraft – How to delete all items but one in a players inventory
minecraft-commandsminecraft-java-edition
Related Topic
- Minecraft – How to make command blocks teleport players away from an area when they don’t have a specific item
- Minecraft – How to test for a named item in a players inventory? (Minecraft 1.13)
- Minecraft Java Edition – How to Edit NBT Tags of Inventory Items
- Minecraft – How to clear a minimum amount of items from a player’s inventory in Minecraft Bedrock Edition
- Minecraft – How to remove items with custom tags from a players inventory in 1.14
Best Answer
The only thing you could do is clear the player's inventory and give them a new hero chestplate