Looking for item on the ground with model data
Im trying to make a command that looks for an item on the ground with a specific custom_model_data
I have this command:
/execute if entity @e[type=item,nbt={components:{"minecraft:custom_model_data":1}}]
If I run it it says "test failed" even though there is an item on the floot with cmd of 1.
How can I go about finding the item on the floor?
Continue to help post