1

I'm trying to give a shield that has a name and a pattern, but I can't combine the two nbt tags correctly. Either one works or neither works. Here's an example of a command I've been trying (I'm in 1.14.4 and want this to work on multiplayer, by the way): `

/give @p minecraft:shield{display:{Name:"[{\"text\":\"Shield of the Lake\",\"italic\":false,\"color\":\"blue\"}]",BlockEntityTag:[{Base:9,Patterns:[{Color:11,Pattern:"gru"},{Color:11,Pattern:"bts"},{Color:3,Pattern:"mr"}]}]}} 1

`

  • Relevant wiki pages: minecraft.gamepedia.com/Chunk_format and minecraft.gamepedia.com/Raw_JSON_text_format I can for example see that you put the pattern into the "Name" tag, that you used an array inside a string (that doesn't work, only /tellraw can use arrays and not inside strings) and that generally your brackets aren't where they're supposed to be. I would recommend starting with a very simple case that works for you and then adding stuff back in piece by piece. – Fabian Röling Feb 9 at 13:39
  • Can't you just use an anvil? – InfiniteEnternitis Feb 11 at 1:59
0

Try putting the BlockEntityTag under the root object instead of under display.

Command:

/give @p minecraft:shield{display:{Name:'[{"text":"Shield of the Lake","italic":false,"color":"blue"}]'},BlockEntityTag:{Base:9,Patterns:[{Color:11,Pattern:"gru"},{Color:11,Pattern:"bts"},{Color:3,Pattern:"mr"}]}} 1

The NBT formatted:

{
  display: {
    Name: '[{"text":"Shield of the Lake","italic":false,"color":"blue"}]'
  },
  BlockEntityTag: {
    Base: 9,
    Patterns: [
      {Color: 11, Pattern: "gru"},
      {Color: 11, Pattern: "bts"},
      {Color: 3, Pattern: "mr"}
    ]
  }
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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