Topic category: Help with modding (Java Edition)
So i'm trying to make a mod that makes it so that if you are infected it lets you summon an item by pressing a key. I know it is possible with procedures and nbt tags im just not sure how i have got the body done its just the nbt tag bit im stuck on. Heres what it looks like:
If - (The bit im stuck on, I've tried global variables but i think that will affect ALL players if 1 player is infected)
do- If - true
do - Add 1 (item) to players inventory.
Else - If - false
do - print - "You do not have correct permissions!" <------- (not sure about this cause it will print in the console [I think])