MCreator deleting custom items from registry classes

Started by Slush on

Topic category: Help with Minecraft modding (Java Edition)

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.

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

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

 

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

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.

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.

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!