TransWikia.com

Problems With /replaceitem Command

Arqade Asked on August 9, 2021

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?

2 Answers

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}]}

Answered by IronAnvil on August 9, 2021

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}]}

Answered by Khoeckman on August 9, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP