I need to make a command so that I can place, for example, a block of white wool in the world and this command will be executed under this block:
summon minecraft:item ~ ~ ~ {Tags:["123"],PickupDelay:32767,Item:{id:"minecraft:apple",Count:1b}}
minecraft version: 1.20.1
I don't understand why this doesn't work:
execute if block ~ ~ ~ minecraft:white_wool run summon minecraft:item ~ ~-1 ~ {Tags:["123"],PickupDelay:32767,Item:{id:"minecraft:apple",Count:1b}}
or
execute unless block ~ ~ ~ minecraft:white_wool run summon minecraft:item ~ ~-1 ~ {Tags:["123"],PickupDelay:32767,Item:{id:"minecraft:apple",Count:1b}}
at
keyword?minecraft.used:minecraft.white_wool
.