I'm a new modder who is sort of new to all this java and stuff, and I'm making a gui with different buttons for fun, and one button I'm adding is a "suicide" button. I need to know how to damage the player entity through a button in a gui. Is it setting the player entity health to 0? If so, how do I change the health through the button?
Thanks ahead,
Dumpster