general help in 1.21
Bro how can i detect an item with a spesific tag (or component, whatever suits is) being hold by a player? I tried this but doesn't seem to work:
/give LebekeleW minecraft:wooden_sword[minecraft:custom_model_data={type:1}]
execute as @a[nbt={SelectedItem:{components:{"minecraft:custom_model_data":{type:1}}}}] run say works!
Continue to help post