Keep getting Compiler Errors for Mobs

Started by TMMP on Sun, 10/06/2019 - 06:23

Topic category: Help with MCreator modding

Last seen on 03:33, 7. Nov 2019
Joined Dec 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Keep getting Compiler Errors for Mobs
Sun, 10/06/2019 - 06:23

So Im trying to make a SCP Mob in MCreator and I keep getting Errors.

Gradle Output:
 

C:\Pylo\MCreator174\forge\build\sources\main\java\mod\mcreator\mcreator_sCP173.java:56: error: cannot find symbol       RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_sCP173.Model3(), 0) {                                                                                                                    ^   symbol:   class Model3   location: class mcreator_sCP173 :compileJava FAILED 1 error BUILD FAILED FAILURE: Build failed with an exception. Total time: 29.356 secs * 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

Mob's Code:
 

package mod.mcreator;

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.EnumCreatureType;
import net.minecraft.entity.Entity;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.model.ModelBox;
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_sCP173 {

	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_sCP173.Model3(), 0) {
			protected ResourceLocation getEntityTexture(Entity par1Entity) {
				return new ResourceLocation("scp173.png");
			}
		};
		RenderingRegistry.registerEntityRenderingHandler(mcreator_sCP173.EntitysCP173.class, customRender);

	}

	public void serverLoad(FMLServerStartingEvent event) {
	}

	public void preInit(FMLPreInitializationEvent event) {
		int entityID = MathHelper.getRandomUUID().hashCode();
		mobid = entityID;
		EntityRegistry.registerModEntity(mcreator_sCP173.EntitysCP173.class, "sCP173", entityID, instance, 64, 1, true, (0 << 16) + (0 << 8) + 0,
				(255 << 16) + (255 << 8) + 255);
		EntityRegistry.addSpawn(mcreator_sCP173.EntitysCP173.class, 0, 1, 2, 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 EntitysCP173 extends EntityZombie {
		World world = null;

		public EntitysCP173(World var1) {
			super(var1);
			world = var1;
			experienceValue = 0;
			this.isImmuneToFire = true;
			addRandomArmor();
			setNoAI(!true);

		}

		protected void addRandomArmor() {

		}

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

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

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

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

		@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, ItemStack stack) {
			super.processInteract(entity, hand, stack);
			int i = (int) this.posX;
			int j = (int) this.posY;
			int k = (int) this.posZ;

			return true;
		}

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

	}

	// Made with Blockbench
	// Paste this code into your mod.

	public static class scp173 extends ModelBase {
		private final ModelRenderer Leg1;
		private final ModelRenderer Leg2;
		private final ModelRenderer Body;
		private final ModelRenderer Arm1;
		private final ModelRenderer Arm2;
		private final ModelRenderer Head;

		public scp173() {
			textureWidth = 256;
			textureHeight = 256;

			Leg1 = new ModelRenderer(this);
			Leg1.setRotationPoint(0.0F, 24.0F, 0.0F);
			Leg1.cubeList.add(new ModelBox(Leg1, 64, 115, -5.0F, -12.0F, -1.0F, 3, 12, 3, 0.0F, false));

			Leg2 = new ModelRenderer(this);
			Leg2.setRotationPoint(0.0F, 24.0F, 0.0F);
			Leg2.cubeList.add(new ModelBox(Leg2, 52, 115, 1.0F, -12.0F, -1.0F, 3, 12, 3, 0.0F, false));

			Body = new ModelRenderer(this);
			Body.setRotationPoint(0.0F, 24.0F, 0.0F);
			Body.cubeList.add(new ModelBox(Body, 34, 89, -6.0F, -33.0F, -2.0F, 11, 21, 5, 0.0F, false));
			Body.cubeList.add(new ModelBox(Body, 0, 115, -5.0F, -37.0F, -2.0F, 9, 4, 5, 0.0F, false));

			Arm1 = new ModelRenderer(this);
			Arm1.setRotationPoint(0.0F, 24.0F, 0.0F);
			setRotationAngle(Arm1, 1.5708F, 0.0F, 0.0F);
			Arm1.cubeList.add(new ModelBox(Arm1, 40, 115, -9.0F, -10.0F, 28.0F, 3, 12, 3, 0.0F, false));

			Arm2 = new ModelRenderer(this);
			Arm2.setRotationPoint(0.0F, 24.0F, 0.0F);
			setRotationAngle(Arm2, 1.5708F, 0.0F, 0.0F);
			Arm2.cubeList.add(new ModelBox(Arm2, 28, 115, 5.0F, -10.0F, 28.0F, 3, 12, 3, 0.0F, false));

			Head = new ModelRenderer(this);
			Head.setRotationPoint(0.0F, 24.0F, 0.0F);
			Head.cubeList.add(new ModelBox(Head, 88, 64, -6.0F, -54.0F, -3.0F, 11, 17, 8, 0.0F, false));
			Head.cubeList.add(new ModelBox(Head, 0, 64, -7.0F, -53.0F, -4.0F, 13, 15, 10, 0.0F, false));
			Head.cubeList.add(new ModelBox(Head, 66, 89, -5.0F, -55.0F, -2.0F, 9, 18, 6, 0.0F, false));
			Head.cubeList.add(new ModelBox(Head, 0, 89, -5.5F, -54.5F, -2.5F, 10, 18, 7, 0.0F, false));
			Head.cubeList.add(new ModelBox(Head, 46, 64, -6.5F, -52.6F, -3.5F, 12, 15, 9, 0.0F, false));
		}

		@Override
		public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
			Leg1.render(f5);
			Leg2.render(f5);
			Body.render(f5);
			Arm1.render(f5);
			Arm2.render(f5);
			Head.render(f5);
		}

		public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
			modelRenderer.rotateAngleX = x;
			modelRenderer.rotateAngleY = y;
			modelRenderer.rotateAngleZ = z;
		}
	}

}

 MCreator 1.7.4

