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!
Use Player Persistent global variable! It's unique for all players on the server and will not reset after rejoining.
There is no need to use Global Session and NBT in this case.
Yeah that seems to be the most logical answer but when i log in to my first account and set well something to 1 if i log in to a second account on the same server i get the same effects which must mean that the int value is set to 1 for all players eventhough its Player Persistent...
I also need help with this!
Here is a picture of my function and my Variable is set up like this:
IsMermaid | NUMBER | PLAYER_PERSISTENT | 0
IsMermaid | NUMBER | GLOBAL_SESSION | 0
Hm It’s either a bug or your fault. What version are you using? Also could you send your workspace?
I apprear to have solved it somehow and i have no clue what i did but now it works but thanks for your help clearing up the confusion between PLAYER_PERSISTENT and GLOBAL_SESSION!