Topic category: Help with modding (Java Edition)
Okay, in my mod, I have a problem with source entity and variables. i have a stats system: (Health, Energy, Strength, etc). this stats can be upgraded using TP (Training Points), the player is supposed to earn TP when he punch an entity or another player, depending on where he is and what he wear. the TP gain is random, it can be 5 just like it can be 10. here is the tp gain procedure:
I want to know whats wrong with the procedure, and also... if i am playing in a server, am i the only one to earn tp(cuz im the one to punch), or all the Players in the server will gain tp?
This might work, but same question, will all the players in the server is going to earn tp if only one player punch)