I don't understand java and need help with those

Started by Splachi on

Topic category: Help with modding (Java Edition)

Last seen on 17:04, 18. Oct 2023
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't understand java and need help with those

Hello, I am having an issue ant there it is, if someone knows how to fix it, I'll be glad to know how (I am making a Fabric mod btw):

 

> Configure project :
Fabric Loom: 1.2.7
> Task :compileJava FAILED
C:\Users\splac\MCreatorWorkspaces\french_mod\src\main\java\net\mcreator\frenchmod\init\FrenchModModPotions.java:19: error: cannot find symbol WINE = Registry.register(BuiltInRegistries.POTION, new ResourceLocation(FrenchModMod.MODID, "wine"), new Potion(new MobEffectInstance(FrenchModModMobEffects.WINE_EFFECT.get(), 15, 1, true, true)));
^
symbol: method get()
location: variable WINE_EFFECT of type MobEffect
C:\Users\splac\MCreatorWorkspaces\french_mod\src\main\java\net\mcreator\frenchmod\item\FamasItem.java:48: error: cannot find symbol Level world = livingentity.level();
^
symbol: variable livingentity
location: class FamasItem
C:\Users\splac\MCreatorWorkspaces\french_mod\src\main\java\net\mcreator\frenchmod\network\FrenchModModVariables.java:100: error: cannot find symbol return serverLevelAcc.level().getServer().getLevel(Level.OVERWORLD).getDataStorage().computeIfAbsent(e -> MapVariables.load(e), MapVariables::new, DATA_NAME);
^
symbol: method level()
location: variable serverLevelAcc of type ServerLevelAccessor
3 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

Last seen on 17:04, 18. Oct 2023
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also my mod is not fully…
Fri, 10/13/2023 - 17:49

Also my mod is not fully exporting and idk why, so if someone has a fix for that too I'll take it pls :,)

Last seen on 17:04, 18. Oct 2023
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Klemen, are you sure that…
Fri, 10/13/2023 - 19:22

Klemen, are you sure that issue is plugin related?

If so, how do I port my work from Fabric to Forge.

Yes, it is plugin bug…
Sat, 10/14/2023 - 13:34

Yes, it is plugin bug. Contact plugin author for more info.

To change to Fabric, use workspace settings