Topic category: Help with Minecraft modding (Java Edition)
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;
^
2
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
1
actionable task: 1 executed
BUILD
FAILED
Task
completed in 8350 milliseconds
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.
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!
Oh lol i was using the wrong model.
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
Hello, I solved that problem! You need to save your model as MCP, not Mojomaps and it works!