Jump to content

Recommended Posts

Posted (edited)

Hi, this is my first time tackling custom mobs and the game is crashing when the game has to render my custom mob.

 

Here is the crash report:

[01:18:36] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@10e51ac0[id=8b8434b7-4246-3db8-89e4-a51a52bc8fc9,name=Player882,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
	at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:79) ~[YggdrasilAuthenticationService.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:180) [YggdrasilMinecraftSessionService.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) [YggdrasilMinecraftSessionService$1.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) [YggdrasilMinecraftSessionService$1.class:?]
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) [YggdrasilMinecraftSessionService.class:?]
	at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3056) [Minecraft.class:?]
	at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:138) [SkinManager$3.class:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_131]
	at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_131]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_131]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_131]
	at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]
[01:18:38] [Server thread/INFO]: Player882 has just earned the achievement [Taking Inventory]
[01:18:38] [Client thread/INFO]: [CHAT] Player882 has just earned the achievement [Taking Inventory]
[01:18:43] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2044ms behind, skipping 40 tick(s)
[01:18:45] [Client thread/ERROR]: Couldn't render entity
java.lang.NullPointerException
	at net.minecraft.client.renderer.entity.Render.bindTexture(Render.java:130) ~[Render.class:?]
	at net.minecraft.client.renderer.entity.Render.bindEntityTexture(Render.java:123) ~[Render.class:?]
	at net.minecraft.client.renderer.entity.RenderLivingBase.renderModel(RenderLivingBase.java:249) ~[RenderLivingBase.class:?]
	at net.minecraft.client.renderer.entity.RenderLivingBase.doRender(RenderLivingBase.java:181) [RenderLivingBase.class:?]
	at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:51) [RenderLiving.class:?]
	at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:16) [RenderLiving.class:?]
	at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:389) [RenderManager.class:?]
	at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:373) [RenderManager.class:?]
	at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:653) [RenderGlobal.class:?]
	at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1389) [EntityRenderer.class:?]
	at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1303) [EntityRenderer.class:?]
	at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1106) [EntityRenderer.class:?]
	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1140) [Minecraft.class:?]
	at net.minecraft.client.Minecraft.run(Minecraft.java:407) [Minecraft.class:?]
	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_131]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_131]
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
	at GradleStart.main(GradleStart.java:26) [start/:?]
[01:18:46] [Server thread/INFO]: Stopping server
[01:18:46] [Server thread/INFO]: Saving players
[01:18:46] [Server thread/INFO]: Saving worlds
[01:18:46] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[01:18:47] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[01:18:47] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[01:18:47] [Server thread/INFO] [FML]: Unloading dimension 0
[01:18:47] [Server thread/INFO] [FML]: Unloading dimension -1
[01:18:47] [Server thread/INFO] [FML]: Unloading dimension 1
[01:18:47] [Server thread/INFO] [FML]: Applying holder lookups
[01:18:47] [Server thread/INFO] [FML]: Holder lookups applied
[01:18:48] [Client thread/FATAL]: Reported exception thrown!
net.minecraft.util.ReportedException: Rendering entity in world
	at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:431) ~[RenderManager.class:?]
	at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:373) ~[RenderManager.class:?]
	at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:653) ~[RenderGlobal.class:?]
	at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1389) ~[EntityRenderer.class:?]
	at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1303) ~[EntityRenderer.class:?]
	at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1106) ~[EntityRenderer.class:?]
	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1140) ~[Minecraft.class:?]
	at net.minecraft.client.Minecraft.run(Minecraft.java:407) [Minecraft.class:?]
	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_131]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_131]
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
	at GradleStart.main(GradleStart.java:26) [start/:?]
Caused by: java.lang.NullPointerException
	at net.minecraft.client.renderer.entity.RenderLivingBase.canRenderName(RenderLivingBase.java:529) ~[RenderLivingBase.class:?]
	at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:26) ~[RenderLiving.class:?]
	at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:16) ~[RenderLiving.class:?]
	at net.minecraft.client.renderer.entity.RenderLivingBase.renderName(RenderLivingBase.java:484) ~[RenderLivingBase.class:?]
	at net.minecraft.client.renderer.entity.RenderLivingBase.renderName(RenderLivingBase.java:25) ~[RenderLivingBase.class:?]
	at net.minecraft.client.renderer.entity.Render.doRender(Render.java:67) ~[Render.class:?]
	at net.minecraft.client.renderer.entity.RenderLivingBase.doRender(RenderLivingBase.java:208) ~[RenderLivingBase.class:?]
	at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:51) ~[RenderLiving.class:?]
	at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:16) ~[RenderLiving.class:?]
	at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:389) ~[RenderManager.class:?]
	... 20 more
[01:18:48] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: ---- Minecraft Crash Report ----
// I'm sorry, Dave.

Time: 7/10/17 1:18 AM
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: minecraft:chimera (com.ninja3659.explorationexpansion.entitites.EntityChimera)
	Entity ID: 348
	Entity Name: entity.Chimera.name
	Entity's Exact location: 242.50, 64.00, 221.50
	Entity's Block location: World: (242,64,221), Chunk: (at 2,4,13 in 15,13; contains blocks 240,0,208 to 255,255,223), 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.ninja3659.explorationexpansion.renders.RenderChimera@493c0ba8
	Location: -2.50,0.00,0.60 - World: (-3,0,0), Chunk: (at 13,0,0 in -1,0; contains blocks -16,0,0 to -1,255,15), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
	Rotation: 42.1875
	Delta: 0.1636647
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['Player882'/258, l='MpServer', x=245.00, y=64.00, z=220.90]]
	Chunk stats: MultiplayerChunkCache: 482, 482
	Level seed: 0
	Level generator: ID 00 - default, ver 1. Features enabled: false
	Level generator options: 
	Level spawn location: World: (240,64,212), Chunk: (at 0,4,4 in 15,13; contains blocks 240,0,208 to 255,255,223), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
	Level time: 1009 game time, 1009 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: 69 total; [EntityPlayerSP['Player882'/258, l='MpServer', x=245.00, y=64.00, z=220.90], EntityCreeper['Creeper'/133, l='MpServer', x=280.50, y=22.00, z=174.50], EntityChicken['Chicken'/134, l='MpServer', x=284.47, y=73.00, z=168.82], EntityChicken['Chicken'/135, l='MpServer', x=274.50, y=73.00, z=189.50], EntityChicken['Chicken'/136, l='MpServer', x=276.34, y=73.00, z=184.44], EntityChicken['Chicken'/137, l='MpServer', x=276.80, y=73.00, z=185.92], EntityBat['Bat'/138, l='MpServer', x=285.50, y=44.52, z=235.87], EntityBat['Bat'/139, l='MpServer', x=285.25, y=44.06, z=236.25], EntityZombie['Zombie'/140, l='MpServer', x=284.50, y=45.00, z=246.50], EntityCreeper['Creeper'/141, l='MpServer', x=284.47, y=44.00, z=243.36], EntityCreeper['Creeper'/142, l='MpServer', x=284.30, y=45.00, z=245.57], EntityCreeper['Creeper'/143, l='MpServer', x=273.50, y=24.00, z=260.50], EntitySquid['Squid'/145, l='MpServer', x=288.73, y=57.80, z=278.49], EntityCreeper['Creeper'/148, l='MpServer', x=293.51, y=12.00, z=150.22], EntityEnderman['Enderman'/149, l='MpServer', x=300.29, y=25.00, z=168.30], EntitySkeleton['Skeleton'/150, l='MpServer', x=300.59, y=25.00, z=168.95], EntityPig['Pig'/151, l='MpServer', x=300.23, y=74.00, z=168.30], EntitySpider['Spider'/152, l='MpServer', x=297.30, y=13.10, z=190.30], EntityZombie['Zombie'/153, l='MpServer', x=296.50, y=15.00, z=190.50], EntityCreeper['Creeper'/154, l='MpServer', x=293.50, y=15.00, z=191.50], EntitySkeleton['Skeleton'/155, l='MpServer', x=290.55, y=25.00, z=191.69], EntityPig['Pig'/156, l='MpServer', x=300.50, y=75.00, z=179.50], EntityPig['Pig'/157, l='MpServer', x=290.72, y=74.00, z=179.66], EntityPig['Pig'/158, l='MpServer', x=298.54, y=75.00, z=179.76], EntitySkeleton['Skeleton'/159, l='MpServer', x=283.70, y=35.03, z=199.23], EntityZombie['Zombie'/160, l='MpServer', x=292.28, y=23.00, z=196.52], EntitySkeleton['Skeleton'/161, l='MpServer', x=290.49, y=27.00, z=203.21], EntityCreeper['Creeper'/162, l='MpServer', x=295.51, y=18.00, z=196.21], EntitySlime['Slime'/164, l='MpServer', x=320.85, y=27.09, z=172.60], EntityCreeper['Creeper'/165, l='MpServer', x=307.46, y=39.00, z=201.82], EntityCreeper['Creeper'/166, l='MpServer', x=304.61, y=39.00, z=214.82], EntitySkeleton['Skeleton'/38, l='MpServer', x=172.77, y=52.00, z=260.53], EntitySkeleton['Skeleton'/167, l='MpServer', x=305.50, y=43.00, z=216.50], EntityCreeper['Creeper'/168, l='MpServer', x=312.58, y=47.00, z=256.19], EntityCreeper['Creeper'/178, l='MpServer', x=324.18, y=13.00, z=186.48], EntityBat['Bat'/179, l='MpServer', x=324.52, y=39.10, z=176.71], EntitySkeleton['Skeleton'/55, l='MpServer', x=189.50, y=19.00, z=244.50], EntitySkeleton['Skeleton'/56, l='MpServer', x=189.50, y=19.00, z=246.50], EntitySkeleton['Skeleton'/57, l='MpServer', x=182.85, y=47.00, z=252.46], EntitySkeleton['Skeleton'/58, l='MpServer', x=176.50, y=54.00, z=268.50], EntitySquid['Squid'/59, l='MpServer', x=192.34, y=62.52, z=258.70], EntitySquid['Squid'/64, l='MpServer', x=201.57, y=53.26, z=173.27], EntitySquid['Squid'/65, l='MpServer', x=202.96, y=46.00, z=177.43], EntitySquid['Squid'/66, l='MpServer', x=205.46, y=59.52, z=183.63], EntitySquid['Squid'/67, l='MpServer', x=211.65, y=58.65, z=181.37], EntitySquid['Squid'/68, l='MpServer', x=208.60, y=52.18, z=201.60], EntitySquid['Squid'/69, l='MpServer', x=200.40, y=48.00, z=204.60], EntitySquid['Squid'/70, l='MpServer', x=200.20, y=61.98, z=263.45], EntitySquid['Squid'/71, l='MpServer', x=207.90, y=58.75, z=260.34], EntitySquid['Squid'/72, l='MpServer', x=206.14, y=60.69, z=278.00], EntitySquid['Squid'/79, l='MpServer', x=214.08, y=55.00, z=191.60], EntitySquid['Squid'/80, l='MpServer', x=207.60, y=48.98, z=192.01], EntityZombie['Zombie'/81, l='MpServer', x=221.50, y=26.00, z=240.50], EntitySquid['Squid'/82, l='MpServer', x=202.74, y=61.69, z=270.33], EntitySquid['Squid'/83, l='MpServer', x=207.79, y=57.31, z=286.94], EntityZombie['Zombie'/90, l='MpServer', x=235.50, y=36.00, z=294.61], EntityCreeper['Creeper'/91, l='MpServer', x=236.50, y=37.00, z=293.50], EntityChimera['entity.Chimera.name'/348, l='MpServer', x=242.50, y=64.00, z=221.50], EntityZombie['Zombie'/103, l='MpServer', x=240.22, y=13.00, z=193.55], EntityBat['Bat'/104, l='MpServer', x=254.75, y=26.10, z=251.43], EntitySquid['Squid'/105, l='MpServer', x=252.31, y=61.40, z=257.36], EntitySkeleton['Skeleton'/106, l='MpServer', x=243.79, y=22.00, z=263.56], EntityBat['Bat'/107, l='MpServer', x=239.25, y=24.10, z=250.25], EntityZombie['Zombie'/116, l='MpServer', x=264.30, y=30.00, z=142.14], EntityBat['Bat'/121, l='MpServer', x=271.25, y=41.10, z=180.75], EntityCreeper['Creeper'/122, l='MpServer', x=260.44, y=28.00, z=195.80], EntityBat['Bat'/123, l='MpServer', x=257.62, y=31.06, z=199.59], EntitySkeleton['Skeleton'/124, l='MpServer', x=262.71, y=20.00, z=256.50], EntityCreeper['Creeper'/125, l='MpServer', x=271.50, y=24.00, z=264.50]]
	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 10 (amd64) version 10.0
	Java Version: 1.8.0_131, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 700527696 bytes (668 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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.2393 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.2393.jar) 
	UCHIJAAAA	forge{13.20.1.2393} [Minecraft Forge] (forgeSrc-1.11.2-13.20.1.2393.jar) 
	UCHIJAAAA	neem{1.0-alpha} [Exploration Expansion] (bin) 
	Loaded coremods (and transformers): 
	GL info: ' Vendor: 'Intel' Version: '4.4.0 - Build 21.20.16.4550' Renderer: 'Intel(R) HD Graphics 520'
	Launched Version: 1.11.2
	LWJGL: 2.9.4
	OpenGL: Intel(R) HD Graphics 520 GL version 4.4.0 - Build 21.20.16.4550, Intel
	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: 
	Current Language: English (US)
	Profiler Position: N/A (disabled)
	CPU: 4x Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
