Jump to content

Recommended Posts

Posted

I have been working on this mob for a while, among many other things, and I have gotten the spawn egg to show up in game and everything, but when I try to spawn in the mob, my screen turns white and the game crashes, please help, here's my code:

 

Main Mod File:

Quote

package com.timjsmith.timsmod;

import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.entity.RenderItem;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityList;
import net.minecraft.entity.EntityList.EntityEggInfo;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraft.item.ItemStack;
import net.minecraft.util.WeightedRandomChestContent;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.ChestGenHooks;
import net.minecraftforge.common.DungeonHooks;
import net.minecraftforge.common.util.EnumHelper;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.registry.EntityRegistry;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.oredict.OreDictionary;
import net.minecraftforge.oredict.ShapedOreRecipe;

@Mod(modid = TimsMod.MODID, version = TimsMod.VERSION)
public class TimsMod
{
	public static final String MODID = "timjsmith_timsmod";
	public static final String VERSION = "1.0";

	//Blocks
	public static Block timStone;
	public static Block timPlant;
	
	public static Block timTE;
	
	//Items
	public static Item key;
	
	public static Item timdust;
	public static Item timingot;
	
	public static Item berry;

	public static Item timseed;
	
	//tools
	public static Item timpickaxe;
	public static Item timaxe;
	public static Item timhoe;
	public static Item timshovel;
	public static Item timsword;
	
	public static Item timpaxel;
	public static Item timspax;
	
	ToolMaterial timium = EnumHelper.addToolMaterial("timium", 3, 1000, 9.5F, 3.5F, 10);
	
	//armor
	public static Item timhelmet;
	public static Item timchest;
	public static Item timleggings;
	public static Item timboots;

	ArmorMaterial timarmor = EnumHelper.addArmorMaterial("timarmor", "timarmor", 20, new int[] { 3, 7, 6, 3 }, 10);

	TimEventHandler handler = new TimEventHandler();

	@SidedProxy(clientSide = "com.timjsmith.timsmod.ClientProxyTim", serverSide = "com.timjsmith.timsmod.CommonProxyTim")
	public static CommonProxyTim proxy;

	@EventHandler
	public void preInit(FMLPreInitializationEvent event)
	{

		proxy.registerRendering();
		
		//Blocks
		timStone = new BlockTimStone();
		timPlant = new BlockTimPlant();
		
		timTE = new BlockTimTE();
		
		//TEs
		GameRegistry.registerTileEntity(TileEntityTim.class, "TE_timTE");
		
		//Items
		key = new ItemKey();
		
		timdust = new ItemTimGeneric("timdust");
		timingot = new ItemTimGeneric("timingot");
		
		berry = new ItemBerry(3, 0.3F, true, "berry");
		
		timseed = new ItemTimSeed(timPlant);
		
		timpickaxe = new ItemTimPickaxe(timium, "timpickaxe");
		timaxe = new ItemTimAxe(timium, "timaxe");
		timhoe = new ItemTimHoe(timium, "timhoe");
		timshovel = new ItemTimShovel(timium, "timshovel");
		timsword = new ItemTimSword(timium, "timsword");
 
		timpaxel = new ItemTimPaxel(timium, "timpaxel");
		timspax = new ItemTimSpax(timium, "timspax");
		
		//armor
		timhelmet = new ItemTimArmor(timarmor, 0, "timhelmet");
		timchest = new ItemTimArmor(timarmor, 1, "timchestplate");
		timleggings = new ItemTimArmor(timarmor, 2, "timleggings");
		timboots = new ItemTimArmor(timarmor, 3, "timboots");
		
		if(event.getSide() == Side.CLIENT)
		{
			BlockTimStone.BlockType.registerVariants();
			ItemKey.registerVariants();
		}
		
		GameRegistry.registerWorldGenerator(handler, 0);
		
		OreDictionary.registerOre("ingotTim", new ItemStack(timingot));
		
		EntityRegistry.registerModEntity(EntityTimMob.class, "timmob", 0, this, 80, 3, true);
	
		registerEntityEgg(EntityTimMob.class, 0xd8bb9d, 0xa63c1a);
		
		for (int i = 0; i < BiomeGenBase.getBiomeGenArray().length; i++)
        {
        	if (BiomeGenBase.getBiomeGenArray()[i] != null)
        	{
        		EntityRegistry.addSpawn(EntityTimMob.class, 10, 1, 3, EnumCreatureType.MONSTER, BiomeGenBase.getBiomeGenArray()[i]);
        	}
        }
	}
	
