Started by
JumpWatch
on
Topic category: Advanced modding
Let me get straight into it..
Me and my friend are in the making of a big mod but after we are using libs and apis we need to add stuff to the CORE java file In my workbench its called the_unknown.java
but every time i save the file and build it MCreator automaticly sets it back to before the edit. Idk what i should do. I should have pressed so it can't override the file but it still does it...
Edited by JumpWatch on Sat, 07/27/2019 - 22:35
I suggest you to make a new mod element - any type you want and lock its code and do things here. You have hooks to all methods from the main mod file in all mod element files.
We will improve this to make editing of the main java file possible in the future updates too.
the problem is that the thing that im typing in the main java file are in preinit and so one... So if this isn't possible yet then i have to wait to it is..
preinit is hooked into each modelement. Check ModElement class in the main java file to see what methods are hooked.
We will improve this in 1.9.1. From changelog: