Skip to content

Instantly share code, notes, and snippets.

@triphion
Last active September 26, 2017 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save triphion/0d43a1486a2919a8248b4445c6f27392 to your computer and use it in GitHub Desktop.
Save triphion/0d43a1486a2919a8248b4445c6f27392 to your computer and use it in GitHub Desktop.
package com.triphion.ancient;
import com.sun.jna.platform.mac.Carbon.EventHandlerProcPtr;
import com.triphion.ancient.creativetabs.TabAncientArmor;
import com.triphion.ancient.creativetabs.TabAncientBlocks;
import com.triphion.ancient.creativetabs.TabAncientFood;
import com.triphion.ancient.creativetabs.TabAncientItems;
import com.triphion.ancient.creativetabs.TabAncientScrolls;
import com.triphion.ancient.creativetabs.TabAncientSpells;
import com.triphion.ancient.creativetabs.TabAncientTools;
import com.triphion.ancient.creativetabs.TabAncientWands;
import com.triphion.ancient.entity.EntityKillereye;
import com.triphion.ancient.handlers.AchievementHandler;
import com.triphion.ancient.handlers.RecipeHandler;
import com.triphion.ancient.init.DevModArmour;
import com.triphion.ancient.init.ModArmour;
import com.triphion.ancient.init.ModBlocks;
import com.triphion.ancient.init.ModDevItems;
import com.triphion.ancient.init.ModEntities;
import com.triphion.ancient.init.ModFood;
import com.triphion.ancient.init.ModItems;
import com.triphion.ancient.init.ModScrolls;
import com.triphion.ancient.init.ModSpecialItems;
import com.triphion.ancient.init.ModSpells;
import com.triphion.ancient.init.ModTools;
import com.triphion.ancient.proxy.CommonProxy;
import com.triphion.ancient.util.Utils;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.item.Item;
import net.minecraft.world.biome.Biome;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.client.model.obj.OBJLoader;
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;
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
public class AncientMod {
public static final CreativeTabs items = new TabAncientItems();
public static final CreativeTabs blocks = new TabAncientBlocks();
public static final CreativeTabs tools = new TabAncientTools();
public static final CreativeTabs wands = new TabAncientWands();
public static final CreativeTabs armor = new TabAncientArmor();
public static final CreativeTabs food = new TabAncientFood();
public static final CreativeTabs spells = new TabAncientSpells();
public static final CreativeTabs scrolls = new TabAncientScrolls();
public static int dimId = 3;
@Mod.Instance(Reference.MODID)
public static AncientMod instance;
@SidedProxy(serverSide = Reference.SERVER_PROXY_CLASS, clientSide = Reference.CLIENT_PROXY_CLASS)
public static CommonProxy proxy;
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
ModBlocks.init();
ModItems.init();
ModTools.init();
ModArmour.init();
ModDevItems.init();
ModSpecialItems.init();
DevModArmour.init();
ModFood.init();
ModSpells.Init();
ModScrolls.Init();
ModBlocks.register();
ModItems.register();
ModTools.register();
ModArmour.register();
ModDevItems.register();
ModSpecialItems.register();
DevModArmour.register();
ModFood.register();
ModSpells.register();
ModScrolls.register();
proxy.preInit();
proxy.registerRenders();
proxy.registerTileEntities();
ModEntities.registerEntity();
proxy.registerEntityRenders();
EntityRegistry.addSpawn(EntityKillereye.class, 100, 10, 20, EnumCreatureType.CREATURE, Biome.REGISTRY.getObjectById(1));
AchievementHandler.registerAchievements();
}
@EventHandler
public void init(FMLInitializationEvent event) {
proxy.init();
RecipeHandler.registerCraftingRecipes();
RecipeHandler.registerFurnaceRecipes();
ModEntities.setEntityToSpawn();
}
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
}
}
package com.triphion.ancient.proxy;
import com.triphion.ancient.AncientMod;
import com.triphion.ancient.Reference;
import com.triphion.ancient.client.entity.RenderHarog;
import com.triphion.ancient.client.entity.RenderKillereye;
import com.triphion.ancient.client.model.ModelHarog;
import com.triphion.ancient.client.model.ModelKillereye;
import com.triphion.ancient.entity.EntityHarog;
import com.triphion.ancient.entity.EntityKillereye;
import com.triphion.ancient.init.DevModArmour;
import com.triphion.ancient.init.ModArmour;
import com.triphion.ancient.init.ModBlocks;
import com.triphion.ancient.init.ModDevItems;
import com.triphion.ancient.init.ModFood;
import com.triphion.ancient.init.ModItems;
import com.triphion.ancient.init.ModScrolls;
import com.triphion.ancient.init.ModSpecialItems;
import com.triphion.ancient.init.ModSpells;
import com.triphion.ancient.init.ModTools;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.client.model.obj.OBJLoader;
import net.minecraftforge.fml.client.registry.RenderingRegistry;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class ClientProxy extends CommonProxy {
@Override
public void preInit() {
OBJLoader.INSTANCE.addDomain(Reference.MODID.toLowerCase());
RenderingRegistry.registerEntityRenderingHandler(EntityKillereye.class, new RenderKillereye(Minecraft.getMinecraft().getRenderManager(), new ModelKillereye(), 0.7F));
RenderingRegistry.registerEntityRenderingHandler(EntityHarog.class, new RenderHarog(Minecraft.getMinecraft().getRenderManager(), new ModelHarog(), 0.7F));
}
@Override
public void registerRenders() {
ModItems.registerRenders();
ModTools.registerRenders();
ModBlocks.registerRenders();
ModArmour.registerRenders();
ModDevItems.registerRenders();
ModSpecialItems.registerRenders();
DevModArmour.registerRenders();
ModFood.registerRenders();
ModSpells.registerRenders();
ModScrolls.registerRenders();
}
}
package com.triphion.ancient.entity;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.monster.EntityZombie;
import net.minecraft.world.World;
public class EntityHarog extends EntityZombie{
public EntityHarog(World worldIn) {
super(worldIn);
}
@Override
protected void initEntityAI() {
super.initEntityAI();
}
public boolean isAIEnabled(){
return true;
}
@Override
protected void applyEntityAttributes() {
super.applyEntityAttributes();
this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(20D);
this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(5D);
}
}
---- Minecraft Crash Report ----
// I just don't know what went wrong :(
Time: 9/26/17 3:59 PM
Description: Rendering entity in world
java.lang.NullPointerException: Rendering entity in world
at net.minecraft.client.renderer.entity.RenderLivingBase.canRenderName(RenderLivingBase.java:529)
at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:26)
at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:16)
at net.minecraft.client.renderer.entity.RenderLivingBase.renderName(RenderLivingBase.java:484)
at net.minecraft.client.renderer.entity.RenderLivingBase.renderName(RenderLivingBase.java:25)
at net.minecraft.client.renderer.entity.Render.doRender(Render.java:67)
at net.minecraft.client.renderer.entity.RenderLivingBase.doRender(RenderLivingBase.java:208)
at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:51)
at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:16)
at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:389)
at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:373)
at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:653)
at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1389)
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1303)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1106)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1140)
at net.minecraft.client.Minecraft.run(Minecraft.java:407)
at net.minecraft.client.main.Main.main(Main.java:118)
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 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.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
at GradleStart.main(GradleStart.java:26)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Client thread
Stacktrace:
at net.minecraft.client.renderer.entity.RenderLivingBase.canRenderName(RenderLivingBase.java:529)
at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:26)
at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:16)
at net.minecraft.client.renderer.entity.RenderLivingBase.renderName(RenderLivingBase.java:484)
at net.minecraft.client.renderer.entity.RenderLivingBase.renderName(RenderLivingBase.java:25)
at net.minecraft.client.renderer.entity.Render.doRender(Render.java:67)
at net.minecraft.client.renderer.entity.RenderLivingBase.doRender(RenderLivingBase.java:208)
at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:51)
at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:16)
-- Entity being rendered --
Details:
Entity Type: ancient:harog (com.triphion.ancient.entity.EntityHarog)
Entity ID: 6369
Entity Name: Harog
Entity's Exact location: 203.52, 71.00, 127.01
Entity's Block location: World: (203,71,127), Chunk: (at 11,4,15 in 12,7; contains blocks 192,0,112 to 207,255,127), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Entity's Momentum: 0.00, 0.00, 0.00
Entity's Passengers: []
Entity's Vehicle: ~~ERROR~~ NullPointerException: null
-- Renderer details --
Details:
Assigned renderer: com.triphion.ancient.client.entity.RenderHarog@69129d6f
Location: 0.00,0.00,0.00 - World: (0,0,0), Chunk: (at 0,0,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Rotation: 0.0
Delta: 0.7995975
Stacktrace:
at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:389)
at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:373)
at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:653)
at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1389)
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1303)
-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityPlayerSP['Player903'/1559, l='MpServer', x=203.52, y=71.00, z=127.01]]
Chunk stats: MultiplayerChunkCache: 551, 551
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options:
Level spawn location: World: (248,64,124), Chunk: (at 8,4,12 in 15,7; contains blocks 240,0,112 to 255,255,127), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 948 game time, 948 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: survival (ID 0). Hardcore: false. Cheats: false
Forced entities: 117 total; [EntitySheep['Sheep'/25, l='MpServer', x=126.50, y=64.00, z=132.50], EntitySheep['Sheep'/26, l='MpServer', x=127.50, y=64.00, z=132.50], EntitySheep['Sheep'/27, l='MpServer', x=134.49, y=65.00, z=129.73], EntitySheep['Sheep'/28, l='MpServer', x=126.50, y=64.00, z=128.50], EntitySheep['Sheep'/45, l='MpServer', x=155.50, y=64.00, z=60.50], EntitySheep['Sheep'/46, l='MpServer', x=156.50, y=64.00, z=58.50], EntitySheep['Sheep'/47, l='MpServer', x=156.50, y=64.00, z=57.50], EntitySheep['Sheep'/48, l='MpServer', x=155.50, y=64.00, z=61.50], EntitySheep['Sheep'/49, l='MpServer', x=158.50, y=64.00, z=165.50], EntitySheep['Sheep'/50, l='MpServer', x=165.17, y=64.00, z=160.85], EntitySheep['Sheep'/51, l='MpServer', x=161.50, y=64.00, z=166.50], EntitySheep['Sheep'/52, l='MpServer', x=160.50, y=64.00, z=166.50], EntitySheep['Sheep'/53, l='MpServer', x=191.46, y=70.00, z=82.27], EntitySheep['Sheep'/54, l='MpServer', x=186.22, y=67.00, z=80.05], EntitySheep['Sheep'/55, l='MpServer', x=186.50, y=66.00, z=87.50], EntitySheep['Sheep'/56, l='MpServer', x=184.50, y=66.00, z=84.50], EntitySheep['Sheep'/57, l='MpServer', x=185.08, y=71.00, z=111.17], EntitySheep['Sheep'/58, l='MpServer', x=205.18, y=67.00, z=98.51], EntitySheep['Sheep'/59, l='MpServer', x=182.76, y=71.00, z=110.36], EntitySheep['Sheep'/60, l='MpServer', x=190.42, y=71.00, z=114.27], EntitySheep['Sheep'/61, l='MpServer', x=190.50, y=79.00, z=202.50], EntitySheep['Sheep'/67, l='MpServer', x=209.63, y=71.00, z=128.28], EntitySheep['Sheep'/68, l='MpServer', x=205.18, y=70.00, z=142.15], EntityCow['Cow'/69, l='MpServer', x=216.53, y=68.00, z=116.82], EntityCow['Cow'/70, l='MpServer', x=212.85, y=71.00, z=129.15], EntityCow['Cow'/71, l='MpServer', x=216.45, y=70.00, z=130.86], EntityCow['Cow'/72, l='MpServer', x=205.38, y=70.00, z=137.20], EntitySheep['Sheep'/73, l='MpServer', x=212.86, y=91.00, z=175.55], EntitySheep['Sheep'/74, l='MpServer', x=208.50, y=96.00, z=178.50], EntitySheep['Sheep'/75, l='MpServer', x=207.50, y=95.00, z=179.50], EntitySheep['Sheep'/76, l='MpServer', x=206.50, y=94.00, z=181.50], EntityCow['Cow'/77, l='MpServer', x=213.50, y=88.00, z=171.50], EntityCow['Cow'/78, l='MpServer', x=213.50, y=89.00, z=169.50], EntityCow['Cow'/79, l='MpServer', x=212.50, y=87.00, z=172.50], EntityCow['Cow'/80, l='MpServer', x=209.77, y=95.00, z=175.82], EntitySheep['Sheep'/184, l='MpServer', x=236.50, y=80.00, z=110.71], EntitySheep['Sheep'/185, l='MpServer', x=246.27, y=81.00, z=114.51], EntitySheep['Sheep'/186, l='MpServer', x=238.50, y=80.00, z=127.21], EntitySheep['Sheep'/187, l='MpServer', x=241.55, y=79.00, z=117.45], EntityCow['Cow'/188, l='MpServer', x=237.50, y=84.00, z=95.50], EntityCow['Cow'/189, l='MpServer', x=240.50, y=85.00, z=92.50], EntityCow['Cow'/190, l='MpServer', x=240.50, y=85.00, z=93.50], EntityCow['Cow'/191, l='MpServer', x=240.50, y=85.00, z=91.50], EntitySheep['Sheep'/192, l='MpServer', x=251.50, y=89.00, z=74.50], EntitySheep['Sheep'/193, l='MpServer', x=243.17, y=89.00, z=81.65], EntitySheep['Sheep'/194, l='MpServer', x=254.55, y=88.00, z=69.45], EntitySheep['Sheep'/195, l='MpServer', x=260.36, y=88.00, z=80.23], EntitySheep['Sheep'/196, l='MpServer', x=255.95, y=79.00, z=132.45], EntitySheep['Sheep'/197, l='MpServer', x=254.47, y=79.00, z=133.55], EntitySheep['Sheep'/198, l='MpServer', x=249.50, y=79.00, z=122.78], EntitySheep['Sheep'/199, l='MpServer', x=254.50, y=81.00, z=130.50], EntitySheep['Sheep'/200, l='MpServer', x=261.50, y=83.00, z=182.50], EntitySheep['Sheep'/201, l='MpServer', x=262.50, y=83.00, z=181.50], EntitySheep['Sheep'/202, l='MpServer', x=262.50, y=83.00, z=181.50], EntitySheep['Sheep'/203, l='MpServer', x=262.61, y=85.00, z=174.79], EntitySheep['Sheep'/204, l='MpServer', x=250.50, y=80.00, z=195.50], EntitySheep['Sheep'/205, l='MpServer', x=254.49, y=80.00, z=195.81], EntitySheep['Sheep'/206, l='MpServer', x=250.50, y=79.00, z=198.50], EntitySheep['Sheep'/207, l='MpServer', x=254.18, y=78.00, z=201.21], EntitySheep['Sheep'/270, l='MpServer', x=270.26, y=81.00, z=116.49], EntitySheep['Sheep'/271, l='MpServer', x=268.55, y=80.00, z=111.50], EntityBat['Bat'/4722, l='MpServer', x=186.36, y=16.25, z=204.31], EntityBat['Bat'/4730, l='MpServer', x=154.75, y=29.72, z=198.26], EntityCreeper['Creeper'/4863, l='MpServer', x=193.50, y=40.00, z=126.50], EntityBat['Bat'/5000, l='MpServer', x=278.66, y=29.10, z=57.11], EntitySpider['Spider'/5115, l='MpServer', x=231.70, y=35.00, z=91.70], EntityCreeper['Creeper'/5124, l='MpServer', x=246.50, y=28.00, z=56.22], EntityZombie['Zombie'/5278, l='MpServer', x=195.50, y=53.00, z=125.50], EntitySquid['Squid'/5283, l='MpServer', x=146.40, y=61.00, z=151.40], EntitySquid['Squid'/5284, l='MpServer', x=148.10, y=61.73, z=153.01], EntitySquid['Squid'/5285, l='MpServer', x=149.31, y=61.92, z=152.60], EntityCreeper['Creeper'/5325, l='MpServer', x=138.50, y=48.00, z=162.50], EntitySkeleton['Skeleton'/5408, l='MpServer', x=279.50, y=54.00, z=103.50], EntityZombie['Zombie'/5419, l='MpServer', x=280.50, y=18.00, z=58.50], EntityCreeper['Creeper'/5513, l='MpServer', x=283.50, y=59.00, z=113.50], EntityZombie['Zombie'/5592, l='MpServer', x=212.50, y=28.00, z=153.50], EntitySpider['Spider'/5597, l='MpServer', x=156.50, y=32.00, z=95.50], EntitySpider['Spider'/5613, l='MpServer', x=150.50, y=31.00, z=93.50], EntitySkeleton['Skeleton'/5630, l='MpServer', x=147.50, y=23.00, z=167.50], EntityCreeper['Creeper'/5631, l='MpServer', x=143.50, y=23.00, z=169.50], EntityCreeper['Creeper'/5649, l='MpServer', x=274.50, y=16.00, z=194.50], EntitySquid['Squid'/5672, l='MpServer', x=157.40, y=61.99, z=65.57], EntitySkeleton['Skeleton'/5736, l='MpServer', x=281.50, y=60.00, z=115.50], EntityBat['Bat'/5774, l='MpServer', x=278.41, y=40.10, z=46.75], EntitySpider['Spider'/5789, l='MpServer', x=162.50, y=56.00, z=53.50], EntityZombie['Zombie'/5792, l='MpServer', x=162.50, y=56.00, z=52.50], EntityBat['Bat'/5840, l='MpServer', x=259.61, y=37.10, z=51.34], EntitySkeleton['Skeleton'/5866, l='MpServer', x=256.50, y=15.00, z=60.50], EntityZombie['Zombie'/5873, l='MpServer', x=234.50, y=17.00, z=141.50], EntityCreeper['Creeper'/5913, l='MpServer', x=138.50, y=32.00, z=188.50], EntityCreeper['Creeper'/5914, l='MpServer', x=143.15, y=32.00, z=182.59], EntityZombie['Zombie'/6043, l='MpServer', x=228.50, y=58.00, z=186.19], EntityBat['Bat'/6052, l='MpServer', x=148.75, y=34.10, z=99.75], EntityBat['Bat'/6053, l='MpServer', x=154.29, y=32.40, z=105.71], EntityBat['Bat'/6054, l='MpServer', x=142.57, y=34.61, z=97.52], EntityCreeper['Creeper'/6069, l='MpServer', x=146.50, y=22.00, z=44.50], EntityBat['Bat'/6076, l='MpServer', x=174.93, y=44.01, z=68.43], EntityBat['Bat'/6083, l='MpServer', x=276.87, y=34.76, z=107.07], EntityBat['Bat'/6091, l='MpServer', x=248.33, y=22.11, z=81.06], EntityCreeper['Creeper'/6116, l='MpServer', x=142.50, y=11.00, z=86.50], EntityItem['item.tile.mushroom'/6120, l='MpServer', x=172.26, y=26.00, z=137.13], EntitySkeleton['Skeleton'/6140, l='MpServer', x=242.50, y=15.00, z=182.50], EntitySkeleton['Skeleton'/6141, l='MpServer', x=243.50, y=15.00, z=184.50], EntityZombie['Zombie'/6180, l='MpServer', x=234.50, y=66.00, z=195.50], EntitySkeleton['Skeleton'/6181, l='MpServer', x=233.50, y=66.00, z=197.25], EntityPlayerSP['Player903'/1559, l='MpServer', x=203.52, y=71.00, z=127.01], EntityZombie['Zombie'/6295, l='MpServer', x=157.50, y=31.00, z=99.50], EntityCreeper['Creeper'/6296, l='MpServer', x=157.50, y=31.00, z=96.50], EntityWitch['Witch'/6299, l='MpServer', x=234.50, y=31.00, z=62.50], EntityCreeper['Creeper'/6354, l='MpServer', x=164.50, y=31.00, z=75.50], EntitySkeleton['Skeleton'/6361, l='MpServer', x=145.50, y=22.00, z=171.50], EntitySkeleton['Skeleton'/6362, l='MpServer', x=145.50, y=22.00, z=169.50], EntityHarog[' Harog'/6369, l='MpServer', x=203.52, y=71.00, z=127.01], EntityCreeper['Creeper'/2700, l='MpServer', x=143.50, y=23.00, z=169.50], EntityBat['Bat'/3580, l='MpServer', x=239.56, y=14.33, z=184.21], EntityZombie['Zombie'/3696, l='MpServer', x=161.70, y=33.00, z=202.70], EntityZombie['Zombie'/3697, l='MpServer', x=160.77, y=33.00, z=202.16]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:456)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2774)
at net.minecraft.client.Minecraft.run(Minecraft.java:428)
at net.minecraft.client.main.Main.main(Main.java:118)
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 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.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
at GradleStart.main(GradleStart.java:26)
-- System Details --
Details:
Minecraft Version: 1.11.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.8.0_131, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 514625552 bytes (490 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP 9.38 Powered by Forge 13.20.1.2414 5 mods loaded, 5 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA minecraft{1.11.2} [Minecraft] (minecraft.jar)
UCHIJAAAA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11.2-13.20.1.2414.jar)
UCHIJAAAA forge{13.20.1.2414} [Minecraft Forge] (forgeSrc-1.11.2-13.20.1.2414.jar)
UCHIJAAAA ancient{1.0} [Ancient Mod] (bin)
Loaded coremods (and transformers):
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13469 Compatibility Profile Context 21.19.519.2' Renderer: 'AMD Radeon R7 200 Series'
Launched Version: 1.11.2
LWJGL: 2.9.4
OpenGL: AMD Radeon R7 200 Series GL version 4.5.13469 Compatibility Profile Context 21.19.519.2, ATI Technologies Inc.
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: Yes
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: Triphion Improvised 1.11.2 BETA-1.9.6.zip
Current Language: English (US)
Profiler Position: N/A (disabled)
CPU: 6x AMD FX(tm)-6350 Six-Core Processor
package com.triphion.ancient.client.model;
import net.minecraft.client.model.ModelZombie;
public class ModelHarog extends ModelZombie{
}
package com.triphion.ancient.init;
import com.triphion.ancient.AncientMod;
import com.triphion.ancient.Reference;
import com.triphion.ancient.entity.EntityHarog;
import com.triphion.ancient.entity.EntityKillereye;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.biome.Biome;
import net.minecraftforge.fml.common.registry.EntityRegistry;
public class ModEntities {
public static void registerEntity() {
registerEntity(new ResourceLocation(Reference.MODID +":killer_eye"), EntityKillereye.class, "killer_eye", entityID, AncientMod.instance, 64, 20, true);
registerEntity(new ResourceLocation(Reference.MODID +":harog"), EntityHarog.class, "harog", entityID, AncientMod.instance, 64, 20, true);
}
public static void setEntityToSpawn() {
EntityRegistry.addSpawn(EntityKillereye.class, 100, 10, 20, EnumCreatureType.CREATURE, Biome.REGISTRY.getObjectById(1));
}
private static int entityID = 0;
public static void registerEntity(ResourceLocation registryName, Class<? extends Entity> entityClass, String entityName, int id, Object mod, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates){
EntityRegistry.registerModEntity(registryName, entityClass, entityName, entityID++, AncientMod.instance, trackingRange, updateFrequency, sendsVelocityUpdates);
}
}
package com.triphion.ancient.client.entity;
import com.triphion.ancient.Reference;
import com.triphion.ancient.client.model.ModelHarog;
import com.triphion.ancient.entity.EntityHarog;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.RenderBiped;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.client.renderer.entity.RenderZombie;
import net.minecraft.client.renderer.entity.layers.LayerBipedArmor;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.monster.EntityZombie;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class RenderHarog extends RenderLiving<EntityHarog>{
protected ResourceLocation harogTexture;
public RenderHarog(RenderManager rendermanagerIn, ModelBase modelbaseIn, float shadowsizeIn) {
super(rendermanagerIn, modelbaseIn, shadowsizeIn);
}
@Override
protected void preRenderCallback(EntityHarog entitylivingbaseIn, float partialTickTime) {
super.preRenderCallback(entitylivingbaseIn, partialTickTime);
}
private void setEntityTexture() {
harogTexture = new ResourceLocation(Reference.MODID+":textures/entity/harog/harog.png");
}
@Override
protected ResourceLocation getEntityTexture(EntityHarog entity) {
return harogTexture;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment