Thanks, i dont know why that wasnt my first move, i now can see that the error is being thrown for the Player, not the item. Thanks alot, it is all working now.. Except it is still dropping cobblestone, but i feel as if it is my fault, andi can hanlde it on my own. Thanks again! :)
i had already fixed item stack thing, and even with the cheaking of the null, the game will crash randomly, (i could be doing something, or not it will still crash)
and it crashes on the first line that contains player.getHeldItem() and throws java.lang.NullPointerException: Exception ticking world
Sorry for all the trouble
Code
crash report
fml log
okay.. so i have my event in a spoiler below, and when mining stone, it still drops cobblestone, and when mining iron ore, it produces the following crash report
any help is greatly appreiciated
Crash Report:
FML log
Event code:
im kind of new to forge modding, does anyone know how to get blocks to drop a specific drop when mined with a specific tool, for example say I have a pickaxe named "Smelting Pick" and drops stone when mining stone, iron when mining iron ore, ect. any help is appreciated