Mob not working

Started by alexschopbarteld on Wed, 03/22/2017 - 21:15

Topic category: Help with MCreator modding

Last seen on 11:44, 14. Aug 2017
Joined Mar 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Mob not working
Thu, 03/23/2017 - 18:53 (edited)

I made a total of 3 mobs, 2 worked and 1 doesnt...

 

i made the model in techne. the names are just 1,2,3 becouse someone told me there couldnt be any whitespaces and i changed the name to 1 2 and 3 just to make sure it wasnt that problem, it didnt fix it...

tried to fix the code manually but that didnt work out to good either.

 

xecuting gradle command: clean build
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. Alle rechten voorbehouden.
C:\Pylo\MCreator175>cd forge
C:\Pylo\MCreator175\forge>SET "JAVA_HOME=C:\Pylo\MCreator175\jdk64\"
C:\Pylo\MCreator175\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator175\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator175\forge>gradlew -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" clean build 
This mapping 'snapshot_20161220' was designed for MC 1.11! Use at your own peril.
#################################################
         ForgeGradle 2.2-SNAPSHOT-2112b0a        
  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:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:54: error: '(' or '[' expected
      RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_anatomy.ModelAnatomy class(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("anatomyclass2.png");}};
                                                                                                                                  ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:54: error: ';' expected
      RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_anatomy.ModelAnatomy class(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("anatomyclass2.png");}};
                                                                                                                                       ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:54: error: illegal start of expression
      RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_anatomy.ModelAnatomy class(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("anatomyclass2.png");}};
                                                                                                                                        ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:54: error: ';' expected
      RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_anatomy.ModelAnatomy class(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("anatomyclass2.png");}};
                                                                                                                                         ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:54: error: not a statement
      RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_anatomy.ModelAnatomy class(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("anatomyclass2.png");}};
                                                                                                                                           ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:54: error: ';' expected
      RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_anatomy.ModelAnatomy class(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("anatomyclass2.png");}};
                                                                                                                                            ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:54: error: illegal start of expression
      RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_anatomy.ModelAnatomy class(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("anatomyclass2.png");}};
                                                                                                                                              ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:54: error: ';' expected
      RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_anatomy.ModelAnatomy class(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("anatomyclass2.png");}};
                                                                                                                                                                                         ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:54: error: ';' expected
      RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_anatomy.ModelAnatomy class(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("anatomyclass2.png");}};
                                                                                                                                                                                                           ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:192: error: '{' expected
public static class ModelAnatomy class extends ModelBase
                                ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:192: error:  expected
public static class ModelAnatomy class extends ModelBase
                                      ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:195: error:  expected
ModelRenderer 1;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:196: error:  expected
ModelRenderer 2;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:197: error:  expected
ModelRenderer 3;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:198: error:  expected
ModelRenderer 4;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:199: error:  expected
ModelRenderer 5;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:200: error:  expected
ModelRenderer 6;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:201: error:  expected
ModelRenderer 7;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:202: error:  expected
ModelRenderer 8;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:203: error:  expected
ModelRenderer 9;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:205: error:  expected
ModelRenderer 10;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:207: error:  expected
ModelRenderer 11;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:209: error:  expected
ModelRenderer 12;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:211: error:  expected
ModelRenderer 13;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:212: error:  expected
ModelRenderer 14;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:213: error:  expected
ModelRenderer 15;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:214: error:  expected
ModelRenderer 16;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:215: error:  expected
ModelRenderer 17;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:216: error:  expected
ModelRenderer 18;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:217: error:  expected
ModelRenderer 19;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:218: error:  expected
ModelRenderer 20;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:219: error:  expected
ModelRenderer 21;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:220: error:  expected
ModelRenderer 22;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:221: error:  expected
ModelRenderer 23;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:222: error:  expected
ModelRenderer 24;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:223: error:  expected
ModelRenderer 25;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:224: error:  expected
ModelRenderer 26;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:225: error:  expected
ModelRenderer 27;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:226: error:  expected
ModelRenderer 28;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:227: error:  expected
ModelRenderer 29;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:229: error:  expected
public ModelAnatomy class()
                   ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:229: error: illegal start of type
public ModelAnatomy class()
                         ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:229: error:  expected
public ModelAnatomy class()
                          ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:229: error: ';' expected
public ModelAnatomy class()
                           ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:231: error:  expected
textureWidth = 64;
            ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:232: error:  expected
textureHeight = 32;
             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:234: error: illegal start of type
