Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.12.1] How to integrate other mods
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
grand_gibus

[1.12.1] How to integrate other mods

By grand_gibus, August 24, 2017 in Modder Support

  • Start new topic

Recommended Posts

grand_gibus    0

grand_gibus

grand_gibus    0

  • Tree Puncher
  • grand_gibus
  • Members
  • 0
  • 25 posts
Posted August 24, 2017

Hello, so I'm making a mod and I'd like to use the CTM mod to make connected textures (https://minecraft.curseforge.com/projects/ctm)
My question is, is it possible (if I have the permission) to directly combine it with my mod so there's only one .jar to download?
Thanks in advance

Share this post


Link to post
Share on other sites

shadowfacts    100

shadowfacts

shadowfacts    100

  • Dragon Slayer
  • shadowfacts
  • Forge Modder
  • 100
  • 588 posts
Posted August 24, 2017

It's possible for some libraries, but not for CTM as it has its own @Mod class.


Don't make mods if you don't know Java.

Check out my website: http://shadowfacts.net

Developer of many mods

Share this post


Link to post
Share on other sites

jabelar    594

jabelar

jabelar    594

  • Reality Controller
  • jabelar
  • Members
  • 594
  • 3266 posts
Posted August 24, 2017

It also depends on how you want the inter-mod interactions to work. While you can't combine other mods generally into single JAR you can make the other mod a dependency so that your mod requires the other one to work. Next you need to make sure your code that depends on the other mod loads or executes after the other mod is loaded -- for example if you want to use an item from another mod you'd need it registered before you try to use it. For things that get registered, you can generally just access them by knowing the modid of the other mod and referencing the related registry. if the other mod is designed to provide an API then you can call those methods from the other mod and they should work.


Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Share this post


Link to post
Share on other sites

grand_gibus    0

grand_gibus

grand_gibus    0

  • Tree Puncher
  • grand_gibus
  • Members
  • 0
  • 25 posts
Posted September 1, 2017

Ok, thank you a lot for your replies. I'm going to look into that.

Share this post


Link to post
Share on other sites

RpxdYTX    0

RpxdYTX

RpxdYTX    0

  • Tree Puncher
  • RpxdYTX
  • Members
  • 0
  • 4 posts
Posted November 30, 2020 (edited)
On 8/24/2017 at 2:56 PM, jabelar said:

It also depends on how you want the inter-mod interactions to work. While you can't combine other mods generally into single JAR you can make the other mod a dependency so that your mod requires the other one to work. Next you need to make sure your code that depends on the other mod loads or executes after the other mod is loaded -- for example if you want to use an item from another mod you'd need it registered before you try to use it. For things that get registered, you can generally just access them by knowing the modid of the other mod and referencing the related registry. if the other mod is designed to provide an API then you can call those methods from the other mod and they should work.

but what about you don't placing dependencies but some "conditions" i guess, that don't need the mods to work, just if that mod is loaded you add bonuses or something related to the other mod, like JEI, you place the items on the JEI tab and place their recipes or something about it if you have JEI in modpack, but if don't the mod is normal but without the new JEI things

Edited November 30, 2020 by RpxdYTX
complementing it

Share this post


Link to post
Share on other sites

diesieben07    7687

diesieben07

diesieben07    7687

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7687
  • 56228 posts
Posted November 30, 2020

1.12 is no longer supported on this forum.

Please update to a modern version of Minecraft to receive support.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • DrCowiber
      Failed To Start Minecraft Server

      By DrCowiber · Posted 23 minutes ago

      I dont think this has anything to do with the OS, but with maybe the way I installed java? I installed Ubuntu made for the raspberry pi 4 and the same message happened. im installing java with "sudo apt-get install default-jdk", So I tried again with "sudo apt-get install default-jre" and ended up reinstalling the jdk too, same thing happened.
    • CyberNation
      Forge 1.7.10 Server Failed to write Transciever Channels

      By CyberNation · Posted 35 minutes ago

      i made a custom 1.7.10 modpack for my friends and I to play on decided to move it over to my own server host and now im getting an error when starting ive spent several hours trying to look for a solution and cant seem to find one im not sure if im in the right place for this but i hope someone can help me     17:44:27 Can't revert to frozen GameData state without freezing first. Server thread/INFO 17:44:27 Applying holder lookups Holder lookups applied Server thread/WARN 17:44:27 Failed to write Transciever Channels on exit: java.util.concurrent.ExecutionException: java.lang.NullPointerException Server thread/INFO 17:44:27 The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED. Errors may have been discarded. The state engine was in incorrect state ERRORED and forced into state AVAILABLE. Errors may have been discarded.     full Crash Log Report: Paste Bin https://pastebin.com/cxgY3t6q
    • DrCowiber
      Failed To Start Minecraft Server

      By DrCowiber · Posted 56 minutes ago

      Im wondering if changing the launch options for the main server jar will fix that? I saw some threads where some peoples launch files had "-o" as a launch option, is there a way I can change the launch options for when the vanilla server is launched?
    • DrCowiber
      Failed To Start Minecraft Server

      By DrCowiber · Posted 1 hour ago

      When I run my forge Server it goes fine, but when I try to host off my Raspberry Pi 4 Model B 8GB RAM, using the 32-bit raspbian and 64-bit raspbian, I get this error at the end of log.   jpotsimple.UnrecognizedOptionException: o is not a recognized option     The full log file: https://pastebin.com/n4GpC53Q   Edit: This also happens when running the vanilla jar in the folder. This didn't happen with a vanilla installed from minecraft.net, so Im thinking that the jar file has that extra '-o' on it somewhere that causes this. vanilla log file: https://pastebin.com/pSq76TYp
    • KBomb
      Forge 1.12.2 Server Crashing On Start-up

      By KBomb · Posted 1 hour ago

      I have been able to run the server in vanilla, but after adding the mods the server is crashing during the start-up. I will attach the crash report. I also have screenshots of what the server console was displaying if that may be necessary. crash-2021-02-24_18.58.56-server.txt
  • Topics

    • DrCowiber
      2
      Failed To Start Minecraft Server

      By DrCowiber
      Started 1 hour ago

    • CyberNation
      0
      Forge 1.7.10 Server Failed to write Transciever Channels

      By CyberNation
      Started 35 minutes ago

    • KBomb
      0
      Forge 1.12.2 Server Crashing On Start-up

      By KBomb
      Started 1 hour ago

    • milkman69
      0
      My game keeps crashing and I haven't even added any mods on yet

      By milkman69
      Started 2 hours ago

    • Skyriis
      0
      [1.16.5] Adding a Button to KeyBindings

      By Skyriis
      Started 3 hours ago

  • Who's Online (See full list)

    • DrCowiber
    • CyberNation
    • mcnuggies
    • jbko6
    • Jeldrik
    • William59
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.12.1] How to integrate other mods
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community