Okay, so I've added this to the top of my code:
And I get an error on the FORESIATOOL saying "only final is permitted". I've obviously messed something up here, but I'm not great at Java and very new to Forge so I'm not sure what.
Hi, I'm trying to make a material for tools that will have higher mining capabilities if certain mods are present. What I have working right now is the actual material (registered in EnumHelper, this part works fine and I've used the pick for mining in single player), and I know how to use Loader.isModLoaded properly (I got it working for the hardness of a block in a different section of my code.)
However, when I try to use the same type of if statement that I used for the block's hardness, I get a whole slew of errors. I'm not sure what I'm doing wrong with it though.
Here is my current code:
Any help would be appreciated.
Hi, I'm super new to modding, and I was wondering if someone could explain how I would make a recipe using items from a different mod. I know how to detect whether or not a mod is loaded already, and I also know how to create a recipe and all the other basic setup required, but I don't even know where to start with using other mod items in my recipe. Also, to do this would I have to put the mod into my workspace? And if yes, how would I do this?
1 reply
Important Information
By using this site, you agree to our Terms of Use.