1 = new ModelRenderer(this, 0, 12);
^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:235: error: illegal start of type
1.addBox(0F, 0F, 0F, 8, 2, 4);
^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:235: error: ';' expected
1.addBox(0F, 0F, 0F, 8, 2, 4);
  ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:235: error: illegal start of type
1.addBox(0F, 0F, 0F, 8, 2, 4);
        ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:235: error:  expected
1.addBox(0F, 0F, 0F, 8, 2, 4);
         ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:235: error:  expected
1.addBox(0F, 0F, 0F, 8, 2, 4);
            ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:235: error: illegal start of type
1.addBox(0F, 0F, 0F, 8, 2, 4);
               ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:235: error:  expected
1.addBox(0F, 0F, 0F, 8, 2, 4);
                ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:235: error:  expected
1.addBox(0F, 0F, 0F, 8, 2, 4);
                    ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:235: error: illegal start of type
1.addBox(0F, 0F, 0F, 8, 2, 4);
                      ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:235: error:  expected
1.addBox(0F, 0F, 0F, 8, 2, 4);
                       ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:235: error:  expected
1.addBox(0F, 0F, 0F, 8, 2, 4);
                          ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:235: error: illegal start of type
:compileJava FAILED
1.addBox(0F, 0F, 0F, 8, 2, 4);
                            ^
C:\Pylo\MCreaTotal time: 10.053 secs
tor175\forge\build\sources\main\java\mod\mcreator\mcreator_anato: error:  expected
my.java:235BUILD FAILED
1.addBox(0F, 0F, 0F, 8, 2, 4);
                             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:235C:\Pylo\MCreator175\forge>
: error: ';' expected
Task completed with return code                              ^
 0 in 11990 milliseconds
1.addBox(0F, 0F, 0F, 8, 2, 4);
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:236: error: invalid method declaration; return type required
1.setRotationPoint(-4F, 11F, -2F);
  ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:236: error: illegal start of type
1.setRotationPoint(-4F, 11F, -2F);
                   ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:236: error: ')' expected
1.setRotationPoint(-4F, 11F, -2F);
                    ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:236: error: ';' expected
1.setRotationPoint(-4F, 11F, -2F);
                      ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:236: error: illegal start of type
1.setRotationPoint(-4F, 11F, -2F);
                        ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:236: error:  expected
1.setRotationPoint(-4F, 11F, -2F);
                           ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:236: error: ';' expected
1.setRotationPoint(-4F, 11F, -2F);
                            ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:236: error: illegal start of type
1.setRotationPoint(-4F, 11F, -2F);
                              ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:236: error:  expected
1.setRotationPoint(-4F, 11F, -2F);
                                ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:237: error: illegal start of type
1.setTextureSize(64, 32);
^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:237: error: ';' expected
1.setTextureSize(64, 32);
  ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:237: error: illegal start of type
1.setTextureSize(64, 32);
                ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:237: error:  expected
1.setTextureSize(64, 32);
                 ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:237: error:  expected
1.setTextureSize(64, 32);
                    ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:237: error: illegal start of type
1.setTextureSize(64, 32);
                       ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:237: error:  expected
1.setTextureSize(64, 32);
                        ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:237: error: ';' expected
1.setTextureSize(64, 32);
                         ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:238: error:  expected
1.mirror = true;
        ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:239: error: invalid method declaration; return type required
setRotation(1, 0F, 0F, 0F);
^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:239: error: illegal start of type
setRotation(1, 0F, 0F, 0F);
            ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:239: error: illegal start of type
setRotation(1, 0F, 0F, 0F);
               ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:239: error: illegal start of type
setRotation(1, 0F, 0F, 0F);
                   ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:239: error: illegal start of type
setRotation(1, 0F, 0F, 0F);
                       ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:240: error: illegal start of type
2 = new ModelRenderer(this, 42, 22);
^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:241: error: illegal start of type
2.addBox(0F, 0F, 0F, 2, 1, 1);
^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:241: error: ';' expected
2.addBox(0F, 0F, 0F, 2, 1, 1);
  ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:241: error: illegal start of type
2.addBox(0F, 0F, 0F, 2, 1, 1);
        ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:241: error:  expected
2.addBox(0F, 0F, 0F, 2, 1, 1);
         ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:241: error:  expected
2.addBox(0F, 0F, 0F, 2, 1, 1);
            ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:241: error: illegal start of type
2.addBox(0F, 0F, 0F, 2, 1, 1);
               ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:241: error:  expected
2.addBox(0F, 0F, 0F, 2, 1, 1);
                ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:241: error:  expected
