Problems With /replaceitem Command

Problems With /replaceitem Command - Woman in Blue Shirt Talking to a Young Man in White Shirt

I'm working on the KitPVP part of my server again. I'm trashing the part about buying the kits. All of them will be free. I'm trying to use /replaceitem to get the players their kits, but I have a few problems. I'm trying to get a leather tunic on the user which is dyed, named "Brute's Body", and enchanted. This is what I've tried:

replaceitem entity @p slot.armor.chest leather_chestplate 1 0 {display:{color:7514398,Name:Brute's Body},ench:[{id:0,lvl:4},{id:34,lvl:10}]}

When I try this, it says it replaced that slot with "leather chestplate" but then it doesn't. Does anyone know how to fix this?



Best Answer

The Name tag needs to be contained within quotation marks:

replaceitem entity @p slot.armor.chest leather_chestplate 1 0 {display:{color:7514398,Name:"Brute's Body"},ench:[{id:0,lvl:4},{id:34,lvl:10}]}



Pictures about "Problems With /replaceitem Command"

Problems With /replaceitem Command - Woman in Blue and White Crew Neck Shirt
Problems With /replaceitem Command - Unrecognizable woman holding paw of dog
Problems With /replaceitem Command - Side view of young woman in hoodie sitting on floor near sofa and playing with obedient brown Labrador while resting during free time





How To Use The Minecraft Replace Item Command In Bedrock MCPE! (Updated)




More answers regarding problems With /replaceitem Command

Answer 2

Execute this in chat, but make sure your in 1.12:

/replaceitem entity @p slot.armor.chest leather_chestplate 1 0 {display:{color:7514398,Name:"Brute's Body"},ench:[{id:0,lvl:4},{id:34,lvl:10}]}

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Kindel Media, Kindel Media, Ivan Babydov, Ivan Babydov