1
Help me make this command work!
Somebody help make this command below work, I need it badly for a map...
/execute at @a[nbt={Inventory:[{Slot:2b,id:"minecraft:lime_dye",tag:{display:{Name:'{"text":"-UP-"}'}}}]}] run effect give @s levitation 1 0 true
/execute at @a[nbt={Inventory:[{Slot:2b,id:"minecraft:lime_dye",tag:{display:{Name:'{"text":"-UP-"}'}}}]}] run effect give @s levitation 1 0 true
2
You're running a command on the player's location, which obviously doesnt make sense because you're trying to execute a command on them. You need to execute the command as the player.
As such the simple fix should be /execute as <command>
As such the simple fix should be /execute as <command>
Thank you so much!!! It works now!!!!! Take a sub dude.
