MCreator deleting custom items from registry classes

Started by Slush on

Topic category: Help with modding (Java Edition)

Last seen on 18:04, 27. Jul 2023
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
MCreator deleting custom items from registry classes

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.

Last seen on 01:01, 19. Apr 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It sounds like you need to…
Sat, 04/22/2023 - 16:18

It sounds like you need to lock the code

Last seen on 11:59, 19. Apr 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
just create your own registry
Sat, 04/22/2023 - 16:21

just create your own registry

Last seen on 18:04, 27. Jul 2023
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Which code do I lock though?…
Sat, 04/22/2023 - 16:22

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

 

Last seen on 18:04, 27. Jul 2023
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@NerdyPuzzle, I just tried…
Sat, 04/22/2023 - 16:27

@NerdyPuzzle, I just tried that, it just deletes the call to my registry from the main mod class

Last seen on 18:04, 27. Jul 2023
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you elaborate on that?…
Tue, 04/25/2023 - 23:51

Could you elaborate on that? I don't have a ton of experience in Java.

Last seen on 11:59, 19. Apr 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can either lock base mod…
Wed, 04/26/2023 - 00:49

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.

Last seen on 18:04, 27. Jul 2023
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I wound up just checking …
Wed, 04/26/2023 - 16:41

I wound up just checking 'lock base mod files' in workspace settings. thanks for the help!