/blockdata command help

/blockdata command help - Man's Hand in Shallow Focus and Grayscale Photography

I wrote this command to make a chest constantly replace the items inside itself, the problem is that the command worked for the first part (command block) but if I try to add a second item like the button the command stops working.

How can I solve this problem?

Command:

/blockdata 3 56 0 {Items:[{id:137,Count:1,Slot:12,tag:{HideFlags:1,Unbreakable:1,display:{Name:"Command Block",Lore:["Write Commands Here!"]},ench:[{id:4,lvl:2}]}}],[{id:143,Count:1,Slot:13,tag:{HideFlags:1,Unbreakable:1,display:{Name:"Button",Lore:["Activate Commands!"]},ench:[{id:4,lvl:2}]}}]}





Pictures about "/blockdata command help"

/blockdata command help - 2 Person Holding Hands
/blockdata command help - Three People Sitting Beside Table
/blockdata command help - Selective Focus Photography Cement



How do you use the Blockdata command in Minecraft?

You change the data tag for a block using the /blockdata command in Minecraft. TIP: Starting in Minecraft Java Edition (PC/Mac) 1.13, the /blockdata command was replaced by the /data command.

How do you set a block of data in Minecraft?

You can use the /data command to get, merge and remove NBT tags (formerly called data tags) for entities and block entities. The /data command is most useful for changing attributes of a mob after the mob has spawned or modifying attributes of a block entity after you have placed it.

How do you merge data on Minecraft?

Look at the chest, hold ctrl , and press your pick block button (configurable in options). This should give you a chest item with identical NBT data.



Minecraft Commands: /blockdata Tutorial




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: lalesh aldarwish, Pixabay, Pixabay, Rodolfo QuirĂ³s