Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Posted

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.

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.