shmcrae Posted February 5, 2016 Posted February 5, 2016 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. Quote
yooksi Posted February 5, 2016 Posted February 5, 2016 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. Quote 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/
shmcrae Posted February 5, 2016 Author Posted February 5, 2016 I have a class that stores my items and I tried importing the package but it didn't work. Quote
shmcrae Posted February 6, 2016 Author Posted February 6, 2016 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. Quote
Failender Posted February 6, 2016 Posted February 6, 2016 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?) Quote
shmcrae Posted February 7, 2016 Author Posted February 7, 2016 I put the mod in the eclipse mod folder but it doesn't work. Quote
Failender Posted February 7, 2016 Posted February 7, 2016 You need to add it to the build path.. Quote
Recommended Posts
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.