Topic category: Help with MCreator software
Hello.
I am using MCreator 1.7.10 for 1.10.2. I'm currently trying to make a mob called a Mushroom Spriteling (a small red mushroom mob with two stubby legs.) I made the model, made the texture, exported it to java, and loaded the model and texture to MCreator. However, EVERY TIME I finish making the mob, I get a recompilation error. Here's the error. Please tell me what I'm doing wrong!
Executing gradle command: clean build
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Users\Nic\Desktop\MCreator170>cd forge
C:\Users\Nic\Desktop\MCreator170\forge>SET "JAVA_HOME=C:\Users\Nic\Desktop\MCreator170\jdk64\"
C:\Users\Nic\Desktop\MCreator170\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Users\Nic\Desktop\MCreator170\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Users\Nic\Desktop\MCreator170\forge>gradlew -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" clean build
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.7/userguide/gradle_daemon.html.
This mapping 'snapshot_20160518' was designed for MC 1.9.4! Use at your own peril.
#################################################
ForgeGradle 2.2-SNAPSHOT-c438b06
https://github.com/MinecraftForge/ForgeGradle
#################################################
Powered by MCP unknown
http://modcoderpack.com
by: Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
#################################################
:clean
:deobfCompileDummyTask
:deobfProvidedDummyTask
:sourceApiJava
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava
C:\Users\Nic\Desktop\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_mushroomSpriteling.java:61: error: '(' or '[' expected
RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_mushroomSpriteling.ModelMushroom Spriteling(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("MushroomSpriteling.png");}};
^
C:\Users\Nic\Desktop\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_mushroomSpriteling.java:61: error: ';' expected
RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_mushroomSpriteling.ModelMushroom Spriteling(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("MushroomSpriteling.png");}};
^
C:\Users\Nic\Desktop\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_mushroomSpriteling.java:61: error: illegal start of expression
RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_mushroomSpriteling.ModelMushroom Spriteling(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("MushroomSpriteling.png");}};
^
C:\Users\Nic\Desktop\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_mushroomSpriteling.java:61: error: ';' expected
RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_mushroomSpriteling.ModelMushroom Spriteling(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("MushroomSpriteling.png");}};
^
C:\Users\Nic\Desktop\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_mushroomSpriteling.java:61: error: not a statement
RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_mushroomSpriteling.ModelMushroom Spriteling(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("MushroomSpriteling.png");}};
^
C:\Users\Nic\Desktop\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_mushroomSpriteling.java:61: error: ';' expected
RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_mushroomSpriteling.ModelMushroom Spriteling(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("MushroomSpriteling.png");}};
^
C:\Users\Nic\Desktop\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_mushroomSpriteling.java:61: error: illegal start of expression
RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_mushroomSpriteling.ModelMushroom Spriteling(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("MushroomSpriteling.png");}};
^
C:\Users\Nic\Desktop\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_mushroomSpriteling.java:61: error: ';' expected
RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_mushroomSpriteling.ModelMushroom Spriteling(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("MushroomSpriteling.png");}};
^
C:\Users\Nic\Desktop\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_mushroomSpriteling.java:61: error: ';' expected
RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_mushroomSpriteling.ModelMushroom Spriteling(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("MushroomSpriteling.png");}};
^
C:\Users\Nic\Desktop\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_mushroomSpriteling.java:216: error: '{' expected
public static class ModelMushroom Spriteling extends ModelBase
^
10 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.
BUILD FAILED
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 17.879 secs
C:\Users\Nic\Desktop\MCreator170\forge>
Task completed with return code 0 in 18604 milliseconds
Can someone please help me!? I'm trying to make a huge mod with tons of mobs, bosses, dimensions, and other things, but the only thing that doesn't work are the mobs.
Nevermind, I fixed it! It was because my Techne model had a space bar in it! Nevermind.
Note to you for the future: don't duplicate names, either. It also give you an error.
@#2 I know that. I read the wiki page on how to import models into MCreator, it just didn't tell me not to put spaces in the names.
@Nicholas32704, I don't understand the "My techne model has a space bar on it", and, well, I have the same problem, tried editing the file and more, but, only putting the Java file, does not work.
@#3 He meant a space bar in the name , do you see "ModelMushroom Spriteling"?
@#3.1 I got it, but there's another problem. When I play around in my world, the mobs keep despawning, so I end up not having any custom mobs in my world.