Can't lock ModBlocks.java file in 1.17 snapshot

Started by Kuraion on

Topic category: Help with modding (Java Edition)

Last seen on 11:46, 11. Dec 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can't lock ModBlocks.java file in 1.17 snapshot

So the 1.17 snapshot uses init java files, one of which is the ModBlocks.java
This is also the file that includes this event to register render layers:

public static void clientSetup(FMLClientSetupEvent event) {
			WhateverBlock.registerRenderLayer();
		}

But for some reason, you can't lock this file, even if you lock the base mod files, so now I am failing at adding a block to this event which I'd need to have the texture be multilayered
Any help?

You can not lock these files…
Fri, 11/05/2021 - 18:13

You can not lock these files as they need to be regenerated. You can always add a custom code element or new java file and register to clientSetup event there for custom registraions

Last seen on 11:46, 11. Dec 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you for the answer,…
Fri, 11/05/2021 - 18:36

Thank you for the answer, now I've figured out what to do!

Last seen on 06:02, 14. Apr 2024
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can always add a custom…
Tue, 01/25/2022 - 04:11

You can always add a custom code element or new java file and register to clientSetup event there for custom registraions

Would you mind explaining how to do this? I keep getting errors about missing stuff.