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