	@EventHandler
	public void init(FMLInitializationEvent event)
	{
		GameRegistry.addShapelessRecipe(new ItemStack(timStone), timingot, Blocks.stone);
		
		// crafting recipes
		GameRegistry.addRecipe(new ItemStack(Items.apple), 
				"XXX", 
				"XXX", 
				"XXX", 
				'X', Blocks.leaves);
		GameRegistry.addRecipe(new ItemStack(Items.arrow), 
				"YZ", 
				"X ", 
				'X', Items.flint, 'Y', Items.stick, 'Z', Blocks.leaves);
		GameRegistry.addRecipe(new ItemStack(Items.dye, 2, 1), 
				"XY", 
				'X', Items.redstone, 'Y', new ItemStack(Items.dye, 1, 1));
		GameRegistry.addRecipe(new ItemStack(key, 1, 0),
				"X",
				"X",
				'X', Items.iron_ingot);
		
		//ore dictionary recipes
		GameRegistry.addRecipe(new ShapedOreRecipe(TimsMod.timpickaxe,
				"XXX",
				" Y ",
				" Y ",
				'X', "ingotTim", 'Y', Items.stick
		));

		// shapeless recipes
		GameRegistry.addShapelessRecipe(new ItemStack(Items.dye, 2, 1), Items.redstone, new ItemStack(Items.dye, 1, 1));

		// special recipes
		ItemStack enchantedSwordItemStack = new ItemStack(Items.stone_sword);
		enchantedSwordItemStack.addEnchantment(Enchantment.sharpness, 1);

		GameRegistry.addShapelessRecipe(enchantedSwordItemStack, Items.flint, Items.stone_sword);

		ItemStack knockbackItemStack = new ItemStack(Items.stone_sword);
		knockbackItemStack.addEnchantment(Enchantment.knockback, 1);

		GameRegistry.addShapelessRecipe(knockbackItemStack, Items.gunpowder, Items.stone_sword );

		// smelting
		GameRegistry.addSmelting(Blocks.stone, new ItemStack(Blocks.stonebrick), 0.1F);

		// dungeon changes
		DungeonHooks.removeDungeonMob("Spider");
		DungeonHooks.addDungeonMob("Creeper", 100);
		ChestGenHooks.removeItem(ChestGenHooks.DUNGEON_CHEST, new ItemStack(Items.saddle));
		ChestGenHooks.addItem(ChestGenHooks.DUNGEON_CHEST, new WeightedRandomChestContent(new ItemStack(Blocks.cobblestone), 25, 50, 10));
	}
	
