Open valoeghese opened 4 years ago
The ModInitialiser approach could work, since running before registry shouldn't be a problem for fabric mods, since they use RegistryEntryAddedCallback
from fabric api to listen for subsequent registrations.
We can test it on my Irish Wolves mod when done, since it only has a single System.out.println on init and a single mixin to a method that gets a value.
hey, how i can patch a mod?
This project hasn't been worked on for years, sorry. You'll need to find another solution
What we need for the basic patcher
fabric.mod.json
into amods.toml
mixins.json
wherever forge does it (jar manifest,MixinConfigs
)ModInitialiser
into Registry Events and Common Setup. (the easier alternative, unlocking registries, is not recommended). This could be done by running all code in the mod constructor, and redirecting registry calls to a delayed system that waits for the event.