Error with the Curios API

Started by PeachyBeauty on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Error with the Curios API

Hello, Im getting this error in the console when saving any object.

Would be nice if someone knew how to fix it. 

Thanks :)

  
> Task :mcreatorLink UP-TO-DATE 
> Task :compileJava FAILED 
C:\Users\\Desktop\Mobile Beacon\Workspace\src\main\java\de\peachybeauty\portablebeacons\item\PortableBeaconItem.java:32: error: cannot find symbol 
public class PortableBeaconItem extends Item implements ICurioItem { 
                                                        ^ 
  symbol: class ICurioItem 
C:\Users\\Desktop\Mobile Beacon\Workspace\src\main\java\de\peachybeauty\portablebeacons\procedures\KeepeffectProcedure.java:34: error: cannot find symbol 
      if (entity instanceof LivingEntity lv ? CuriosApi.getCuriosHelper().findEquippedCurio(PortableBeaconsModItems.PORTABLE_BEACON.get(), lv).isPresent() : false) { 
                                              ^ 
  symbol:   variable CuriosApi 
  location: class KeepeffectProcedure 
2 errors 
FAILURE: Build failed with an exception. 
* What went wrong: 
Execution failed for task ':compileJava'. 
> Compilation failed; see the compiler error output for details. 
* Try: 
> Run with --stacktrace option to get the stack trace. 
> Run with --info or --debug option to get more log output. 
> Run with --scan to get full insights. 
* Get more help at https://help.gradle.org 
BUILD FAILED in 2s 
1 actionable task: 1 executed 
 
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind, forgot to add the…
Wed, 03/22/2023 - 16:12

Nevermind, forgot to add the Checkmark in the Workspace Settings, my bad.