I build Mario Kart in Minecraft and need commands for collectable items, these should give you a boost yourself or other slowdowns.
Do you have any ideas for this?
/ execute at @a [nbt = {Inventory: [{id: "ITEM", Count: 1b,}]}] run Boost / deceleration
This is how it could work…
/ execute at @a [nbt = {Inventory: [{id: "ITEM", Count: 1b, tag: {display: {Name: "{\" text \ ": \" NAME \ "}"}}}}] }] run boost / slowdown
If you want special items with names