I'm working on a mod that is heavy on changing EntityPlayer. In 1.2.5, I had a lot of things that worked like being able to be immune to fire if(...), and same with breathe underwater. Now in 1.3, it isn't working. I've come to the conclusion after days of trying to get these to work, that it's a server side thing, and me changing EntityPlayer isn't going to solve it. My question is, Where would I add the code to make someone immune to fire if I want it Server side? I've never worked with Multiplayer, but I have to now xD
I can only assume it's EntityPlayerMP, but that didn't work either. I'm probably going to fiddle with it a bit more though.
What i've noticed is simply setting them to be immune to fire doesn't work (as damage is calculated BEFORE you've set the boolean in most cases) as well as I think something is turning it to be false again somewhere along the lines. (probably has to do with potions, to turn off Fire Resist when the potion runs out)
This keeps the potion constantly on as long as this is called every tick. (in-game it registers as 0:00 permanently but it DOES work) The downside is your forced to include the particles.
I can only assume it's EntityPlayerMP, but that didn't work either. I'm probably going to fiddle with it a bit more though.
Thanks,
-Muserae
So what I did is something to this effect:
This keeps the potion constantly on as long as this is called every tick. (in-game it registers as 0:00 permanently but it DOES work) The downside is your forced to include the particles.