-2

I need to figure out how to make a stick that has two specific NBT tags in Minecraft 1.15! I need it to be called "Box Breaker" and be only able to destroy brown Shulker boxes. I have no idea how to do it and I can't find it anywhere online. I have tried this but it won't give me the name (only the can destroy works).

/give @p minecraft:stick{CanDestroy: ["minecraft:stone"],display:{Name:"Box Breaker"}}

1

1 Answer 1

1

You have forgotten the escape sequences, you need forward slashes before and at the end of a string. Like this:

/give @p minecraft:stick{CanDestroy: ["minecraft:stone"],display:{Name:"{\"text\":\"Box Breaker\"}"}}

Or if you would not like the name to be italic:

/give @p minecraft:stick{CanDestroy: ["minecraft:stone"],display:{Name:"{\"text\":\"Box Breaker\",\"italic\":\"false\"}"}}
2
  • Thanks So much !! It works great :))) !!
    – Jude Smy
    Commented Apr 3, 2020 at 12:32
  • @JudeSmy Thanks, I would appreciate it if you marked it as answer! Commented Apr 6, 2020 at 20:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.