How to detect item on the ground with components?
I cant detect item on the ground with component.
Command:
execute as @e[type=minecraft:item,nbt={custom_data:"cubic"}] if items entity @e[type=item] container.* player_head[minecraft:custom_data={cubic:1b}] run give @p diamond
Continue to help post