Posted July 6, 201411 yr After adding my entity, and adding the itemstack I cannot figure out how to make it so when he passes over an item entity it gets picked up into the itemstack. Can anyone please help me out? Any help is appreciated.
July 6, 201411 yr Author To clarify a bit more, I am asking id there is a specific method/s which I can call to do this or weather or not I have to re-create all the methods myself.
July 7, 201411 yr Have a look at EntityLivingBase#onItemPickup , that seems to be related. If it is, either leave it as it is or @Override it for custom behaviour. EntityLivingBase#onItemPickup is called from within EntityLiving#onLivingUpdate , among other places. You will very likely want to @Override the latter.
July 7, 201411 yr Author I am sorry to appear as a bother, but I am still lost as how to do it. I have copied the methods and added the @Override Annotation, but I am lost as how to make it input into the stack. The code is here https://github.com/kenny2810/Death-Zombie-Mod- . Sorry if I appear noobish, but I am very new at working with entities.
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.