Strange compilation error in immutable mod files

Started by IgorNk500 on

Topic category: Troubleshooting, bugs, and solutions

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Strange compilation error in immutable mod files

Hello! I came across this error when compiling my mod. Can anyone tell what this is?

 

> Task :compileJava 
C:\MCreatorWorkspaces\123\src\main\java\net\becomeflowey\network\BecomefloweyModVariables.java:27: error: package net.becomeflowey.network does not exist 
import net.becomeflowey.network.BecomefloweyModVariables; 
                               ^ 
C:\MCreatorWorkspaces\123\src\main\java\net\becomeflowey\network\BecomefloweyModVariables.java:33: error: cannot find symbol 
    public BecomefloweyModVariables(BecomefloweyModElements elements) { 
                                    ^ 
  symbol:   class BecomefloweyModElements 
  location: class net.becomeflowey.BecomefloweyModVariables 
C:\MCreatorWorkspaces\123\src\main\java\net\becomeflowey\procedures\FloweyDebugProcProcedure.java:7: error: package net.becomeflowey.network does not exist 
import net.becomeflowey.network.BecomefloweyModVariables; 
                               ^ 
C:\MCreatorWorkspaces\123\src\main\java\net\becomeflowey\procedures\FloweyDebugProcProcedure.java:26: error: cannot find symbol 
            }.getEntity()).getCapability(BecomefloweyModVariables.PLAYER_VARIABLES_CAPABILITY, null).ifPresent(capability -> { 
                                         ^ 
  symbol:   variable BecomefloweyModVariables 
  location: class net.becomeflowey.procedures.FloweyDebugProcProcedure 
4 errors
So this is 1.16.5 workspace?…
Tue, 01/28/2025 - 16:24

So this is 1.16.5 workspace?

In this case, best bet would be to get in touch with the author of the 1.16.5 plugin since MCreator generates code based on how this plugin instructs it

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I wrote to him and he…
Mon, 02/10/2025 - 13:09

I wrote to him and he answered me:

Kleiders Custom Renderer 7.4.0 It's the plugin that's giving you the error (I know because I saw the code of that plugin, it has not been updated to work properly with the new updates of this generator)

How can I change the KCR API source code so that it can work properly with the generator?

I can decompile the KCR mod and use its scripts along with the plugin scripts

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, if you can contact me on…
Mon, 02/10/2025 - 21:45

Hi, if you can contact me on discord sending me the workspace so I can try to help you solve the error, ds: _spectrall