Building a fabric mod with a mob (nothing else) failed

Started by Cryptizism on

Topic category: Troubleshooting, bugs, and solutions

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Building a fabric mod with a mob (nothing else) failed

This is my first time making a fabric mod.
I used BlockBench to make the model and made sure it was for fabric and exported it properly as a java entity.

This is the error it spits out in entirety:
 

Executing Gradle task: build 
Build info: MCreator 2021.1.18117, fabric-1.16.5, 64-bit, 16319 MB, Windows 10, JVM 1.8.0_275, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk 
> Configure project : 
Fabric Loom: 0.7.33 
> Task :compileJava FAILED 
C:\Users\RedKa\MCreatorWorkspaces\lumberjack_boss\src\main\java\com\cryptizism\lumberjackboss\entity\LumberJackBossEntity.java:86: error: cannot find symbol 
   public void readCustomDataFromTag(CompoundTag tag) { 
                                     ^ 
  symbol:   class CompoundTag 
  location: class LumberJackBossEntity 
1 error 
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 955ms 
1 actionable task: 1 executed 
BUILD FAILED 
Task completed in 2 seconds