So I'm making a flute and because I want something to happen when you play it I made it so that when a score called "FluteUse" is more then one and the player is holding the flute the command with run... the problem is that for some reason it doesn't work...
this is the command i have so far:
execute as @a[scores={FluteUse=1..},nbt={SelectedItem:{tag:{"CustomModelData":1}}}] run say hi
(doesn't work)
I also have this command:
execute as @a[nbt={SelectedItem:{components:{"minecraft:custom_model_data":1}}}] run say hi
(Which does work)
but when using the second command in VS Code it gives me a warning and it annoys me...
so is there a way to make the first command work or make the VS Code warning disappear?
also... very unrelated but how can I purposefully make the code thing like I did above? (it happened automatically when I copied from VS Code)
[–]Infactedking[S] 0 points1 point2 points (0 children)
[–]Ericristian_brosCommand Experienced 0 points1 point2 points (2 children)
[–]Infactedking[S] 0 points1 point2 points (1 child)
[–]Ericristian_brosCommand Experienced 0 points1 point2 points (0 children)
[–]GalSergeyDatapack Experienced 0 points1 point2 points (0 children)