2.addBox(0F, 0F, 0F, 2, 1, 1);
                    ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:241: error: illegal start of type
2.addBox(0F, 0F, 0F, 2, 1, 1);
                      ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:241: error:  expected
2.addBox(0F, 0F, 0F, 2, 1, 1);
                       ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:241: error:  expected
2.addBox(0F, 0F, 0F, 2, 1, 1);
                          ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:241: error: illegal start of type
2.addBox(0F, 0F, 0F, 2, 1, 1);
                            ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:241: error:  expected
2.addBox(0F, 0F, 0F, 2, 1, 1);
                             ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:241: error: ';' expected
2.addBox(0F, 0F, 0F, 2, 1, 1);
                              ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_anatomy.java:242: error: invalid method declaration; return type required
2.setRotationPoint(-1F, 8F, -0.5F);
  ^
100 errors
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.

code:

 

 

import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.common.registry.EntityRegistry;
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.client.registry.RenderingRegistry;

import net.minecraft.world.biome.Biome;
import net.minecraft.world.World;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.EnumHand;
import net.minecraft.util.DamageSource;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Item;
import net.minecraft.init.Items;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.monster.EntityZombie;
import net.minecraft.entity.effect.EntityLightningBolt;
import net.minecraft.entity.ai.EntityAIWander;
import net.minecraft.entity.ai.EntityAISwimming;
import net.minecraft.entity.ai.EntityAILookIdle;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.entity.Entity;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.Minecraft;

import java.util.Random;
import java.util.Iterator;
import java.util.ArrayList;

@SuppressWarnings("unchecked")
public class mcreator_anatomy {

    public int mobid = 0;
    public static Object instance;

    public void load(FMLInitializationEvent event){
    }

    public void generateNether(World world, Random random, int chunkX, int chunkZ){}
    public void generateSurface(World world, Random random, int chunkX, int chunkZ){}
    public int addFuel(ItemStack fuel){
        return 0;
    }
    
    @SideOnly(Side.CLIENT)
    public void registerRenderers(){
        RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_anatomy.ModelAnatomy class(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("anatomyclass2.png");}};
        RenderingRegistry.registerEntityRenderingHandler(mcreator_anatomy.Entityanatomy.class, customRender);
        
    }
    
    public void serverLoad(FMLServerStartingEvent event){}
    public void preInit(FMLPreInitializationEvent event){
        int entityID = MathHelper.getRandomUUID().hashCode();
        mobid = entityID;
        EntityRegistry.registerModEntity(new ResourceLocation("testenvironmentmod:anatomy"), mcreator_anatomy.Entityanatomy.class, "anatomy", entityID, instance, 64, 1, true, (255 << 16) + (255 << 8) + 255, (255 << 16) + (255 << 8) + 255);
        EntityRegistry.addSpawn(mcreator_anatomy.Entityanatomy.class, 20, 3, 30, EnumCreatureType.MONSTER , clean(Biome.REGISTRY));

        
        
        
    }
    
    public static Biome[] clean(net.minecraft.util.registry.RegistryNamespaced<ResourceLocation, Biome> in) {
        Iterator<Biome> itr = in.iterator();
        ArrayList<Biome> ls = new ArrayList<Biome>();
        while(itr.hasNext()){
            ls.add(itr.next());
        }
        return ls.toArray(new Biome[ls.size()]);
    }

    

   public static class Entityanatomy extends EntityZombie 
    {
        World world = null;
        public Entityanatomy(World var1)
        {
            super(var1);
            world = var1;
            experienceValue = 5;
            this.isImmuneToFire = false;
            addRandomArmor();
            setNoAI(!true);
            this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
this.tasks.addTask(8, new EntityAILookIdle(this));

            
        }

        

        
protected void addRandomArmor(){

}

        
        
        
        @Override
        protected Item getDropItem()
        {
            return new ItemStack(Items.ROTTEN_FLESH).getItem();
        }

        @Override
        protected net.minecraft.util.SoundEvent getAmbientSound()
        {
            return (net.minecraft.util.SoundEvent)net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("entity.zombie.ambient"));
        }

        @Override
        protected net.minecraft.util.SoundEvent getHurtSound()
        {
            return (net.minecraft.util.SoundEvent)net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("entity.zombie.hurt"));
        }
        
        @Override
        protected net.minecraft.util.SoundEvent getDeathSound()
        {
            return (net.minecraft.util.SoundEvent)net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("entity.zombie.death"));
        }

        @Override
        public void onStruckByLightning(EntityLightningBolt entityLightningBolt){
            super.onStruckByLightning(entityLightningBolt);
            int i = (int)this.posX;
            int j = (int)this.posY;
            int k = (int)this.posZ;
            Entity entity = this;
            
        }

        @Override
        public void fall(float l, float d){
            super.fall(l,d);
            int i = (int)this.posX;
            int j = (int)this.posY;
            int k = (int)this.posZ;
            super.fall(l,d);
            Entity entity = this;
            
        }

        @Override
        public void onDeath(DamageSource source){
            super.onDeath(source);
            int i = (int)this.posX;
            int j = (int)this.posY;
            int k = (int)this.posZ;
            Entity entity = this;
            
            
        }

        @Override
        public boolean processInteract(EntityPlayer entity, EnumHand hand){
            super.processInteract(entity,hand);
            int i = (int)this.posX;
            int j = (int)this.posY;
            int k = (int)this.posZ;
            

            return true;
        }
        
        @Override
        protected float getSoundVolume()
        {
        return 1.0F;
        }
        
    }

    
