Problems with editing the core .java file.. [FIXED] [not really it will be implemented soon hopefully]

Started by JumpWatch on Thu, 06/27/2019 - 18:24

Topic category: Advanced modding

Last seen on 14:20, 6. Aug 2019
Joined Mar 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Problems with editing the core .java file.. [FIXED] [not really it will be implemented soon hopefully]
Sat, 07/27/2019 - 22:35 (edited)

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
Last seen on 10:28, 19. Aug 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
I suggest you to make a new…
Fri, 06/28/2019 - 07:49

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.

Last seen on 14:20, 6. Aug 2019
Joined Mar 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
the problem is that the…
Fri, 06/28/2019 - 12:18

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..

Last seen on 10:28, 19. Aug 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
preinit is hooked into each…
Fri, 06/28/2019 - 12:22

preinit is hooked into each modelement. Check ModElement class in the main java file to see what methods are hooked.

Last seen on 10:28, 19. Aug 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
We will improve this in 1.9…
Sun, 07/28/2019 - 08:36

We will improve this in 1.9.1. From changelog:

  • Added workspace setting to lock mod base files from being regenerated