Started by
oblisgr
on
Topic category: Advanced modding
Hello,
I have created a new armor using the MCreator that works and appears correctly.
I have created a new tab named "Chests" using MCreator that appears correctly too.
I want to add the armor incide the new tab. Both mods are exported in my mod. How shall I combine those two?
In previous version i had managed to create the tab inside the armor mod, and then declare it to go there.
In 1.10.2 I cannot do this at all, because I get errors.
So I thought to create the tab in diffrent mod and just put the nessesary lines in armor mod to make them go in custom tab.
If someone can help, I would be grateful, it will help me continue updating my mod from 1.8 to 1.10
Thanks
Simply change .setCreativeTab(CreativeTabs.tabCombat); to .setCreativeTab(mcreator_YOURTAB.tab);
warning: [options] bootstrap class path not set in conjunction with -source 1.6
C:\Pylo\MCreator171\forge\build\sources\main\java\mod\mcreator\mcreator_chests.java:151: error: cannot find symbol
Chest001.setCreativeTab(mcreator_ChestsTab.tab);
^
symbol: variable mcreator_ChestsTab
location: class mcreator_chests
Note: C:\Pylo\MCreator171\forge\build\sources\main\java\mod\mcreator\mcreator_chests.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
1 warning
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Ah ok worked at last.
Thank you