[01:18:48] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\JEHan\Desktop\Exploration Expanded\run\.\crash-reports\crash-2017-07-10_01.18.48-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

When I run this line in the Client Proxy

		RenderingRegistry.registerEntityRenderingHandler(EntityChimera.class, new RenderChimera(new ModelChimera(), .5F));

it causes the game to crash whenever the game has to render the model. But without it, the model is just a big white cube in-game. 

 

Here is my ModEntities class just in case

package com.ninja3659.explorationexpansion.init;

import com.ninja3659.explorationexpansion.ExplorationExpansion;
import com.ninja3659.explorationexpansion.entitites.EntityChimera;
import net.minecraft.client.Minecraft;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.client.registry.RenderingRegistry;
import net.minecraftforge.fml.common.registry.EntityRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;


public class ModEntities {
	
	public static void init() {
		//id of mob local to this mod
		int id =1;
		EntityRegistry.registerModEntity(new ResourceLocation("chimera"), EntityChimera.class, "Chimera", id++, ExplorationExpansion.instace, 64, 3, true, 0xF5C56B, 0xC43232);
	}
	
}

 

And my RenderChimera Class

package com.ninja3659.explorationexpansion.renders;

import javax.annotation.Nonnull;

import com.ninja3659.explorationexpansion.Reference;
import com.ninja3659.explorationexpansion.entitites.EntityChimera;

