R
redpillar
Guest
hello
i'm sorry to bother this wonderful community, but i am noob and i need your help!
please, be patient, i'm learning how-to.
i'm creating my own simple mod by using Eclipse. everything went fine, until now...
there my problem:
i would like to import an item into my mod.
the current item already exists in BigReactors mod.
i already claimed the dependencies from the main class:
so, i wanted to import the following item:
when i try to "craft" the current item, the client will crash.
that's the error:
honestly, i dunno how to fix the problem.
how am i supposed to render anything i cannot import, maybe?
kindly, can anyone help me to fix the issue or understand what is going wrong?
thanks ahead time for your dealing and help.
-redpillar
ps. i get item's name from BigReactor's en_US.lang file - it's a silly way to find out the information i needed. - the above method could be applied to ExtraUtilities' mod. it works perfectly to import badrock ingots.
i'm sorry to bother this wonderful community, but i am noob and i need your help!
please, be patient, i'm learning how-to.
i'm creating my own simple mod by using Eclipse. everything went fine, until now...
there my problem:
i would like to import an item into my mod.
the current item already exists in BigReactors mod.
i already claimed the dependencies from the main class:
Code:
@Mod(... dependencies="after:BigReactors")
so, i wanted to import the following item:
Code:
public static final Item dustYellorium = GameRegistry.findItem("BigReactors", "dustYellorium");
//...
GameRegistry.addRecipe(
new ItemStack(dustYellorium,3),
new Object[]{
"xxx",
Character.valueOf('x'),new ItemStack(dustYellorium,3)
}
);
when i try to "craft" the current item, the client will crash.
that's the error:
Code:
Description: Rendering item
java.lang.NullPointerException: Rendering item
honestly, i dunno how to fix the problem.
how am i supposed to render anything i cannot import, maybe?
kindly, can anyone help me to fix the issue or understand what is going wrong?
thanks ahead time for your dealing and help.
-redpillar
ps. i get item's name from BigReactor's en_US.lang file - it's a silly way to find out the information i needed. - the above method could be applied to ExtraUtilities' mod. it works perfectly to import badrock ingots.
Last edited: