Posted January 6, 20187 yr I want to make some changes to the hunger/exhaustion system. I created a class that extends the EntityPlayer class and created overrides to the methods I needed to change. I'm guessing I need to initialize it somehow because it isn't overriding the default settings but, I'm not quite sure how to do it. Any help would be appreciated.
January 7, 20187 yr Author Awesome thank you. I've started messing around with the events now. Is there any particular event you'd recommend using to modify the exhaustion?
January 8, 20187 yr Author In the EntityPlayer class what are the p_71000_1_, p_71000_3_, and p_71000_5_? if (player.isInsideOfMaterial(Material.WATER)) { int i = Math.round(MathHelper.sqrt_double(p_71000_1_ * p_71000_1_ + p_71000_3_ * p_71000_3_ + p_71000_5_ * p_71000_5_) * 100.0F); if (i > 0) { player.addExhaustion(0.015F * (float)i * 0.01F); } }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.