Goldorion / Fabric-Generator-MCreator

A Fabric Generator plugin for MCreator
Other
112 stars 42 forks source link

Mob effects and potions not working. #537

Open Realbizzy opened 6 months ago

Realbizzy commented 6 months ago

Issue tracker rule checks (please read carefully)

Issue description

So for some reason the gradle says that it cant convert stuff to what they are? (Like potion to potion?) I'm not sure just look below. Screenshot 2024-05-11 112312

How to reproduce this issue?

Step 1. Update to 1.9.12 Step 2. Update to 1.9.13 Step 3. Update to 1.9.14 Step 4. Update to 1.10

Operating system

Windows

Details

MCreator 2023.4 Fabric Generator version: 1.10

Example workspace

No response

Logs

Executing Gradle task: build Build info: MCreator 2023.4.52316, fabric-1.20.1, 64-bit, 16088 MB, Windows 11, JVM 17.0.9, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2024-05-11-11:19:05

BUILD FAILED Task completed in 22 seconds

Configure project : Fabric Loom: 1.4.6 Task :compileJava C:\Users\mhdta\MCreatorWorkspaces\bizzys_tooltopia\src\main\java\net\mcreator\bizzystooltopia\init\BizzysTooltopiaModMobEffects.java:20: error: incompatible types: Item cannot be converted to MobEffect SUPERSPEED = register("superspeed", new SuperspeedMobEffect()); ^ C:\Users\mhdta\MCreatorWorkspaces\bizzys_tooltopia\src\main\java\net\mcreator\bizzystooltopia\init\BizzysTooltopiaModMobEffects.java:24: error: incompatible types: inference variable T has incompatible bounds return Registry.register(BuiltInRegistries.MOB_EFFECT, new ResourceLocation(BizzysTooltopiaMod.MODID, registryName), element); ^ lower bounds: Item,MobEffect,Object,V lower bounds: MobEffect where T,V are type-variables: T extends V declared in method <V,T>register(Registry,ResourceLocation,T) V extends Object declared in method <V,T>register(Registry,ResourceLocation,T) C:\Users\mhdta\MCreatorWorkspaces\bizzys_tooltopia\src\main\java\net\mcreator\bizzystooltopia\init\BizzysTooltopiaModPotions.java:23: error: incompatible types: Item cannot be converted to Potion ESCAPE = register("escape", new Potion(new MobEffectInstance(MobEffects.MOVEMENT_SPEED, 3587, 2, false, true), new MobEffectInstance(MobEffects.DIG_SPEED, 1200, 2, false, true), new MobEffectInstance(MobEffects.JUMP, 2400, 2, false, true), ^ C:\Users\mhdta\MCreatorWorkspaces\bizzys_tooltopia\src\main\java\net\mcreator\bizzystooltopia\init\BizzysTooltopiaModPotions.java:25: error: incompatible types: Item cannot be converted to Potion LIGHTSPEED = register("lightspeed", new Potion(new MobEffectInstance(BizzysTooltopiaModMobEffects.SUPERSPEED, 1200, 0, false, true))); ^ C:\Users\mhdta\MCreatorWorkspaces\bizzys_tooltopia\src\main\java\net\mcreator\bizzystooltopia\init\BizzysTooltopiaModPotions.java:26: error: incompatible types: Item cannot be converted to Potion DEATH = register("death", new Potion(new MobEffectInstance(MobEffects.MOVEMENT_SLOWDOWN, 3600, 1, false, true), new MobEffectInstance(MobEffects.DIG_SLOWDOWN, 3600, 1, false, true), new MobEffectInstance(MobEffects.HARM, 20, 1, false, true), ^ C:\Users\mhdta\MCreatorWorkspaces\bizzys_tooltopia\src\main\java\net\mcreator\bizzystooltopia\init\BizzysTooltopiaModPotions.java:31: error: incompatible types: inference variable T has incompatible bounds return Registry.register(BuiltInRegistries.POTION, new ResourceLocation(BizzysTooltopiaMod.MODID, registryName), element); ^ lower bounds: Item,Potion,Object,V lower bounds: Potion where T,V are type-variables: T extends V declared in method <V,T>register(Registry,ResourceLocation,T) V extends Object declared in method <V,T>register(Registry,ResourceLocation,T) 6 errors Task :compileJava FAILED 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 --info option to get more log output. Run with --scan to get full insights. BUILD FAILED in 5s 1 actionable task: 1 executed

BUILD FAILED Task completed in 9 seconds

Dkseibert commented 6 months ago

I am also having this issue.

Realbizzy commented 6 months ago

yuh im just stuck using an older version

Realbizzy commented 5 months ago

the first version that supports 2023.4