Hi, so I've been researching for a few days now and cant find anything to fix this. I've been trying to make it where when I drop a Heart of the Sea with the custom model data of "1274", it places a redstone block. I don't know what I'm doing wrong and i've been researching for days and I'm thinking of giving up... here is what I got:
execute if entity @e[type=minecraft:item,nbt={tag:{CustomModelData:1274}}] run setblock ~ ~1 ~ minecraft:redstone_block
execute as @e[type=item,distance=..2] if items entity @s contents minecraft:heart_of_the_sea[minecraft:custom_data~{gamble:true}] at @s run setblock -505 64 -279 minecraft:redstone_block
Hi, so I've been researching for a few days now and cant find anything to fix this. I've been trying to make it where when I drop a Heart of the Sea with the custom model data of "1274", it places a redstone block. I don't know what I'm doing wrong and i've been researching for days and I'm thinking of giving up... here is what I got:
execute if entity @e[type=minecraft:item,nbt={tag:{CustomModelData:1274}}] run setblock ~ ~1 ~ minecraft:redstone_block
I dont think anyone is gonna answer so ig im giving up...
SOLUTION:
execute as @e[type=item,distance=..2] if items entity @s contents minecraft:heart_of_the_sea[minecraft:custom_data~{gamble:true}] at @s run setblock -505 64 -279 minecraft:redstone_block