Posted June 12, 201213 yr I was told to put my declarations in my load() method, but that makes the following code not work: if(itemstack.itemID == mod_Physicraft.helmetSteel.shiftedIndex || itemstack.itemID == mod_physicraft.plateSteel.shiftedIndex || itemstack.itemID == mod_physicraft.bootsSteel.shiftedIndex) I'm sure that's what I should do (put in load()), but then how would i import the variables in there? For now, i just put the id's manually, but that does not seem like a permanent fix.
June 12, 201213 yr You are NEVER supposed to declare your item and block variables inside the function. It should be part of your class. http://calclavia.com/uploads/banner.png[/img]
June 12, 201213 yr declarations != instantiations, lrn2java plz. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
June 12, 201213 yr Ahh, looked at a couple sources and figured it out (Universal components . http://calclavia.com/uploads/banner.png[/img]
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.