	@EventHandler
	public void postInit(FMLPostInitializationEvent event)
	{
		if (event.getSide() == Side.CLIENT)
		{
			RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();

			BlockTimStone.BlockType.registerRenders();
			
			renderItem.getItemModelMesher().register(Item.getItemFromBlock(timPlant), 0, new ModelResourceLocation(MODID + ":" + ((BlockTimPlant) timPlant).getName(), "inventory"));
			
			renderItem.getItemModelMesher().register(Item.getItemFromBlock(timTE), 0, new ModelResourceLocation(MODID + ":" + ((BlockTimTE) timTE).getName(), "inventory"));
			
			//items
			renderItem.getItemModelMesher().register(key, 0, new ModelResourceLocation(MODID + ":" + ((ItemKey) key).getNameFromDamage(0), "inventory"));
			renderItem.getItemModelMesher().register(key, 1, new ModelResourceLocation(MODID + ":" + ((ItemKey) key).getNameFromDamage(1), "inventory"));
			
			renderItem.getItemModelMesher().register(timdust, 0, new ModelResourceLocation(MODID + ":" + ((ItemTimGeneric) timdust).getName(), "inventory"));
			renderItem.getItemModelMesher().register(timingot, 0, new ModelResourceLocation(MODID + ":" + ((ItemTimGeneric) timingot).getName(), "inventory"));
			
			renderItem.getItemModelMesher().register(berry, 0, new ModelResourceLocation(MODID + ":" + ((ItemBerry) berry).getName(), "inventory"));
			
			renderItem.getItemModelMesher().register(timseed, 0, new ModelResourceLocation(MODID + ":" + ((ItemTimSeed) timseed).getName(), "inventory"));
			
			renderItem.getItemModelMesher().register(timpickaxe, 0, new ModelResourceLocation(MODID + ":" + ((ItemTimPickaxe) timpickaxe).getName(), "inventory"));
			renderItem.getItemModelMesher().register(timaxe, 0, new ModelResourceLocation(MODID + ":" + ((ItemTimAxe) timaxe).getName(), "inventory"));
			renderItem.getItemModelMesher().register(timhoe, 0, new ModelResourceLocation(MODID + ":" + ((ItemTimHoe) timhoe).getName(), "inventory"));
			renderItem.getItemModelMesher().register(timshovel, 0, new ModelResourceLocation(MODID + ":" + ((ItemTimShovel) timshovel).getName(), "inventory"));
			renderItem.getItemModelMesher().register(timsword, 0, new ModelResourceLocation(MODID + ":" + ((ItemTimSword) timsword).getName(), "inventory"));
			
			renderItem.getItemModelMesher().register(timpaxel, 0, new ModelResourceLocation(MODID + ":" + ((ItemTimPaxel) timpaxel).getName(), "inventory"));
			renderItem.getItemModelMesher().register(timspax, 0, new ModelResourceLocation(MODID + ":" + ((ItemTimSpax) timspax).getName(), "inventory"));
			
			renderItem.getItemModelMesher().register(timhelmet, 0, new ModelResourceLocation(MODID + ":" + ((ItemTimArmor) timhelmet).getName(), "inventory"));
			renderItem.getItemModelMesher().register(timchest, 0, new ModelResourceLocation(MODID + ":" + ((ItemTimArmor) timchest).getName(), "inventory"));
			renderItem.getItemModelMesher().register(timleggings, 0, new ModelResourceLocation(MODID + ":" + ((ItemTimArmor) timleggings).getName(), "inventory"));
			renderItem.getItemModelMesher().register(timboots, 0, new ModelResourceLocation(MODID + ":" + ((ItemTimArmor) timboots).getName(), "inventory"));
		}
	}
	
	static int startEntityId = 250;

	//@SuppressWarnings("unchecked")
	public static void registerEntityEgg(Class<? extends Entity> entity, int primaryColor, int secondaryColor)
	{
		int id = getUniqueEntityId();
		EntityList.idToClassMapping.put(id, entity);
		EntityList.entityEggs.put(id, new EntityEggInfo(id, primaryColor, secondaryColor));
	}

	public static int getUniqueEntityId()
	{
		do
		{
			startEntityId++;
		}
		while (EntityList.getStringFromID(startEntityId) != null);

		return startEntityId;
	}
}

 

 

 

The ModelTimMob file:

Quote

package com.timjsmith.timsmod;

import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.util.MathHelper;

public class ModelTimMob extends ModelBase
{
	// fields
	ModelRenderer cap;
	ModelRenderer head;
	ModelRenderer body;
	ModelRenderer rightarm;
	ModelRenderer leftarm;
	ModelRenderer rightleg;
	ModelRenderer leftleg;

