Started by
Slush
on
Topic category: Help with Minecraft modding (Java Edition)
Hi there,
I want to be able to work with MCreator while also having custom coded features. When I try to add these features to the registry classes, when MCreator builds it just deletes the lines I added to the registry. Does anyone know a way to stop this from happening?
Thanks.
It sounds like you need to lock the code
just create your own registry
Which code do I lock though? I'm not sure how to lock the registry code, but even if I could I still want to be able to add stuff from MCreator, I just want it to not delete the lines I've added
@NerdyPuzzle, I just tried that, it just deletes the call to my registry from the main mod class
You can register your registry using annotations for events
Could you elaborate on that? I don't have a ton of experience in Java.
you can either lock base mod files and register your registry in the base mod class, or you can just subscribe to a mod setup event and register it there.
I wound up just checking 'lock base mod files' in workspace settings. thanks for the help!