some mod elements cause compilation errors

Started by narmundo on Mon, 04/05/2021 - 14:46

Topic category: Troubleshooting, bugs, and solutions

Last seen on 21:14, 17. Apr 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
some mod elements cause compilation errors
Mon, 04/05/2021 - 14:46

hi, i'm trying to create a living entity, but her procedure has a red block in the icon, and keeps saying that some elements of the mod cause compilation errors. Can someone help me? I've tried all the methods on the help page and the others I found on the internet and none of them worked.

my console output:

 

Executing Gradle task: runClient
Build info: MCreator 2020.5.47520, forge-1.15.2, 64-bit, 10116 MB, Windows 10, JVM 1.8.0_265, JAVA_HOME: C:\Users\rafae\Downloads\MCreator 2020.5 Windows 64bit\MCreator20205\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1
> Task :compileJava
C:\Users\rafae\MCreatorWorkspaces\crazycraft\src\main\java\net\mcreator\crazycraft\procedures\UfoOnEntityTickUpdateProcedure.java:79: error: AgeableEntity is abstract; cannot be instantiated Entity entityToSpawn = new AgeableEntity(EntityType.ZOMBIE, world.getWorld());
^
1 error
> 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 --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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#se…
BUILD FAILED in 32s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 366939 milliseconds

Executing Gradle task: runClient
Build info: MCreator 2020.5.47520, forge-1.15.2, 64-bit, 10116 MB, Windows 10, JVM 1.8.0_265, JAVA_HOME: C:\Users\rafae\Downloads\MCreator 2020.5 Windows 64bit\MCreator20205\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1
> Task :compileJava
C:\Users\rafae\MCreatorWorkspaces\crazycraft\src\main\java\net\mcreator\crazycraft\procedures\UfoOnEntityTickUpdateProcedure.java:79: error: AgeableEntity is abstract; cannot be instantiated Entity entityToSpawn = new AgeableEntity(EntityType.ZOMBIE, world.getWorld());
^
1 error
> 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 --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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#se…
BUILD FAILED in 32s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 366939 milliseconds
 

You are trying to spawn…
Tue, 04/06/2021 - 08:49

You are trying to spawn AgeableEntity which is not possible, AgeableEntity is entity type group, not specific entity to spawn