	public ModelTimMob()
	{
		textureWidth = 64;
		textureHeight = 32;

		cap = new ModelRenderer(this, 35, 0);
		cap.addBox(-3F, -10F, -3F, 6, 2, 6);
		cap.setRotationPoint(0F, 0F, 0F);
		cap.setTextureSize(64, 32);
		cap.mirror = true;
		setRotation(cap, 0F, 0F, 0F);
		head = new ModelRenderer(this, 0, 0);
		head.addBox(-4F, -8F, -4F, 8, 8, 8);
		head.setRotationPoint(0F, 0F, 0F);
		head.setTextureSize(64, 32);
		head.mirror = true;
		setRotation(head, 0F, 0F, 0F);
		body = new ModelRenderer(this, 16, 16);
		body.addBox(-4F, 0F, -2F, 8, 12, 4);
		body.setRotationPoint(0F, 0F, 0F);
		body.setTextureSize(64, 32);
		body.mirror = true;
		setRotation(body, 0F, 0F, 0F);
		rightarm = new ModelRenderer(this, 40, 16);
		rightarm.addBox(-3F, -2F, -2F, 4, 12, 4);
		rightarm.setRotationPoint(-5F, 2F, 0F);
		rightarm.setTextureSize(64, 32);
		rightarm.mirror = true;
		setRotation(rightarm, 0F, 0F, 0F);
		leftarm = new ModelRenderer(this, 40, 16);
		leftarm.addBox(-1F, -2F, -2F, 4, 12, 4);
		leftarm.setRotationPoint(5F, 2F, 0F);
		leftarm.setTextureSize(64, 32);
		leftarm.mirror = true;
		setRotation(leftarm, 0F, 0F, 0F);
		rightleg = new ModelRenderer(this, 0, 16);
		rightleg.addBox(-2F, 0F, -2F, 4, 12, 4);
		rightleg.setRotationPoint(-2F, 12F, 0F);
		rightleg.setTextureSize(64, 32);
		rightleg.mirror = true;
		setRotation(rightleg, 0F, 0F, 0F);
		leftleg = new ModelRenderer(this, 0, 16);
		leftleg.addBox(-2F, 0F, -2F, 4, 12, 4);
		leftleg.setRotationPoint(2F, 12F, 0F);
		leftleg.setTextureSize(64, 32);
		leftleg.mirror = true;
		setRotation(leftleg, 0F, 0F, 0F);
	}

	@Override
	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);
		cap.render(f5);
		head.render(f5);
		body.render(f5);
		rightarm.render(f5);
		leftarm.render(f5);
		rightleg.render(f5);
		leftleg.render(f5);
	}

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

	@Override
	public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
	{
		head.rotateAngleY = f3 / (180F / (float) Math.PI);
		head.rotateAngleX = f4 / (180F / (float) Math.PI);
		cap.rotateAngleY = f3 / (180F / (float) Math.PI);
		cap.rotateAngleX = f4 / (180F / (float) Math.PI);
		rightarm.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 2.0F * f1 * 0.5F;
		leftarm.rotateAngleX = MathHelper.cos(f * 0.6662F) * 2.0F * f1 * 0.5F;
		rightarm.rotateAngleZ = 0.0F;
		leftarm.rotateAngleZ = 0.0F;
		rightleg.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1;
		leftleg.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 1.4F * f1;
		rightleg.rotateAngleY = 0.0F;
		leftleg.rotateAngleY = 0.0F;

		rightarm.rotateAngleZ += MathHelper.cos(f2 * 0.09F) * 0.05F + 0.05F;
		leftarm.rotateAngleZ -= MathHelper.cos(f2 * 0.09F) * 0.05F + 0.05F;
		rightarm.rotateAngleX += MathHelper.sin(f2 * 0.067F) * 0.05F;
		leftarm.rotateAngleX -= MathHelper.sin(f2 * 0.067F) * 0.05F;
	}
}

 

 

The EntityTimMob file:

Quote

package com.timjsmith.timsmod;

import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
import net.minecraft.entity.ai.EntityAIHurtByTarget;
import net.minecraft.entity.ai.EntityAILookIdle;
import net.minecraft.entity.ai.EntityAINearestAttackableTarget;
import net.minecraft.entity.ai.EntityAISwimming;
import net.minecraft.entity.ai.EntityAIWander;
import net.minecraft.entity.ai.EntityAIWatchClosest;
import net.minecraft.entity.monster.EntityMob;
import net.minecraft.entity.passive.EntityVillager;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.pathfinding.PathNavigateGround;
import net.minecraft.world.World;

