Topic category: Help with Minecraft modding (Java Edition)
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
Also my mod is not fully exporting and idk why, so if someone has a fix for that too I'll take it pls :,)
I would recommend reporting this to the plugin author
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. Contact plugin author for more info.
To change to Fabric, use workspace settings