Posted January 10, 201411 yr So basically, I want to make it so that when my keybinding is pressed, the player punches, without overriding the default punch on left click, but I've been searching the code and can't find where the action is referenced at all, any help is appreciated.
January 10, 201411 yr I believe the method you are looking for is swingItem() , which is located in EntityLivingBase , a class extended by EntityPlayer . Before you even think about modding, please learn basic Java.
January 10, 201411 yr Author Which is working in something like an item, but does absolutely nothing here. https://gist.github.com/anonymous/8bc0bcd4cace491ac452
January 11, 201411 yr You're missing a curly brace. Before you even think about modding, please learn basic Java.
January 15, 201411 yr Author Because that isn't the complete method, but that's unrelated to the topic.
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.