Combine Armor mod with Tab Mod

Started by oblisgr on

Topic category: Advanced modding

Last seen on 14:42, 5. Jan 2017
Joined Mar 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Combine Armor mod with Tab Mod

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

Last seen on 17:17, 10. Jan 2024
Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Simply change .setCreativeTab
Sat, 11/19/2016 - 23:52

Simply change .setCreativeTab(CreativeTabs.tabCombat); to .setCreativeTab(mcreator_YOURTAB.tab);

Last seen on 14:42, 5. Jan 2017
Joined Mar 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Simply change .setCreativeTab
Sun, 11/20/2016 - 14:42

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.

Last seen on 14:42, 5. Jan 2017
Joined Mar 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ah ok worked at last.
Sun, 11/20/2016 - 15:10

Ah ok worked at last.

Thank you