1.7.4 is outdated and has…
Sun, 10/06/2019 - 08:24

1.7.4 is outdated and has some bugs. One of them is that all model names must start with Model, for example ModelExample.

Last seen on 03:33, 7. Nov 2019
Joined Dec 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Still getting this error…
Sun, 10/06/2019 - 08:30

Still getting this error.

Gradle Output;
 

C:\Pylo\MCreator174\forge\build\sources\main\java\mod\mcreator\mcreator_modelSCP173.java:59: error: cannot find symbol       RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_modelSCP173.Model3(), 0) {                                                                                                                         ^   symbol:   class Model3   location: class mcreator_modelSCP173 1 error :compileJava FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileJava'. BUILD FAILED > Compilation failed; see the compiler error output for details. * Try: Total time: 22.001 secs Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Mob's 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.ModelBox;
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_modelSCP173 {

	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_modelSCP173.Model3(), 0) {
			protected ResourceLocation getEntityTexture(Entity par1Entity) {
				return new ResourceLocation("Modelscp173.png");
			}
		};
		RenderingRegistry.registerEntityRenderingHandler(mcreator_modelSCP173.EntitymodelSCP173.class, customRender);

	}

	public void serverLoad(FMLServerStartingEvent event) {
	}

	public void preInit(FMLPreInitializationEvent event) {
		int entityID = MathHelper.getRandomUUID().hashCode();
		mobid = entityID;
		EntityRegistry.registerModEntity(mcreator_modelSCP173.EntitymodelSCP173.class, "modelSCP173", entityID, instance, 64, 1, true, (0 << 16)
				+ (0 << 8) + 0, (255 << 16) + (255 << 8) + 255);
		EntityRegistry.addSpawn(mcreator_modelSCP173.EntitymodelSCP173.class, 0, 1, 1, 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 EntitymodelSCP173 extends EntityZombie {
		World world = null;

		public EntitymodelSCP173(World var1) {
			super(var1);
			world = var1;
			experienceValue = 0;
			this.isImmuneToFire = true;
			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.RECORD_11).getItem();
		}

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

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

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

		@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, ItemStack stack) {
			super.processInteract(entity, hand, stack);
			int i = (int) this.posX;
			int j = (int) this.posY;
			int k = (int) this.posZ;

			return true;
		}

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

	}

	// Made with Blockbench
	// Paste this code into your mod.

	public static class scp173 extends ModelBase {
		private final ModelRenderer Leg1;
		private final ModelRenderer Leg2;
		private final ModelRenderer Body;
		private final ModelRenderer Arm1;
		private final ModelRenderer Arm2;
		private final ModelRenderer Head;

		public scp173() {
			textureWidth = 256;
			textureHeight = 256;

			Leg1 = new ModelRenderer(this);
			Leg1.setRotationPoint(0.0F, 24.0F, 0.0F);
			Leg1.cubeList.add(new ModelBox(Leg1, 64, 115, -5.0F, -12.0F, -1.0F, 3, 12, 3, 0.0F, false));

			Leg2 = new ModelRenderer(this);
			Leg2.setRotationPoint(0.0F, 24.0F, 0.0F);
			Leg2.cubeList.add(new ModelBox(Leg2, 52, 115, 1.0F, -12.0F, -1.0F, 3, 12, 3, 0.0F, false));

			Body = new ModelRenderer(this);
			Body.setRotationPoint(0.0F, 24.0F, 0.0F);
			Body.cubeList.add(new ModelBox(Body, 34, 89, -6.0F, -33.0F, -2.0F, 11, 21, 5, 0.0F, false));
			Body.cubeList.add(new ModelBox(Body, 0, 115, -5.0F, -37.0F, -2.0F, 9, 4, 5, 0.0F, false));

			Arm1 = new ModelRenderer(this);
			Arm1.setRotationPoint(0.0F, 24.0F, 0.0F);
			setRotationAngle(Arm1, 1.5708F, 0.0F, 0.0F);
			Arm1.cubeList.add(new ModelBox(Arm1, 40, 115, -9.0F, -10.0F, 28.0F, 3, 12, 3, 0.0F, false));

			Arm2 = new ModelRenderer(this);
			Arm2.setRotationPoint(0.0F, 24.0F, 0.0F);
			setRotationAngle(Arm2, 1.5708F, 0.0F, 0.0F);
			Arm2.cubeList.add(new ModelBox(Arm2, 28, 115, 5.0F, -10.0F, 28.0F, 3, 12, 3, 0.0F, false));

			Head = new ModelRenderer(this);
			Head.setRotationPoint(0.0F, 24.0F, 0.0F);
			Head.cubeList.add(new ModelBox(Head, 88, 64, -6.0F, -54.0F, -3.0F, 11, 17, 8, 0.0F, false));
			Head.cubeList.add(new ModelBox(Head, 0, 64, -7.0F, -53.0F, -4.0F, 13, 15, 10, 0.0F, false));
			Head.cubeList.add(new ModelBox(Head, 66, 89, -5.0F, -55.0F, -2.0F, 9, 18, 6, 0.0F, false));
			Head.cubeList.add(new ModelBox(Head, 0, 89, -5.5F, -54.5F, -2.5F, 10, 18, 7, 0.0F, false));
			Head.cubeList.add(new ModelBox(Head, 46, 64, -6.5F, -52.6F, -3.5F, 12, 15, 9, 0.0F, false));
		}

		@Override
		public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
			Leg1.render(f5);
			Leg2.render(f5);
			Body.render(f5);
			Arm1.render(f5);
			Arm2.render(f5);
			Head.render(f5);
		}

		public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
			modelRenderer.rotateAngleX = x;
			modelRenderer.rotateAngleY = y;
			modelRenderer.rotateAngleZ = z;
		}
	}

}

 

