Posted May 3, 201312 yr Hello, I am recently new to modding mine craft, but I am a fairly experienced coder. I would like to make a mod that modifies some of the hand code, specifically where the hand punches. After searching around for a long while, I have not found where the code for the transformations of the hand punching are. Any help would be appreciated. Thanks.
May 3, 201312 yr If you were experienced with coding you'd know the HUD is displayed last, after world rendering But to answer your question, the hand rendering, is actually in RenderPlayer.renderFirstPersonArm(). But the swing is handled in in ModelBiped I think its my java of the variables.
May 3, 201312 yr Author I do know that the HUD is rendered last, but I don't really know where all the renders and everything are for the hud, minecraft's class structure is fairly new to me. What I meant is the arm rotation to the first person fist when one punches.
May 3, 201312 yr One tip about minecraft structure, It's scattered... arm rotation is a variable in EntityPlayer.swingProgress and EntityPlayer.prevSwingProgress, which is read in rendering by EntityPlayer.getSwingProgress(float f); float f being the partial tick I think its my java of the variables.
May 4, 201312 yr Author That helped alot, thanks. I instantly realized how scattered Minecrat's code is. One last thing. Do you know where the client side breaking begins? I want to stop the player from breaking blocks like adventure mode if they don't have a tool.
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.