fabric-loader
fabric-loader copied to clipboard
[Question] How can I specify mods loading order
For example, my mod, A, depends on another mod, B. I want A's ModInitializer be called after B`s, and A's datapack and resourcepack override B's. How can I do this?
If your mod A depends on mod B explicitly, B will be loaded first anyway so that A can be loaded.
Wrong. Load order is not set by dependencies.
Not technically, no. However, if mod A loads first, it should load B as
one of the first things it does, then carry out loading A.
It wont initialize an instance of Mod B's mod initializer (nor should it). it may class load it, but. some mods are designed instanced not static.
That's wild.
@Phoupraw, why do you specifically need B to load its initialiser first? It seems like (at least in this case) it would be better if the mods were simply bundled.
Are you the one coding the mod, or is it one made by someone else?
That's wild.
@Phoupraw, why do you specifically need
Bto load its initialiser first? It seems like (at least in this case) it would be better if the mods were simply bundled.Are you the one coding the mod, or is it one made by someone else?
I am making an addon for Create mod. Create is lazy initalized (by a lib, Registrate). Its registries (items, blocks, and so on) don't be initialized if you just load its classes. Only after its initialiser is invoked, its registries are completed.
I am making an addon for Create mod. Create is lazy initalized (by a lib, Registrate). Its registries (items, blocks, and so on) don't be initialized if you just load its classes. Only after its initialiser is invoked, its registries are completed.
use mixin :p