Combine Armor mod with Tab Mod

Started by oblisgr on Sat, 11/19/2016 - 23:40

Topic category: Advanced modding

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Combine Armor mod with Tab Mod
Sat, 11/19/2016 - 23:40

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 00:21, 11. Aug 2019
Joined Aug 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

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

Ah ok worked at last.

Thank you