Error: ";" exspected [SOLVED]

Started by benl4b on

Topic category: Help with MCreator software

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Error: ";" exspected [SOLVED]
Fri, 10/27/2023 - 13:02 (edited)

Hey! I don't know if this is a bug, but it doesn't happen normally:
I've added new .ogg sounds and keep getting the same error messages about the desktop not being compiled correctly. Since there was apparently an error in the code, I tried to fix it, but it doesn't save it and then shows the same thing over and over again:


> Configure project : 
Fabric Loom: 1.2.7 
> Task :compileJava FAILED 
C:\Users\benl4b\MCreatorWorkspaces\moco_chaosattack_mod\src\main\java\net\moco\chaosattack\init\MocoChaosattackModModSounds.java:13: error: ';' expected 
  public static SoundEvent NEUTRAL.ADVENTURER.AMBIENT=SoundEvent.createVariableRangeEvent(new ResourceLocation("moco_chaosattack_mod","neutral.adventurer.ambient")); 
                                  ^ 
C:\Users\benl4b\MCreatorWorkspaces\moco_chaosattack_mod\src\main\java\net\moco\chaosattack\init\MocoChaosattackModModSounds.java:13: error:   expected 
  public static SoundEvent NEUTRAL.ADVENTURER.AMBIENT=SoundEvent.createVariableRangeEvent(new ResourceLocation("moco_chaosattack_mod","neutral.adventurer.ambient")); 
                                                     ^ 
C:\Users\benl4b\MCreatorWorkspaces\moco_chaosattack_mod\src\main\java\net\moco\chaosattack\init\MocoChaosattackModModSounds.java:14: error: ';' expected 
  public static SoundEvent NEUTRAL.ADVENTURER.DEATH=SoundEvent.createVariableRangeEvent(new ResourceLocation("moco_chaosattack_mod","neutral.adventurer.death")); 
                                  ^ 
C:\Users\benl4b\MCreatorWorkspaces\moco_chaosattack_mod\src\main\java\net\moco\chaosattack\init\MocoChaosattackModModSounds.java:14: error:   expected 
  public static SoundEvent NEUTRAL.ADVENTURER.DEATH=SoundEvent.createVariableRangeEvent(new ResourceLocation("moco_chaosattack_mod","neutral.adventurer.death")); 
                                                   ^ 
4 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 1s 
1 actionable task: 1 executed 
BUILD FAILED 
Task completed in 1 minute and 20 seconds

Edited by benl4b on Fri, 10/27/2023 - 13:02
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've already tried that, but…
Sat, 08/12/2023 - 06:54

I've already tried that, but there isn't exactly a forum topic like this and unfortunately I can't comment on the plugin. I do not know why. That´s why i am asking here