// Date: 22-3-2017 22:08:52
// Template version 1.1
// Java generated by Techne
// Keep in mind that you still need to fill in some blanks
// - ZeuX

public static class ModelAnatomy class extends ModelBase
{
//fields
ModelRenderer 1;
ModelRenderer 2;
ModelRenderer 3;
ModelRenderer 4;
ModelRenderer 5;
ModelRenderer 6;
ModelRenderer 7;
ModelRenderer 8;
ModelRenderer 9;
ModelRenderer ra;
ModelRenderer 10;
ModelRenderer la;
ModelRenderer 11;
ModelRenderer rl;
ModelRenderer 12;
ModelRenderer ll;
ModelRenderer 13;
ModelRenderer 14;
ModelRenderer 15;
ModelRenderer 16;
ModelRenderer 17;
ModelRenderer 18;
ModelRenderer 19;
ModelRenderer 20;
ModelRenderer 21;
ModelRenderer 22;
ModelRenderer 23;
ModelRenderer 24;
ModelRenderer 25;
ModelRenderer 26;
ModelRenderer 27;
ModelRenderer 28;
ModelRenderer 29;

public ModelAnatomy class()
{
textureWidth = 64;
textureHeight = 32;

1 = new ModelRenderer(this, 0, 12);
1.addBox(0F, 0F, 0F, 8, 2, 4);
1.setRotationPoint(-4F, 11F, -2F);
1.setTextureSize(64, 32);
1.mirror = true;
setRotation(1, 0F, 0F, 0F);
2 = new ModelRenderer(this, 42, 22);
2.addBox(0F, 0F, 0F, 2, 1, 1);
2.setRotationPoint(-1F, 8F, -0.5F);
2.setTextureSize(64, 32);
2.mirror = true;
setRotation(2, 0F, 0F, 0F);
3 = new ModelRenderer(this, 14, 6);
3.addBox(0F, 0F, 0F, 5, 1, 4);
3.setRotationPoint(-4F, 10F, -2F);
3.setTextureSize(64, 32);
3.mirror = true;
setRotation(3, 0F, 0F, 0F);
4 = new ModelRenderer(this, 30, 0);
4.addBox(0F, 0F, 0F, 1, 1, 4);
4.setRotationPoint(-4F, 7F, -2F);
4.setTextureSize(64, 32);
4.mirror = true;
setRotation(4, 0F, 0F, 0F);
5 = new ModelRenderer(this, 16, 0);
5.addBox(0F, 0F, 0F, 3, 1, 4);
5.setRotationPoint(-4F, 9F, -2F);
5.setTextureSize(64, 32);
5.mirror = true;
setRotation(5, 0F, 0F, 0F);
6 = new ModelRenderer(this, 42, 26);
6.addBox(0F, 0F, 0F, 2, 1, 1);
6.setRotationPoint(-1F, 4F, -0.5F);
6.setTextureSize(64, 32);
6.mirror = true;
setRotation(6, 0F, 0F, 0F);
7 = new ModelRenderer(this, 16, 17);
7.addBox(0F, 0F, 0F, 2, 1, 4);
7.setRotationPoint(-4F, 8F, -2F);
7.setTextureSize(64, 32);
7.mirror = true;
setRotation(7, 0F, 0F, 0F);
8 = new ModelRenderer(this, 60, 4);
8.addBox(0F, 0F, 0F, 1, 1, 1);
8.setRotationPoint(6F, 5F, 0F);
8.setTextureSize(64, 32);
8.mirror = true;
setRotation(8, 0F, 0F, 0F);
9 = new ModelRenderer(this, 16, 21);
9.addBox(0F, 0F, 0F, 6, 1, 4);
9.setRotationPoint(-4F, 2F, -2F);
9.setTextureSize(64, 32);
9.mirror = true;
setRotation(9, 0F, 0F, 0F);
ra = new ModelRenderer(this, 48, 17);
ra.addBox(-3F, -2F, -2F, 4, 11, 4);
ra.setRotationPoint(-5F, 2F, 0F);
ra.setTextureSize(64, 32);
ra.mirror = true;
setRotation(ra, 0F, 0F, 0F);
10 = new ModelRenderer(this, 16, 26);
10.addBox(0F, 0F, 0F, 8, 2, 4);
10.setRotationPoint(-4F, 0F, -2F);
10.setTextureSize(64, 32);
10.mirror = true;
setRotation(10, 0F, 0F, 0F);
la = new ModelRenderer(this, 48, 17);
la.addBox(-1F, -2F, -2F, 4, 3, 4);
la.setRotationPoint(5F, 2F, 0F);
la.setTextureSize(64, 32);
la.mirror = true;
setRotation(la, 0F, 0F, 0F);
11 = new ModelRenderer(this, 0, 6);
11.addBox(0F, 0F, 0F, 3, 1, 4);
11.setRotationPoint(-4F, 4F, -2F);
11.setTextureSize(64, 32);
11.mirror = true;
setRotation(11, 0F, 0F, 0F);
rl = new ModelRenderer(this, 0, 17);
rl.addBox(-2F, 0F, -2F, 4, 11, 4);
rl.setRotationPoint(-2F, 13F, 0F);
rl.setTextureSize(64, 32);
rl.mirror = true;
setRotation(rl, 0F, 0F, 0F);
12 = new ModelRenderer(this, 28, 16);
12.addBox(0F, 0F, 0F, 4, 1, 4);
12.setRotationPoint(-4F, 3F, -2F);
12.setTextureSize(64, 32);
12.mirror = true;
setRotation(12, 0F, 0F, 0F);
ll.mirror = true;
ll = new ModelRenderer(this, 0, 17);
ll.addBox(-2F, 0F, -2F, 4, 11, 4);
ll.setRotationPoint(2F, 13F, 0F);
ll.setTextureSize(64, 32);
ll.mirror = true;
setRotation(ll, 0F, 0F, 0F);
ll.mirror = false;
13 = new ModelRenderer(this, 4, 0);
13.addBox(0F, 0F, 0F, 2, 2, 4);
13.setRotationPoint(-4F, 5F, -2F);
13.setTextureSize(64, 32);
13.mirror = true;
setRotation(13, 0F, 0F, 0F);
14 = new ModelRenderer(this, 0, 0);
14.addBox(0F, -1F, -2F, 1, 1, 1);
14.setRotationPoint(0F, 0F, 0F);
14.setTextureSize(64, 32);
14.mirror = true;
setRotation(14, 0F, 0F, 0F);
15 = new ModelRenderer(this, 0, 0);
15.addBox(0F, 0F, 0F, 1, 1, 1);
15.setRotationPoint(-2F, -1F, -1F);
15.setTextureSize(64, 32);
15.mirror = true;
setRotation(15, 0F, 0F, 0F);
16 = new ModelRenderer(this, 0, 14);
16.addBox(0F, 0F, 0F, 4, 1, 1);
16.setRotationPoint(-2F, -1F, 1F);
16.setTextureSize(64, 32);
16.mirror = true;
setRotation(16, 0F, 0F, 0F);
17 = new ModelRenderer(this, 0, 0);
17.addBox(0F, 0F, 0F, 1, 3, 1);
17.setRotationPoint(-2F, -3F, 0F);
17.setTextureSize(64, 32);
17.mirror = true;
setRotation(17, 0F, 0F, 0F);
18 = new ModelRenderer(this, 0, 0);
18.addBox(0F, 0F, 0F, 1, 2, 1);
18.setRotationPoint(1F, -2F, 0F);
18.setTextureSize(64, 32);
18.mirror = true;
setRotation(18, 0F, 0F, 0F);
19 = new ModelRenderer(this, 0, 0);
19.addBox(0F, 0F, 0F, 1, 1, 1);
19.setRotationPoint(1F, -1F, -1F);
19.setTextureSize(64, 32);
19.mirror = true;
setRotation(19, 0F, 0F, 0F);
20 = new ModelRenderer(this, 0, 0);
20.addBox(0F, 0F, 0F, 1, 1, 1);
20.setRotationPoint(0F, 0F, 0F);
20.setTextureSize(64, 32);
20.mirror = true;
setRotation(20, 0F, 0F, 0F);
21 = new ModelRenderer(this, 56, 0);
21.addBox(0F, 0F, 0F, 1, 7, 1);
21.setRotationPoint(-0.5F, 3F, -0.5F);
21.setTextureSize(64, 32);
21.mirror = true;
setRotation(21, 0F, 0F, 0F);
22 = new ModelRenderer(this, 0, 0);
22.addBox(0F, 0F, 0F, 1, 2, 1);
22.setRotationPoint(7F, 3F, 1F);
22.setTextureSize(64, 32);
22.mirror = true;
setRotation(22, 0F, 0F, 0F);
23 = new ModelRenderer(this, 42, 24);
23.addBox(0F, 0F, 0F, 2, 1, 1);
23.setRotationPoint(-1F, 6F, -0.5F);
23.setTextureSize(64, 32);
23.mirror = true;
setRotation(23, 0F, 0F, 0F);
24 = new ModelRenderer(this, 0, 4);
24.addBox(0F, 0F, 0F, 1, 1, 1);
24.setRotationPoint(5F, 3F, 1F);
24.setTextureSize(64, 32);
24.mirror = true;
setRotation(24, 0F, 0F, 0F);
25 = new ModelRenderer(this, 36, 22);
25.addBox(0F, 0F, 0F, 1, 2, 2);
25.setRotationPoint(6F, 3F, -1F);
25.setTextureSize(64, 32);
25.mirror = true;
setRotation(25, 0F, 0F, 0F);
26 = new ModelRenderer(this, 0, 0);
26.addBox(0F, 0F, 0F, 1, 1, 1);
26.setRotationPoint(0F, -1F, 0F);
26.setTextureSize(64, 32);
26.mirror = true;
setRotation(26, 0F, 0F, 0F);
27 = new ModelRenderer(this, 40, 29);
27.addBox(0F, 0F, 0F, 2, 1, 2);
27.setRotationPoint(4F, 3F, -2F);
27.setTextureSize(64, 32);
27.mirror = true;
setRotation(27, 0F, 0F, 0F);
28 = new ModelRenderer(this, 60, 2);
28.addBox(0F, 0F, 0F, 1, 1, 1);
28.setRotationPoint(7F, 3F, -2F);
28.setTextureSize(64, 32);
28.mirror = true;
setRotation(28, 0F, 0F, 0F);
29 = new ModelRenderer(this, 60, 0);
29.addBox(0F, 0F, 0F, 1, 1, 1);
29.setRotationPoint(5F, 4F, -2F);
29.setTextureSize(64, 32);
29.mirror = true;
setRotation(29, 0F, 0F, 0F);
}

public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
{
super.render(entity, f, f1, f2, f3, f4, f5);
setRotationAngles(f, f1, f2, f3, f4, f5, entity);

1.render(f5);
2.render(f5);
3.render(f5);
4.render(f5);
5.render(f5);
6.render(f5);
7.render(f5);
8.render(f5);
9.render(f5);
ra.render(f5);
10.render(f5);
la.render(f5);
11.render(f5);
rl.render(f5);
12.render(f5);
ll.render(f5);
13.render(f5);
14.render(f5);
15.render(f5);
16.render(f5);
17.render(f5);
18.render(f5);
19.render(f5);
20.render(f5);
21.render(f5);
22.render(f5);
23.render(f5);
24.render(f5);
25.render(f5);
26.render(f5);
27.render(f5);
28.render(f5);
29.render(f5);
}

private void setRotation(ModelRenderer model, float x, float y, float z)
{
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}

public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity e)

{
super.setRotationAngles(f, f1, f2, f3, f4, f5, e);
this.ll.rotateAngleX = MathHelper.cos(f * 1.0F) * -1.0F * f1;
this.rl.rotateAngleX = MathHelper.cos(f * 1.0F) * 1.0F * f1;
this.ra.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 2.0F * f1 * 0.5F;

}

}

}

 

Edited by Klemen on Thu, 03/23/2017 - 18:53
Last seen on 11:44, 14. Aug 2017
Joined Mar 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
i fixed it, manually editted
Thu, 03/23/2017 - 13:43

i fixed it, manually editted the code comparing to another mob.