Hi. I need to figure out how to make a stick that has two specific NBT tags in Minecraft 1.15!



  • 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"}}



  • 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\"}"}}
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2