public class EntityTimMob extends EntityMob
{
	public EntityTimMob(World worldIn)
	{
		super(worldIn);
		((PathNavigateGround) this.getNavigator()).func_179688_b(true);
		this.tasks.addTask(0, new EntityAISwimming(this));
		this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
		this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, false));
		this.tasks.addTask(2, new EntityAIWander(this, 1.0D));
		this.tasks.addTask(3, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
		this.tasks.addTask(3, new EntityAIWatchClosest(this, EntityVillager.class, 8.0F));
		this.tasks.addTask(4, new EntityAILookIdle(this));
		this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
		this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true));
		this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityVillager.class, true));
	}

	@Override
	protected void applyEntityAttributes()
	{
		super.applyEntityAttributes();
		this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(3.0D);
		this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(1.0D);
	}

	@Override
	protected Item getDropItem()
	{
		return TimsMod.timdust;
	}

	@Override
	protected void addRandomArmor()
	{
		switch (this.rand.nextInt(2))
		{
			case 0:
				this.dropItem(TimsMod.timsword, 1);
				break;
			case 1:
				this.dropItem(Item.getItemFromBlock(TimsMod.timTE), 1);
				break;
		}
	}
}

 

 

 

and the Client Proxy File:

Quote

package com.timjsmith.timsmod;

import net.minecraft.client.Minecraft;
import net.minecraftforge.fml.client.registry.RenderingRegistry;

public class ClientProxyTim extends CommonProxyTim
{
	@Override
	public void registerRendering()
	{
		/*RenderingRegistry.registerEntityRenderingHandler(EntityTimMob.class, new RenderTimMob(Minecraft.getMinecraft().
				getRenderManager(), new ModelTimMob(), 0.5F)); */
		RenderingRegistry.registerEntityRenderingHandler(EntityTimMob.class, new RenderTimMob
				(Minecraft.getMinecraft().getRenderManager(), new ModelTimMob(), 0.5F));
	}
}

 

And the Error Log:

Quote

---- Minecraft Crash Report ----
// Quite honestly, I wouldn't worry myself about that.

Time: 9/8/17 10:22 PM
Description: Rendering entity in world

java.lang.NullPointerException: Rendering entity in world
	at net.minecraft.client.renderer.entity.RendererLivingEntity.canRenderName(RendererLivingEntity.java:599)
	at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:31)
	at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:172)
	at net.minecraft.client.renderer.entity.RendererLivingEntity.passSpecialRender(RendererLivingEntity.java:514)
	at net.minecraft.client.renderer.entity.RendererLivingEntity.renderName(RendererLivingEntity.java:614)
	at net.minecraft.client.renderer.entity.Render.doRender(Render.java:53)
	at net.minecraft.client.renderer.entity.RendererLivingEntity.doRender(RendererLivingEntity.java:209)
	at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:59)
	at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:199)
	at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:377)
	at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:334)
	at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:301)
	at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:657)
	at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1350)
	at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263)
	at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1088)
	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1114)
	at net.minecraft.client.Minecraft.run(Minecraft.java:376)
	at net.minecraft.client.main.Main.main(Main.java:117)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
	at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
	at GradleStart.main(Unknown Source)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
	at net.minecraft.client.renderer.entity.RendererLivingEntity.canRenderName(RendererLivingEntity.java:599)
	at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:31)
	at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:172)
	at net.minecraft.client.renderer.entity.RendererLivingEntity.passSpecialRender(RendererLivingEntity.java:514)
	at net.minecraft.client.renderer.entity.RendererLivingEntity.renderName(RendererLivingEntity.java:614)
	at net.minecraft.client.renderer.entity.Render.doRender(Render.java:53)
	at net.minecraft.client.renderer.entity.RendererLivingEntity.doRender(RendererLivingEntity.java:209)
	at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:59)
	at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:199)

-- Entity being rendered --
Details:
	Entity Type: timjsmith_timsmod.timmob (com.timjsmith.timsmod.EntityTimMob)
	Entity ID: 16179
	Entity Name: entity.timjsmith_timsmod.timmob.name
	Entity's Exact location: -23.50, 69.00, -29.50
	Entity's Block location: -24.00,69.00,-30.00 - World: (-24,69,-30), Chunk: (at 8,4,2 in -2,-2; contains blocks -32,0,-32 to -17,255,-17), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
	Entity's Momentum: 0.00, -0.08, 0.00
	Entity's Rider: ~~ERROR~~ NullPointerException: null
	Entity's Vehicle: ~~ERROR~~ NullPointerException: null

