0
/give @p minecraft:bow{display:{Name:"{\"text\":\"Test Name\"}"}} 

Is what I am trying to add enchantments to but cannot seem to figure out how. {Sharp 5 Knockback 100}

I tried the following:

/give @p minecraft:lead{Enchantments:[{id:"minecraft:knockback",lvl:1‌ 000},{display:{Name:‌ "{\"text\":\"Test Name\"}"}}
/give @p minecraft:bow{display:{Name:"{\"text\":\"Test Name\"}"}},{Enchantments:[{id:"minecraft:knockback",lvl:1000‌ }
/give @p minecraft:lead{display:{Name:"{\"text\":\"Test Name\"}"}{Enchantments:[{id:"minecraft:knockback",lvl:1000}}

Java Edition: Vanilla, 1.16.4

4
  • What have you tried already? Please share your past trials that didn't work, or share research that you tried to look at but didn't help you.
    – One 2 Many
    Dec 20, 2020 at 19:57
  • /give @p minecraft:lead{Enchantments:[{id:"minecraft:knockback",lvl:1000},{display:{Name:"{\"text\":\"Test Name\"}"}} /give @p minecraft:bow{display:{Name:"{\"text\":\"Test Name\"}"}},{Enchantments:[{id:"minecraft:knockback",lvl:1000} /give @p minecraft:lead{display:{Name:"{\"text\":\"Test Name\"}"}{Enchantments:[{id:"minecraft:knockback",lvl:1000}} Idk if its because I just woke up but yakno, Figured id ask.
    – Corpseys
    Dec 20, 2020 at 20:07
  • gaming.stackexchange.com/questions/185451/… What i used to find the new 1.16 naming thing (From you)
    – Corpseys
    Dec 20, 2020 at 20:19
  • 4
    Possible duplicate of How do I create tools with multiple properties?
    – pppery
    May 27, 2021 at 12:32

1 Answer 1

1

It seems to me that you have malformed nbt. In all the commands you’ve tried, you opened an array and never closed it. What you’ve done.

Enchantments:[{id:"minecraft:knockback",lvl:1000s}

What the correct way is.

Enchantments:[{id:"minecraft:knockback",lvl:1000s}]

Notice in the bottom example there is a close bracket at the end and the top example there isn’t. That is an example of malformed nbt. Your final command is below.

/give @p minecraft:lead{display:{Name:"{\"text\":\"Test Name\"}"}, Enchantments:[{id:"minecraft:knockback",lvl:1000s}]}

For later problems I suggest using mcstacker to generate commands.

0

Not the answer you're looking for? Browse other questions tagged .