import net.minecraft.client.Minecraft;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelChicken;
import net.minecraft.client.model.ModelZombie;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLeashKnot;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.gen.ChunkProviderSettings.Factory;
import net.minecraftforge.fml.client.registry.IRenderFactory;

public class RenderChimera extends RenderLiving{
	
	protected ResourceLocation chimeraTextures;
	
	public RenderChimera(ModelBase model, float shadowsize) {
		super(Minecraft.getMinecraft().getRenderManager(), model, shadowsize);
		setEntityTexture();
	}
	
	protected void setEntityTexture() {
		chimeraTextures = new ResourceLocation(Reference.MOD_ID+"textures/entity/chimera/chimera.png");
	}
	
	protected ResourceLocation func_180572_a(EntityChimera entity) {
		return chimeraTextures;
	}
	
	protected ResourceLocation getEntityTexture(Entity entity) {
		return this.func_180572_a((EntityChimera)entity);
	}
}	

 

Edited by GooberGunter
Posted (edited)

It looks like the RenderManager instance was null when you created the RenderChimera instance, probably because you did this too early.

 

RenderingRegistry.registerEntityRenderingHandler(Class<? extends Entity>, Render<? extends Entity>) is deprecated, use RenderingRegistry.registerEntityRenderingHandler(Class<T>, IRenderFactory<? super T>) in preInit instead.

 

