2

Why does not this command work?

Silverfish003 6/26/21 9:25 am
320
6/26/2021 10:26 pm
imgur.com/a/5UIUkz4
It spawns a empty chest.
The command block says: Could not set the block

Also hello after two years :)
Posted by
Silverfish003
Level 19 : Journeyman Cake
4

  Have something to say?

JoinSign in

2

HoboMaggot
06/26/2021 10:26 pm
Level 55 : Grandmaster Blob
Ive tested the command using a command generator
actual command:
setblock ~ ~-2 ~ chest{Items:[{Slot:13b,id:"minecraft:netherite_hoe",Count:1b,tag:{display:{Name:'{"text":"Fixer","color":"gold","bold":true}',Lore:['{"text":"Use this to patch out","color":"yellow","italic":true}','{"text":"outsiders that dont","color":"yellow","italic":true}','{"text":"belong","color":"yellow","italic":true}']},HideFlags:8,Unbreakable:1b}}]} replaceand the command itself works, spawning a chest with a netherite hoe inside.
As 3xx3 stated, you cant replace the same block using /setblock. You need to use /data to modify contents of an nbt block
2
3XX3
06/26/2021 2:43 pm
Level 21 : Expert Artist
Its probably because there is already a chest at that block
2

Welcome