Topic category: Help with modding (Java Edition)
Heya! I've been looking around and i have found threds that seem to explain it but i still don't get it...
All i want is to have a button from a gui set an Int value from 0 to 1 (false/true).
Like a vampire mod for an example i want only the people who has been "infected" to burn in daylight aka (int 1) and (int 0) to not be affected at all.
I have been told by these threds that Global_Sessions in player specific and to use NBT_Tag to store the data when login in and out.
The issue however is that it still wont work... If one becomes a "Vampire" everyone becomes Vampires so i suppose i dont know how to store NBT_Tags of entities.
If anyone could share pictures or take me through a step by stop guide i would be really greatefull!