Your model is still called…
Sun, 10/06/2019 - 09:32

Your model is still called scp173, not Modelscp173. And please, please update, we do not supprot 1.7.4 anymore and it is very outdated.

Last seen on 03:33, 7. Nov 2019
Joined Dec 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
but....
Sun, 10/06/2019 - 09:44

but.....

Last seen on 03:33, 7. Nov 2019
Joined Dec 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I'm also not updating…
Sun, 10/06/2019 - 09:44

I'm also not updating because I need 1.10.2

 

Last seen on 03:33, 7. Nov 2019
Joined Dec 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Now I'm getting MORE errors…
Sun, 10/06/2019 - 09:50

Now I'm getting MORE errors. smh

Gradle Log:
 

C:\Pylo\MCreator174\forge\build\sources\main\java\mod\mcreator\mcreator_modelSCP173.java:39: error: class mcreator_ModelSCP173 is public, should be declared in a file named mcreator_ModelSCP173.java public class mcreator_ModelSCP173 {        ^ C:\Pylo\MCreator174\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java:40: error: cannot find symbol    mcreator_modelSCP173 mcreator_1 = new mcreator_modelSCP173();    ^   symbol:   class mcreator_modelSCP173   location: class TestEnvironmentMod C:\Pylo\MCreator174\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java:40: error: cannot find symbol    mcreator_modelSCP173 mcreator_1 = new mcreator_modelSCP173();                                          ^   symbol:   class mcreator_modelSCP173   location: class TestEnvironmentMod C:\Pylo\MCreator174\forge\build\sources\main\java\mod\mcreator\mcreator_modelSCP173.java:59: error: cannot find symbol       RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_ModelSCP173.Model3(), 0) {                                                                                                                         ^   symbol:   class Model3   location: class mcreator_ModelSCP173 4 errors :compileJava FAILED FAILURE: Build failed with an exception. BUILD FAILED * What went wrong: Total time: 18.673 secs 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

(I made sure it DOES say ModelSCP173!) Mob 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.ModelBox;
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_ModelSCP173 {

	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_ModelSCP173.Model3(), 0) {
			protected ResourceLocation getEntityTexture(Entity par1Entity) {
				return new ResourceLocation("ModelSCP173.png");
			}
		};
		RenderingRegistry.registerEntityRenderingHandler(mcreator_ModelSCP173.EntityModelSCP173.class, customRender);

	}

	public void serverLoad(FMLServerStartingEvent event) {
	}

	public void preInit(FMLPreInitializationEvent event) {
		int entityID = MathHelper.getRandomUUID().hashCode();
		mobid = entityID;
		EntityRegistry.registerModEntity(mcreator_ModelSCP173.EntityModelSCP173.class, "ModelSCP173", entityID, instance, 64, 1, true, (0 << 16)
				+ (0 << 8) + 0, (255 << 16) + (255 << 8) + 255);
		EntityRegistry.addSpawn(mcreator_ModelSCP173.EntityModelSCP173.class, 0, 1, 1, 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 EntityModelSCP173 extends EntityZombie {
		World world = null;

		public EntityModelSCP173(World var1) {
			super(var1);
			world = var1;
			experienceValue = 0;
			this.isImmuneToFire = true;
			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.RECORD_11).getItem();
		}

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

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

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

		@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, ItemStack stack) {
			super.processInteract(entity, hand, stack);
			int i = (int) this.posX;
			int j = (int) this.posY;
			int k = (int) this.posZ;

			return true;
		}

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

	}

	// Made with Blockbench
	// Paste this code into your mod.

	public static class scp173 extends ModelBase {
		private final ModelRenderer Leg1;
		private final ModelRenderer Leg2;
		private final ModelRenderer Body;
		private final ModelRenderer Arm1;
		private final ModelRenderer Arm2;
		private final ModelRenderer Head;

		public scp173() {
			textureWidth = 256;
			textureHeight = 256;

			Leg1 = new ModelRenderer(this);
			Leg1.setRotationPoint(0.0F, 24.0F, 0.0F);
			Leg1.cubeList.add(new ModelBox(Leg1, 64, 115, -5.0F, -12.0F, -1.0F, 3, 12, 3, 0.0F, false));

			Leg2 = new ModelRenderer(this);
			Leg2.setRotationPoint(0.0F, 24.0F, 0.0F);
			Leg2.cubeList.add(new ModelBox(Leg2, 52, 115, 1.0F, -12.0F, -1.0F, 3, 12, 3, 0.0F, false));

			Body = new ModelRenderer(this);
			Body.setRotationPoint(0.0F, 24.0F, 0.0F);
			Body.cubeList.add(new ModelBox(Body, 34, 89, -6.0F, -33.0F, -2.0F, 11, 21, 5, 0.0F, false));
			Body.cubeList.add(new ModelBox(Body, 0, 115, -5.0F, -37.0F, -2.0F, 9, 4, 5, 0.0F, false));

			Arm1 = new ModelRenderer(this);
			Arm1.setRotationPoint(0.0F, 24.0F, 0.0F);
			setRotationAngle(Arm1, 1.5708F, 0.0F, 0.0F);
			Arm1.cubeList.add(new ModelBox(Arm1, 40, 115, -9.0F, -10.0F, 28.0F, 3, 12, 3, 0.0F, false));

			Arm2 = new ModelRenderer(this);
			Arm2.setRotationPoint(0.0F, 24.0F, 0.0F);
			setRotationAngle(Arm2, 1.5708F, 0.0F, 0.0F);
			Arm2.cubeList.add(new ModelBox(Arm2, 28, 115, 5.0F, -10.0F, 28.0F, 3, 12, 3, 0.0F, false));

			Head = new ModelRenderer(this);
			Head.setRotationPoint(0.0F, 24.0F, 0.0F);
			Head.cubeList.add(new ModelBox(Head, 88, 64, -6.0F, -54.0F, -3.0F, 11, 17, 8, 0.0F, false));
			Head.cubeList.add(new ModelBox(Head, 0, 64, -7.0F, -53.0F, -4.0F, 13, 15, 10, 0.0F, false));
			Head.cubeList.add(new ModelBox(Head, 66, 89, -5.0F, -55.0F, -2.0F, 9, 18, 6, 0.0F, false));
			Head.cubeList.add(new ModelBox(Head, 0, 89, -5.5F, -54.5F, -2.5F, 10, 18, 7, 0.0F, false));
			Head.cubeList.add(new ModelBox(Head, 46, 64, -6.5F, -52.6F, -3.5F, 12, 15, 9, 0.0F, false));
		}

		@Override
		public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
			Leg1.render(f5);
			Leg2.render(f5);
			Body.render(f5);
			Arm1.render(f5);
			Arm2.render(f5);
			Head.render(f5);
		}

		public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
			modelRenderer.rotateAngleX = x;
			modelRenderer.rotateAngleY = y;
			modelRenderer.rotateAngleZ = z;
		}
	}

}

 

File name is not model name …
Sun, 10/06/2019 - 12:44

File name is not model name

public static class scp173 extends ModelBase {

This is not Modelscp173 to my eyes.

Support for Minecraft 1.10.2 is long gone here and at Forge devs.

Last seen on 03:33, 7. Nov 2019
Joined Dec 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Okay, So I went into the…
Sun, 10/06/2019 - 17:25

Okay, So I went into the File using Notepad++ and changed it and it worked tysm.