Started by
Nico_44
on
Topic category: Help with Minecraft modding (Java Edition)
Hello I'am just asking if its possible for a mod to use a creative tab that's from another mod.
Edited by Nico_44 on Sat, 05/07/2022 - 08:41
Topic category: Help with Minecraft modding (Java Edition)
Hello I'am just asking if its possible for a mod to use a creative tab that's from another mod.
It should be if you edit the item code. Find this below, and edit the tab part if you know the tab name. You should be able to find it by opening the mod and looking at an item from the mod/tab you are trying to add items to.
Doesn't seem to work
It has to be (ModId)ModTabs, so in your case it'd be: "TreeBarkModTabs.BARK_TAB"
But to stop errors when compiling you'll need to import your mod, to do that:
Inside that folder you have to place your deobfuscated TreeBark mod.
Then you will need to edit the build.gradle file from MCreator and add
in the buildscript { repositories
So it should look like this:
Then you have to go down in the same file and search for the dependencies, and add this:
So it should look like this; depending on the forge version you're using.
To stop MCreator refreshing the build.gradle file, you'll have to manually compile your mod by going to console and using the build command:
The mod file will be saved in the folder MCreatorWorkspaces\your_project_folder\build\libs as "modid-1.0.jar"
Hope this helped you :)