Well, I'm not completely sure what your asking, but if I understand, you want to add that code to onTickInGame()? In that case just get the player from the minecraft instance like mc.thePlayer.inventory.getCurrentItem()
Edit:Ninja'd xD
src/minecraft/net/minecraft/src/ItemToolCrystal.java:29: operator + cannot be applied to int,enumtoolcrystal.getDamageVsEntity
damageVsEntity = j + enumtoolcrystal.getDamageVsEntity();
getDamageVsEntity() isn't returning an integer.
src/minecraft/net/minecraft/src/ItemToolCrystal.java:20: cannot find symbol
symbol : class enumtoolcrystal
location: class net.minecraft.src.ItemToolCrystal
protected ItemToolCrystal(int i, int j, enumtoolcrystal enumtoolcrystal, Block ablock[])
It can't find a class named enumtoocrystal.
I might be able to help if you could show me ItemToolCrystal and enumtoolcrystal.
1
How can you assume that they don't know java from this question?
1
Edit:Ninja'd xD
1
1
1
1
1
Also please use [code] tags.
1
getDamageVsEntity() isn't returning an integer.
It can't find a class named enumtoocrystal.
I might be able to help if you could show me ItemToolCrystal and enumtoolcrystal.
1
Remove the whitespace in your recipes, so they should look like this:
1