-- Renderer details --
Details:
	Assigned renderer: com.timjsmith.timsmod.RenderTimMob@337eb419
	Location: 0.66,-1.00,-2.70 - World: (0,-1,-3), Chunk: (at 0,-1,13 in 0,-1; contains blocks 0,0,-16 to 15,255,-1), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
	Rotation: 87.37028
	Delta: 0.5356032
Stacktrace:
	at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:377)
	at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:334)
	at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:301)
	at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:657)
	at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1350)
	at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263)

-- Affected level --
Details:
	Level name: MpServer
	All players: 1 total; [EntityPlayerSP['Player828'/994, l='MpServer', x=-24.16, y=70.00, z=-26.80]]
	Chunk stats: MultiplayerChunkCache: 81, 81
	Level seed: 0
	Level generator: ID 00 - default, ver 1. Features enabled: false
	Level generator options: 
	Level spawn location: 178.00,64.00,210.00 - World: (178,64,210), Chunk: (at 2,4,2 in 11,13; contains blocks 176,0,208 to 191,255,223), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
	Level time: 4151 game time, 4151 day time
	Level dimension: 0
	Level storage version: 0x00000 - Unknown?
	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
	Forced entities: 79 total; [EntitySquid['Squid'/13316, l='MpServer', x=-20.56, y=56.50, z=-73.63], EntitySquid['Squid'/13317, l='MpServer', x=-26.34, y=56.47, z=-79.53], EntitySquid['Squid'/13318, l='MpServer', x=-28.38, y=57.00, z=-72.84], EntitySquid['Squid'/13319, l='MpServer', x=-25.34, y=56.75, z=-73.97], EntityPig['Pig'/13323, l='MpServer', x=-81.88, y=78.00, z=-50.88], EntityPig['Pig'/13324, l='MpServer', x=-85.50, y=83.00, z=-51.50], EntityItem['item.tile.doublePlant.sunflower'/14861, l='MpServer', x=12.88, y=64.00, z=-67.75], EntityPig['Pig'/13325, l='MpServer', x=-72.56, y=78.00, z=-47.31], EntityItem['item.tile.doublePlant.sunflower'/14862, l='MpServer', x=14.19, y=64.00, z=-69.06], EntitySheep['Sheep'/6673, l='MpServer', x=34.34, y=71.00, z=-10.91], EntityItem['item.tile.doublePlant.sunflower'/14865, l='MpServer', x=11.66, y=64.00, z=-68.69], EntityItem['item.item.timjsmith_timsmod_timseed'/15890, l='MpServer', x=-25.56, y=68.00, z=-29.50], EntitySheep['Sheep'/6675, l='MpServer', x=39.09, y=71.00, z=-15.91], EntityItem['item.tile.doublePlant.sunflower'/14867, l='MpServer', x=10.69, y=64.00, z=-68.97], EntitySheep['Sheep'/6676, l='MpServer', x=44.22, y=70.00, z=-10.47], EntitySheep['Sheep'/6681, l='MpServer', x=-26.50, y=71.00, z=33.19], EntitySheep['Sheep'/6682, l='MpServer', x=-26.50, y=71.00, z=34.81], EntityItem['item.item.rottenFlesh'/15898, l='MpServer', x=-22.88, y=38.00, z=-87.59], EntitySheep['Sheep'/6683, l='MpServer', x=-20.03, y=71.00, z=46.00], EntityItem['item.item.rottenFlesh'/15899, l='MpServer', x=-4.84, y=20.00, z=-63.13], EntitySheep['Sheep'/6684, l='MpServer', x=-27.50, y=71.00, z=31.50], EntityItem['item.item.rottenFlesh'/15902, l='MpServer', x=-40.59, y=38.00, z=-90.84], EntityItem['item.item.rottenFlesh'/15904, l='MpServer', x=-61.44, y=63.00, z=-88.22], EntityCreeper['Creeper'/13358, l='MpServer', x=-39.50, y=32.00, z=-85.50], EntityZombie['Zombie'/13359, l='MpServer', x=-35.50, y=32.00, z=-86.50], EntityZombie['Zombie'/13360, l='MpServer', x=-33.50, y=32.00, z=-86.50], EntityCreeper['Creeper'/13385, l='MpServer', x=-17.81, y=22.00, z=-76.13], EntityPlayerSP['Player828'/994, l='MpServer', x=-24.16, y=70.00, z=-26.80], EntitySkeleton['Skeleton'/13484, l='MpServer', x=28.50, y=19.00, z=37.75], EntityCreeper['Creeper'/14539, l='MpServer', x=10.50, y=41.00, z=47.50], EntityItem['item.item.rottenFlesh'/15566, l='MpServer', x=-25.94, y=68.00, z=-30.19], EntityItem['item.item.timjsmith_timsmod_timseed'/15569, l='MpServer', x=-25.69, y=68.00, z=-30.53], EntitySkeleton['Skeleton'/11998, l='MpServer', x=37.19, y=14.00, z=26.72], EntityBat['Bat'/15604, l='MpServer', x=43.25, y=51.10, z=2.22], EntityItem['item.item.rottenFlesh'/14582, l='MpServer', x=8.59, y=49.00, z=-59.56], EntityItem['item.tile.doublePlant.sunflower'/14611, l='MpServer', x=-11.84, y=71.00, z=-8.94], EntityCreeper['Creeper'/15635, l='MpServer', x=42.91, y=48.00, z=-57.75], EntityTimMob['entity.timjsmith_timsmod.timmob.name'/16179, l='MpServer', x=-23.50, y=69.00, z=-29.50], EntitySkeleton['Skeleton'/10062, l='MpServer', x=39.41, y=40.00, z=27.81], EntitySkeleton['Skeleton'/12634, l='MpServer', x=21.84, y=19.00, z=37.50], EntityItem['item.item.rottenFlesh'/8556, l='MpServer', x=-16.75, y=29.00, z=31.13], EntityItem['item.item.rottenFlesh'/8561, l='MpServer', x=-25.44, y=48.00, z=36.88], EntityItem['item.item.rottenFlesh'/8563, l='MpServer', x=-29.81, y=36.00, z=-3.22], EntityCreeper['Creeper'/15735, l='MpServer', x=-61.84, y=49.00, z=-39.91], EntityItem['item.item.rottenFlesh'/8571, l='MpServer', x=-1.50, y=70.00, z=-43.13], EntityItem['item.item.rottenFlesh'/8594, l='MpServer', x=-45.50, y=11.00, z=9.69], EntityItem['item.item.rottenFlesh'/8597, l='MpServer', x=-36.72, y=44.00, z=-12.47], EntityItem['item.item.rottenFlesh'/8598, l='MpServer', x=-38.13, y=22.00, z=22.94], EntityItem['item.item.timjsmith_timsmod_berry'/15796, l='MpServer', x=-25.50, y=68.00, z=-29.78], EntityItem['item.item.rottenFlesh'/13237, l='MpServer', x=10.91, y=39.00, z=-69.84], EntityItem['item.item.appleGold'/15798, l='MpServer', x=-25.63, y=68.00, z=-29.75], EntityItem['item.item.rottenFlesh'/13239, l='MpServer', x=-61.25, y=24.00, z=-17.19], EntityItem['item.item.rottenFlesh'/13240, l='MpServer', x=-53.59, y=42.00, z=-16.13], EntityItem['item.item.rottenFlesh'/13244, l='MpServer', x=-59.72, y=70.00, z=15.84], EntitySheep['Sheep'/13245, l='MpServer', x=-55.03, y=72.00, z=10.06], EntitySheep['Sheep'/13246, l='MpServer', x=-63.50, y=71.00, z=22.50], EntitySheep['Sheep'/13247, l='MpServer', x=-62.50, y=70.00, z=20.50], EntitySheep['Sheep'/13248, l='MpServer', x=-61.50, y=71.00, z=22.50], EntityItem['item.item.rottenFlesh'/13249, l='MpServer', x=-81.13, y=49.00, z=-9.72], EntityItem['item.item.rottenFlesh'/13263, l='MpServer', x=-53.81, y=49.00, z=-40.81], EntityItem['item.item.rottenFlesh'/7634, l='MpServer', x=24.28, y=68.00, z=24.50], EntityItem['item.item.rottenFlesh'/7636, l='MpServer', x=14.38, y=22.00, z=23.88], EntityItem['item.item.rottenFlesh'/7641, l='MpServer', x=34.34, y=67.00, z=7.53], EntityItem['item.item.rottenFlesh'/7643, l='MpServer', x=14.13, y=39.00, z=15.13], EntityItem['item.item.rottenFlesh'/7644, l='MpServer', x=22.22, y=16.00, z=8.16], EntityItem['item.item.rottenFlesh'/7647, l='MpServer', x=5.66, y=32.00, z=-7.88], EntityItem['item.item.rottenFlesh'/7649, l='MpServer', x=33.88, y=35.00, z=-1.09], EntityItem['item.item.rottenFlesh'/7652, l='MpServer', x=-0.84, y=69.00, z=6.28], EntityBat['Bat'/13284, l='MpServer', x=-77.25, y=49.10, z=40.44], EntityItem['item.item.rottenFlesh'/7653, l='MpServer', x=-2.34, y=42.00, z=-0.13], EntityItem['item.item.rottenFlesh'/13285, l='MpServer', x=-67.88, y=18.00, z=25.19], EntityItem['item.item.rottenFlesh'/7654, l='MpServer', x=29.28, y=25.00, z=-22.88], EntityItem['item.item.rottenFlesh'/13286, l='MpServer', x=-71.22, y=33.00, z=17.44], EntityBat['Bat'/13287, l='MpServer', x=-71.03, y=48.16, z=34.97], EntityItem['item.item.rottenFlesh'/13288, l='MpServer', x=32.66, y=16.00, z=-85.22], EntityPig['Pig'/13292, l='MpServer', x=-85.94, y=63.00, z=-44.56], EntityItem['item.item.rottenFlesh'/8686, l='MpServer', x=-47.88, y=27.00, z=-8.13], EntityItem['item.item.seeds'/8696, l='MpServer', x=-15.97, y=69.00, z=-10.69], EntityItem['item.item.seeds'/8697, l='MpServer', x=-15.44, y=69.00, z=-9.38]]
	Retry entities: 0 total; []
	Server brand: fml,forge
	Server type: Integrated singleplayer server
