Help with our first Mod - compile errors

Started by shaneprobinson on Thu, 09/17/2020 - 06:08

Topic category: Help with modding (Java Edition)

Last seen on 02:39, 21. Oct 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Help with our first Mod - compile errors
Thu, 09/17/2020 - 06:08

Hi team,

I have just started helping my 8 year old son with his first mod and both of us are new to it.  We are trying to make a chicken that lays a lot more eggs then a normal chicken.  Anyways we did a bunch of video tutorials and went through all the steps and ended up with the following compile errors.  Any help understanding this or pointing us in the right direction would be greatly appreciated.

Cheers, Shane and Zack.

 

Executing Gradle task: runClient
Build info: MCreator 2020.4.32115, forge-1.15.2, 64-bit, 16268 MB, Windows 10, JVM 1.8.0_252, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1
> Task :compileJava
C:\Users\Shaner\MCreatorWorkspaces\weirdochicken\src\main\java\net\mcreator\weirdochicken\entity\ChickenEntity.java:123: error: incompatible types: Class cannot be converted to Class? extends LivingEntity> this.goalSelector.addGoal(5, new LookAtGoal(this, ChickenEntity.class, (float) 6));
^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
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 18s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 374964 milliseconds

Last seen on 04:38, 20. Oct 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hmm, try not to extend the…
Thu, 09/17/2020 - 11:58

Hmm, try not to extend the chicken AI base as AI bases are known to have errors.