Posted February 5, 20169 yr I would like to have a core mod and then have my other mods use some items from my core mod. I tried looking this up but found nothing.
February 5, 20169 yr What exactly are you confused with? Just create a new class in your core mod that will serve as a global item library for all your other mods and move your items there. Remember to import that package to all your other mod classes and like this you will have access to them from any mod package. I still haven't published a mod because I can never get that in-dev version just right to warrant a public release. And yes, after two years of mod development I am still learning to speak Java. Follow me on GitHub: https://github.com/yooksi Contact me on Twitter: https://twitter.com/yooksi Read my Minecraft blog: https://yooksidoesminecraft.blogspot.de/
February 5, 20169 yr Author I have a class that stores my items and I tried importing the package but it didn't work.
February 6, 20169 yr Author Nevermind, i don't got it. The class that i'm trying to import is: import staffmod.core.common.item.MItems; This is from my other mod that i have, completely separate, how can I make this work.
February 6, 20169 yr Add your mod to your workspace http://www.minecraftforge.net/forum/index.php?topic=19177.0 After that you can either just straight up import your stuff or use GameRegistry functions to get already registered items (GameRegistry.getRegisteredItem?)
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.