The IRenderFactory#createRenderFor method will be called with the RenderManager instance and needs to create and return your Render instance. You can use a lambda or constructor method reference to implement IRenderFactory.

 

RenderLiving is a generic type, you need to specify the type argument.

 

Always annotate override methods with @Override so you get a compilation error if they don't actually override a super method. You should use your IDE to auto-generate override methods with the correct signature and annotation.

 

You're creating a ResourceLocation with minecraft as the domain and your mod ID and texture path as the path, which is incorrect. Either use the ResourceLocation(String, String) constructor or separate the domain and path with a colon.

Edited by Choonster
  • Like 1

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted (edited)

Thanks so much for the help, it doesn't crash anymore, but now the model is invisible:

 

current entityregistry:

public class ModEntities {
	
	public static void init() {
		//id of mob local to this mod
		int entityID = 1;
		EntityRegistry.registerModEntity(new ResourceLocation("neem:chimera"), EntityChimera.class, "Chimera", ++entityID, ExplorationExpansion.instace, 64, 3, true, 0xF5C56B, 0xC43232);
	}
	
}

 

updated RenderRegistry:

RenderingRegistry.registerEntityRenderingHandler(EntityChimera.class, new IRenderFactory<EntityChimera>() {

			@Override
			public Render<? super EntityChimera> createRenderFor(RenderManager manager) {
				return new RenderChimera(manager);
			}
		
		
		});

 

It looks like the compiler is still treating the chimera as a minecraft entity instead of an entity in my mod, how do I change this?

I know this is the last thing you talked about in your post, but I don't know exactly where in the code, you're talking about.

Edited by GooberGunter
Posted

When are you calling these methods? They should both be called in preInit.

 

13 hours ago, GooberGunter said:

It looks like the compiler is still treating the chimera as a minecraft entity instead of an entity in my mod, how do I change this?

I know this is the last thing you talked about in your post, but I don't know exactly where in the code, you're talking about.

 

Instead of using new ResourceLocation("<modid>" + "<texture_path>"), use new ResourceLocation("<modid>" + ":" + "<texture_path>") or new ResourceLocation("<modid>", "<texture_path>").

  • Like 1

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted (edited)

I am calling both methods in the pre-init. First the entity registry and then the rendering registry through the proxy, like so:

@EventHandler
	public void preInit(FMLPreInitializationEvent event) {
		Utils.getLogger().info("Pre Initialize");
		ModItems.init();
		ModTools.init();
		ModBlocks.init();
		ModItems.register();
		ModTools.regeister();
		ModBlocks.register();
		ModEntities.init();
		proxy.registerRenders();
	}

 

I don't see any error in the prompt about the model, it's just invisible

Edit: Does forge not render the model of an entity if it doesn't have a texture.

EDIT: The problem WAS the texture. I was under the impression that if the texture can't be found, the entity renders as white.

Edited by GooberGunter

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.