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    7705

diesieben07

diesieben07    7705

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7705
  • 56508 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

    • LessyDoggy
      Forge 1.12.2 Installing Bug

      By LessyDoggy · Posted 1 hour ago

      So I used forge 1.16.5 but now I cant change it too 1.12.2 no mather what. I have tried Installing client, Installing server and extract but nothing works. I even removed forge 1.16.5 from my computer but I still have that verison on and idk how to change it.
    • Yourskillx2
      !!Keeps crashing during launch!!

      By Yourskillx2 · Posted 1 hour ago

      I have a decent sized mod pack with around 90 mods and every time I go to launch the game, it loads some stuff then crashes with exit code 0, I cannot figure out if its a mod in the pack doing it, like maybe not a release version or if it just doesn't work with Mc like its supposed to.
    • IMaironI
      server error

      By IMaironI · Posted 8 hours ago

      2021-03-06-8.log
    • diesieben07
      server error

      By diesieben07 · Posted 8 hours ago

      Like I already said: The logs folder.
    • prototype204
      Attacking/Hitting issue

      By prototype204 · Posted 8 hours ago

      I am no longer able to attack animals or mobs in the game, however they are still able to attack me. I checked to verify that the mods I downloaded weren't the issue. I think they might be an error code in forge 1.16.5 however if anyone knows what I could do to fix this. P.S. I could still break bricks. 
  • Topics

    • LessyDoggy
      0
      Forge 1.12.2 Installing Bug

      By LessyDoggy
      Started 1 hour ago

    • Yourskillx2
      0
      !!Keeps crashing during launch!!

      By Yourskillx2
      Started 1 hour ago

    • IMaironI
      13
      server error

      By IMaironI
      Started 12 hours ago

    • prototype204
      0
      Attacking/Hitting issue

      By prototype204
      Started 8 hours ago

    • BeardlessBrady
      3
      [1.16.5] Adding arguments to DeferredRegister and RegistryObject

      By BeardlessBrady
      Started 12 hours ago

  • Who's Online (See full list)

    • Kreepydude
    • VecsonON
    • zlappedx3
    • DavidM
    • troublemaker_47
  • 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