Custom Model not compiling

Started by dadogplayz7 on

Topic category: Help with modding (Java Edition)

Last seen on 18:58, 28. Oct 2021
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Model not compiling

Hello! so i noticed that creator does not have a horse model so i took it form mine crafts files and exported it with block bench but when i try to save it it says mod cannot compile and in the console tab it says:

Executing 
    Gradle task: build

Build 
    info: MCreator 2020.4.32115, forge-1.15.2, 64-bit, 4096 MB, Mac OS X, JVM 
    1.8.0_252, JAVA_HOME: 
    /Applications/MCreator.app/Contents/MacOS/jdk/Contents/Home/jre


    Configure project :

New 
    Dep: net.minecraftforge:forge:1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1


    Task :compileJava

/Users/home/MCreatorWorkspaces/sishorsepack/src/main/java/net/mcreator/sishorsepack/entity/FlyingHorseEntity.java:286: 
    error: variable modelrenderer is already defined in class ModelHorseModel 
 
         private final ModelRenderer modelrenderer;

 
                                     ^

/Users/home/MCreatorWorkspaces/sishorsepack/src/main/java/net/mcreator/sishorsepack/entity/FlyingHorseEntity.java:287: 
    error: variable modelrenderer1 is already defined in class ModelHorseModel 
 
         private final ModelRenderer modelrenderer1;

 
                                     ^


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


    actionable task: 1 executed

BUILD 
    FAILED

Task 
    completed in 8350 milliseconds

Last seen on 22:49, 17. Mar 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm gonna guess you exported…
Sun, 09/13/2020 - 21:17

I'm gonna guess you exported the wrong version. I once spent almost an entire hour trying to figure out what the heck was wrong with my creature (custom coded, so there were a lot of possibilities), only to find that I had exported the model (in Blockbench) as a 1.14 model when I was modding in 1.15.

Last seen on 14:26, 11. Oct 2020
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try to use the "Regenerate…
Sat, 10/10/2020 - 17:17

Try to use the "Regenerate code and build" button, it is at the top right, and between the blue folder and the hammer. Let me know later if work.

Regards!

Last seen on 18:58, 28. Oct 2021
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh lol i was using the wrong…
Mon, 12/21/2020 - 00:02

Oh lol i was using the wrong model.

Last seen on 18:58, 28. Oct 2021
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have another problem I…
Sun, 01/03/2021 - 19:39

I have another problem I made a blockbench model for a 1 arm zombie but when I set it as my entity model it says:

Executing Gradle task: build

Build info: MCreator 2020.2.14217, 1.12.2, 64-bit, 4096 MB, Mac OS X, JVM 1.8.0_232, JAVA_HOME: /Users/abbifrisbie/Desktop/MCreator.app/Contents/MacOS/jdk/Contents/Home/jre

This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.

:deobfCompileDummyTask

:deobfProvidedDummyTask

:sourceApiJava UP-TO-DATE

:compileApiJava NO-SOURCE

:processApiResources NO-SOURCE

:apiClasses UP-TO-DATE

:sourceMainJava UP-TO-DATE

/Users/abbifrisbie/MCreatorWorkspaces/zombieapocolypse/build/sources/main/java/net/mcreator/zombieapocolypse/entity/EntityOnearmzombie.java:141: error: cannot find symbol 
    
   public static class Modelsteve extends EntityModel<Entity> {

                                          ^

  symbol:   class EntityModel

  location: class EntityOnearmzombie

/Users/abbifrisbie/MCreatorWorkspaces/zombieapocolypse/build/sources/main/java/net/mcreator/zombieapocolypse/entity/EntityOnearmzombie.java:181: error: cannot find symbol 
    
      public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue,

                         ^

  symbol:   class MatrixStack

  location: class Modelsteve

/Users/abbifrisbie/MCreatorWorkspaces/zombieapocolypse/build/sources/main/java/net/mcreator/zombieapocolypse/entity/EntityOnearmzombie.java:181: error: cannot find symbol 
    
      public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue,

                                                  ^

  symbol:   class IVertexBuilder

  location: class Modelsteve

3 errors

: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

BUILD FAILED in 1s

5 actionable tasks: 3 executed, 2 up-to-date

BUILD FAILED

Task completed in 3275 milliseconds

 

Last seen on 08:10, 20. May 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello, I solved that problem…
Thu, 03/10/2022 - 05:23

Hello, I solved that problem! You need to save your model as MCP, not Mojomaps and it works!