Gradle Task build failed.

Started by TheOddMJ on

Topic category: Help with modding (Java Edition)

Last seen on 12:48, 15. Dec 2020
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Gradle Task build failed.

I made a custom entity. but i can't export it because it has problems.

console:

Executing 
    Gradle task: build

Build 
    info: MCreator 2020.4.32115, forge-1.15.2, 64-bit, 4000 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\user\Desktop\MCreatorWorkspaces\thecatacombs\src\main\java\net\mcreator\curse_of_overworld\entity\PollutionEntity.java:98: 
    error: incompatible types: CustomEntity cannot be converted to 
    CreatureEntity 
 
            this.goalSelector.addGoal(1, new MeleeAttackGoal(this, 1.2, 
    false));

 
                                                             ^

C:\Users\user\Desktop\MCreatorWorkspaces\thecatacombs\src\main\java\net\mcreator\curse_of_overworld\entity\PollutionEntity.java:99: 
    error: incompatible types: CustomEntity cannot be converted to 
    CreatureEntity 
 
            this.goalSelector.addGoal(2, new RandomWalkingGoal(this, 1));

 
                                                               ^

C:\Users\user\Desktop\MCreatorWorkspaces\thecatacombs\src\main\java\net\mcreator\curse_of_overworld\entity\PollutionEntity.java:100: 
    error: incompatible types: CustomEntity cannot be converted to 
    CreatureEntity 
 
            this.targetSelector.addGoal(3, new HurtByTargetGoal(this));

 
                                                                ^

Note: 
    Some messages have been simplified; recompile with -Xdiags:verbose to get 
    full output


    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 --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 15s


    actionable task: 1 executed

BUILD 
    FAILED

Task 
    completed in 23700 milliseconds

 

I can't find what is wrong :( please help!

(sorry for my bad English.)

Last seen on 12:48, 15. Dec 2020
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The problem is solved. But I…
Fri, 10/02/2020 - 10:02

The problem is solved. But I have another problem. How to make mob to leap around like a slime?