Possible to override mods?

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Pawz

New Member
Jul 29, 2019
11
0
0
Hi there,

I'm totally new to the modding scene, somewhat new to Java (.net is my preference) but I was wondering if it's possible to create mods that override other mods to add minor tweaks. Stuff like making Fir saplings work in the Forestry fermenter, or to override all the different types of silver into one.

Is this even possible?
 

ScottWears

New Member
Jul 29, 2019
233
0
0
Take gregtech as an example this mod edits crafting recipes of ic2 and Add's build craft logic gates to the ore dictionary so yeah I guess it is possible (could be wrong though).

the only think I will say is Don't do it with closed source mods like red power since it might involve de-compiling code, always check the license be for you change anything.
 

Pawz

New Member
Jul 29, 2019
11
0
0
Well I'll definitely keep licensing things in mind, although it's more in the line of 'fixing' things on my server rather than publishing a mod for public use :)
 

Omicron

New Member
Jul 29, 2019
2,974
0
0
Just be careful that you don't end up in a situation where a future update will break your world. For example, anytime you carelessly play with item and block IDs, this is almost guaranteed to happen.

Many of the things you mention can be achieved with less effort and danger by just asking the right questions in the right places (SirSengir is usually more than willing to consider player suggestions unless he considers them unbalancing), or editing the config files (just disable all silver worldgen except for one), or looking around if similar tweaks already exist (this addon allows you to convert different silver ingot types back and forth at will).
 

TheSandwichMakr

New Member
Jul 29, 2019
582
0
0
I'm very new to java also but I think you would do something like
class className extends modToOverrideClassName {
@Override
methodNameInModToOverrideClass {
code to run in modToOverrideClass when this method is called instead
}
}

EDIT: If you wanted to add a carpenter recipe theres probably a method you would call to add a recipe for it, look through the forestry code or another mod that adds carpenter recipes or there may be some sort of documentation somewhere
 

Pawz

New Member
Jul 29, 2019
11
0
0
Thanks for the answers - I'm just starting out into the modding world, so I wanted to know if it's possible. Now I have to go make my first block... :)