Non résolu Mob1.12.2
-
Re : Créer un mob basique
Bonjour je fais un mod en 1.12.2 et ai transforme ce code pour l’adapter. J’ai quelque probleme au niveau de mes textures. Mon jeu crash des que j’essaie de le faire apparaitre Voici la console[09:33:23] [main/INFO] [minecraft/GuiNewChat]: [CHAT] Object successfully summoned [09:33:23] [main/ERROR] [minecraft/RenderLivingBase]: Couldn't render entity java.lang.NullPointerException: null 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:251) ~[RenderLivingBase.class:?] at net.minecraft.client.renderer.entity.RenderLivingBase.doRender(RenderLivingBase.java:183) [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.renderEntity(RenderManager.java:390) [RenderManager.class:?] at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:374) [RenderManager.class:?] at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:655) [RenderGlobal.class:?] at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1400) [EntityRenderer.class:?] at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1312) [EntityRenderer.class:?] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1115) [EntityRenderer.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1208) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:441) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_241] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_241] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_241] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_241] 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_241] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_241] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_241] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_241] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] [09:33:24] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping server [09:33:24] [Server thread/INFO] [minecraft/MinecraftServer]: Saving players [09:33:24] [Server thread/INFO] [minecraft/MinecraftServer]: Saving worlds [09:33:24] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'New World'/overworld [09:33:24] [Server thread/INFO] [FML]: Unloading dimension 0 [09:33:25] [Server thread/INFO] [FML]: Applying holder lookups [09:33:25] [Server thread/INFO] [FML]: Holder lookups applied [09:33:26] [main/FATAL] [minecraft/Minecraft]: Reported exception thrown! net.minecraft.util.ReportedException: Rendering entity in world at net.minecraft.client.renderer.entity.RenderManager.renderEntity(RenderManager.java:432) ~[RenderManager.class:?] at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:374) ~[RenderManager.class:?] at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:655) ~[RenderGlobal.class:?] at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1400) ~[EntityRenderer.class:?] at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1312) ~[EntityRenderer.class:?] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1115) ~[EntityRenderer.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1208) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:441) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_241] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_241] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_241] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_241] 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_241] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_241] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_241] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_241] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: java.lang.NullPointerException at net.minecraft.client.renderer.entity.RenderLivingBase.canRenderName(RenderLivingBase.java:536) ~[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:491) ~[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:210) ~[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.renderEntity(RenderManager.java:390) ~[RenderManager.class:?] ... 20 more [09:33:26] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: ---- Minecraft Crash Report ---- // Who set us up the TNT? Time: 11/18/20 9:33 AM Description: Rendering entity in world java.lang.NullPointerException: Rendering entity in world at net.minecraft.client.renderer.entity.RenderLivingBase.canRenderName(RenderLivingBase.java:536) 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:491) 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:210) 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.renderEntity(RenderManager.java:390) at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:374) at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:655) at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1400) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1312) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1115) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1208) at net.minecraft.client.Minecraft.run(Minecraft.java:441) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:25) 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:536) 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:491) 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:210) 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: heaven:entitytest (com.ben.heaven.mob.passif.EntityMobTest) Entity ID: 196684 Entity Name: Test Mob Entity's Exact location: 136.50, 4.00, 784.50 Entity's Block location: World: (136,4,784), Chunk: (at 8,0,0 in 8,49; contains blocks 128,0,784 to 143,255,799), Region: (0,1; contains chunks 0,32 to 31,63, blocks 0,0,512 to 511,255,1023) Entity's Momentum: 0.00, 0.00, 0.00 Entity's Passengers: [] Entity's Vehicle: ~~ERROR~~ NullPointerException: null -- Renderer details -- Details: Assigned renderer: com.ben.heaven.renders.RenderMobHeaven@2a2f88c7 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.6999931 Stacktrace: at net.minecraft.client.renderer.entity.RenderManager.renderEntity(RenderManager.java:390) at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:374) at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:655) at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1400) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1312) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityPlayerSP['Player863'/30, l='MpServer', x=136.50, y=4.00, z=784.50]] Chunk stats: MultiplayerChunkCache: 529, 529 Level seed: 0 Level generator: ID 01 - flat, ver 0. Features enabled: false Level generator options: Level spawn location: World: (132,4,788), Chunk: (at 4,0,4 in 8,49; contains blocks 128,0,784 to 143,255,799), Region: (0,1; contains chunks 0,32 to 31,63, blocks 0,0,512 to 511,255,1023) Level time: 1103 game time, 1103 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: 42 total; [EntitySlime['Slime'/56005, l='MpServer', x=154.84, y=4.00, z=821.41], EntitySlime['Slime'/137604, l='MpServer', x=68.04, y=5.17, z=730.37], EntityPlayerSP['Player863'/30, l='MpServer', x=136.50, y=4.00, z=784.50], EntitySlime['Slime'/40968, l='MpServer', x=122.81, y=4.00, z=722.67], EntitySlime['Slime'/12169, l='MpServer', x=97.68, y=4.27, z=755.95], EntitySlime['Slime'/133641, l='MpServer', x=94.12, y=4.00, z=811.41], EntitySlime['Slime'/61005, l='MpServer', x=202.44, y=4.04, z=761.75], EntityPig['Pig'/54350, l='MpServer', x=198.33, y=4.00, z=769.72], EntityPig['Pig'/54351, l='MpServer', x=200.58, y=4.00, z=766.06], EntitySlime['Slime'/61007, l='MpServer', x=198.26, y=4.72, z=753.52], EntityMobTest['Test Mob'/196684, l='MpServer', x=136.50, y=4.00, z=784.50], EntityPig['Pig'/54352, l='MpServer', x=195.58, y=4.00, z=765.06], EntityPig['Pig'/54353, l='MpServer', x=194.49, y=4.00, z=768.72], EntitySlime['Slime'/192663, l='MpServer', x=82.11, y=4.00, z=838.26], EntitySlime['Slime'/184661, l='MpServer', x=83.73, y=4.00, z=845.06], EntitySlime['Slime'/149339, l='MpServer', x=203.27, y=5.18, z=755.19], EntitySlime['Slime'/4698, l='MpServer', x=140.28, y=4.00, z=722.40], EntitySlime['Slime'/97178, l='MpServer', x=78.92, y=4.00, z=746.79], EntitySlime['Slime'/128477, l='MpServer', x=70.90, y=4.00, z=754.87], EntitySlime['Slime'/71967, l='MpServer', x=169.06, y=4.00, z=774.54], EntitySlime['Slime'/1569, l='MpServer', x=163.54, y=4.00, z=780.84], EntitySlime['Slime'/50915, l='MpServer', x=124.48, y=4.00, z=851.73], EntityPig['Pig'/54371, l='MpServer', x=133.50, y=4.00, z=840.50], EntityPig['Pig'/54372, l='MpServer', x=133.50, y=4.00, z=844.50], EntitySheep['Sheep'/54374, l='MpServer', x=136.50, y=4.00, z=838.50], EntityPig['Pig'/54375, l='MpServer', x=130.50, y=4.00, z=843.50], EntitySlime['Slime'/66216, l='MpServer', x=106.01, y=4.00, z=828.50], EntityChicken['Chicken'/54380, l='MpServer', x=164.77, y=4.00, z=749.47], EntityChicken['Chicken'/54381, l='MpServer', x=167.50, y=4.00, z=752.50], EntityCow['Cow'/54382, l='MpServer', x=168.50, y=4.00, z=752.50], EntitySlime['Slime'/68463, l='MpServer', x=126.18, y=4.04, z=834.48], EntityCow['Cow'/54383, l='MpServer', x=165.34, y=4.00, z=748.34], EntityCow['Cow'/54384, l='MpServer', x=98.50, y=4.00, z=859.50], EntitySlime['Slime'/65136, l='MpServer', x=214.74, y=4.75, z=742.57], EntitySlime['Slime'/153074, l='MpServer', x=103.21, y=4.00, z=743.28], EntityCow['Cow'/54385, l='MpServer', x=95.50, y=4.00, z=854.50], EntityCow['Cow'/54386, l='MpServer', x=93.50, y=4.00, z=850.50], EntityCow['Cow'/54387, l='MpServer', x=92.50, y=4.00, z=851.50], EntitySlime['Slime'/140789, l='MpServer', x=90.11, y=4.34, z=810.73], EntitySlime['Slime'/132604, l='MpServer', x=103.57, y=4.00, z=836.63], EntitySlime['Slime'/25407, l='MpServer', x=108.35, y=4.28, z=837.25], EntitySlime['Slime'/169085, l='MpServer', x=68.76, y=4.00, z=742.21]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:461) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2888) at net.minecraft.client.Minecraft.run(Minecraft.java:462) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:25) -- System Details -- Details: Minecraft Version: 1.12.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_241, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 768850360 bytes (733 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.42 Powered by Forge 14.23.5.2768 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 | State | ID | Version | Source | Signature | |:--------- |:--------- |:------------ |:-------------------------------- |:--------- | | UCHIJAAAA | minecraft | 1.12.2 | minecraft.jar | None | | UCHIJAAAA | mcp | 9.42 | minecraft.jar | None | | UCHIJAAAA | FML | 8.0.99.99 | forgeSrc-1.12.2-14.23.5.2768.jar | None | | UCHIJAAAA | forge | 14.23.5.2768 | forgeSrc-1.12.2-14.23.5.2768.jar | None | | UCHIJAAAA | heaven | 1.0.0 | bin | None | Loaded coremods (and transformers): GL info: ' Vendor: 'Intel' Version: '4.5.0 - Build 25.20.100.6444' Renderer: 'Intel(R) UHD Graphics 600' Launched Version: 1.12.2 LWJGL: 2.9.4 OpenGL: Intel(R) UHD Graphics 600 GL version 4.5.0 - Build 25.20.100.6444, 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: 2x Intel(R) Celeron(R) N4000 CPU @ 1.10GHz [09:33:26] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Benoit\Desktop\forge-1.12.2-14.23.5.2768-mdk\.\crash-reports\crash-2020-11-18_09.33.26-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
j’espère que vous pourrez m’aider !
-