Stacktrace:
	at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:392)
	at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2613)
	at net.minecraft.client.Minecraft.run(Minecraft.java:398)
	at net.minecraft.client.main.Main.main(Main.java:117)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
	at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
	at GradleStart.main(Unknown Source)

-- System Details --
Details:
	Minecraft Version: 1.8
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 1.8.0_144, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 856759392 bytes (817 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
	IntCache: cache: 1, tcache: 1, allocated: 12, tallocated: 94
	FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.2.1427 4 mods loaded, 4 mods active
	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
	FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8-11.14.2.1427.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
	Forge{11.14.2.1427} [Minecraft Forge] (forgeSrc-1.8-11.14.2.1427.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
	timjsmith_timsmod{1.0} [timjsmith_timsmod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
	Loaded coremods (and transformers): 
	GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 376.53' Renderer: 'GeForce GTX 550 Ti/PCIe/SSE2'
	Launched Version: 1.8
	LWJGL: 2.9.1
	OpenGL: GeForce GTX 550 Ti/PCIe/SSE2 GL version 4.5.0 NVIDIA 376.53, NVIDIA Corporation
	GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

	Using VBOs: No
	Is Modded: Definitely; Client brand changed to 'fml,forge'
	Type: Client (map_client.txt)
	Resource Packs: []
	Current Language: English (US)
	Profiler Position: N/A (disabled)

 

If you need anything else please let me know, I'm really stuck. Please Help, and if it means anything, I am new to this field and have been using Sam's Teach Yourself Mod Development For MineCraft in 24 Hours.

Posted

what's in your common proxy class?

 

Also, which version of Minecraft are you modding? If you're using 1.11 or more recent then there is a newer way of registering render handlers using a "factory" method. Not sure if it helps but you can look at my code for one of my entity mods here: https://github.com/jabelar/WildAnimalsPlus-1.12.1/blob/master/src/main/java/com/blogspot/jabelarminecraft/wildanimals/proxy/ClientProxy.java

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.