Jump to content

1.12.2 | Rendering a custom armour model


Daring Do

Recommended Posts

Gonna say this right here, right now, I have no idea what the fuck I'm doing. No matter what method I use, whether it be Brandon's (Draconic Evo guy), the Twilight Forest group's, CJMinecraft's, Subaraki's, Champion Ash5357's, or the Construct Armory guy's, it either ends in the game crashing before it begins, or in the model just not showing up, most of the time, the latter.

 

This is the code I'm currently working with, but hey, if you know a better method, please, do tell:

https://github.com/CammiePone/Voidaic-Arcania/tree/master/src/main/java/com/camellias/voidaicarcania/items/armour

Gne9eza.png

 

"Be patient with me, because I'm an absolute moron half the time."

Link to comment
Share on other sites

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

31 minutes ago, Cadiboo said:

Well... I got a new result. Pressing F5 causes a new crash (I'm following Mekanism's example).

 

Spoiler

---- Minecraft Crash Report ----
// Surprise! Haha. Well, this is awkward.

Time: 7/23/18 9:21 AM
Description: Rendering entity in world

java.lang.ExceptionInInitializerError
    at com.camellias.voidaicarcania.items.armour.ArmourMythril.getArmorModel(ArmourMythril.java:34)
    at net.minecraftforge.client.ForgeHooksClient.getArmorModel(ForgeHooksClient.java:218)
    at net.minecraft.client.renderer.entity.layers.LayerBipedArmor.getArmorModelHook(LayerBipedArmor.java:58)
    at net.minecraft.client.renderer.entity.layers.LayerBipedArmor.getArmorModelHook(LayerBipedArmor.java:9)
    at net.minecraft.client.renderer.entity.layers.LayerArmorBase.renderArmorLayer(LayerArmorBase.java:61)
    at net.minecraft.client.renderer.entity.layers.LayerArmorBase.doRenderLayer(LayerArmorBase.java:39)
    at net.minecraft.client.renderer.entity.RenderLivingBase.renderLayers(RenderLivingBase.java:459)
    at net.minecraft.client.renderer.entity.RenderLivingBase.doRender(RenderLivingBase.java:194)
    at net.minecraft.client.renderer.entity.RenderPlayer.doRender(RenderPlayer.java:75)
    at net.minecraft.client.renderer.entity.RenderPlayer.doRender(RenderPlayer.java:28)
    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:1398)
    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:1207)
    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(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:25)
Caused by: java.lang.NullPointerException
    at com.camellias.voidaicarcania.items.armour.models.ModelMythrilArmour.<init>(ModelMythrilArmour.java:86)
    at com.camellias.voidaicarcania.items.armour.models.ModelMythrilArmour.<clinit>(ModelMythrilArmour.java:9)
    ... 31 more


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

-- Head --
Thread: Client thread
Stacktrace:
    at com.camellias.voidaicarcania.items.armour.ArmourMythril.getArmorModel(ArmourMythril.java:34)
    at net.minecraftforge.client.ForgeHooksClient.getArmorModel(ForgeHooksClient.java:218)
    at net.minecraft.client.renderer.entity.layers.LayerBipedArmor.getArmorModelHook(LayerBipedArmor.java:58)
    at net.minecraft.client.renderer.entity.layers.LayerBipedArmor.getArmorModelHook(LayerBipedArmor.java:9)
    at net.minecraft.client.renderer.entity.layers.LayerArmorBase.renderArmorLayer(LayerArmorBase.java:61)
    at net.minecraft.client.renderer.entity.layers.LayerArmorBase.doRenderLayer(LayerArmorBase.java:39)
    at net.minecraft.client.renderer.entity.RenderLivingBase.renderLayers(RenderLivingBase.java:459)
    at net.minecraft.client.renderer.entity.RenderLivingBase.doRender(RenderLivingBase.java:194)
    at net.minecraft.client.renderer.entity.RenderPlayer.doRender(RenderPlayer.java:75)
    at net.minecraft.client.renderer.entity.RenderPlayer.doRender(RenderPlayer.java:28)

-- Entity being rendered --
Details:
    Entity Type: null (net.minecraft.client.entity.EntityPlayerSP)
    Entity ID: 415
    Entity Name: Player161
    Entity's Exact location: -63.50, 66.00, 252.22
    Entity's Block location: World: (-64,66,252), Chunk: (at 0,4,12 in -4,15; contains blocks -64,0,240 to -49,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    Entity's Momentum: 0.00, -0.08, 0.00
    Entity's Passengers: []
    Entity's Vehicle: ~~ERROR~~ NullPointerException: null

-- Renderer details --
Details:
    Assigned renderer: net.minecraft.client.renderer.entity.RenderPlayer@836d92
    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: -265.94998
    Delta: 0.8199904
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:1398)
    at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1312)

-- Affected level --
Details:
    Level name: MpServer
    All players: 1 total; [EntityPlayerSP['Player161'/415, l='MpServer', x=-63.50, y=66.00, z=252.22]]
    Chunk stats: MultiplayerChunkCache: 552, 552
    Level seed: 0
    Level generator: ID 00 - default, ver 1. Features enabled: false
    Level generator options: 
    Level spawn location: World: (-68,64,252), Chunk: (at 12,4,12 in -5,15; contains blocks -80,0,240 to -65,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    Level time: 1146 game time, 1146 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: 72 total; [EntitySheep['Sheep'/256, l='MpServer', x=-56.50, y=76.00, z=305.50], EntitySheep['Sheep'/257, l='MpServer', x=-57.50, y=75.00, z=307.50], EntitySheep['Sheep'/258, l='MpServer', x=-50.79, y=75.00, z=307.60], EntityBat['Bat'/259, l='MpServer', x=-60.21, y=25.32, z=324.63], EntityEnderman['Enderman'/262, l='MpServer', x=-43.50, y=13.00, z=172.50], EntitySheep['Sheep'/263, l='MpServer', x=-37.73, y=68.00, z=247.49], EntityCreeper['Creeper'/264, l='MpServer', x=-38.50, y=27.00, z=282.50], EntityCreeper['Creeper'/280, l='MpServer', x=-22.20, y=18.00, z=222.48], EntitySkeleton['Skeleton'/281, l='MpServer', x=-19.50, y=36.00, z=243.50], EntityCreeper['Creeper'/286, l='MpServer', x=-9.50, y=39.00, z=179.50], EntitySkeleton['Skeleton'/287, l='MpServer', x=-8.50, y=31.00, z=235.50], EntityZombie['Zombie'/288, l='MpServer', x=-7.50, y=46.00, z=231.50], EntityBat['Bat'/289, l='MpServer', x=5.83, y=21.10, z=273.61], EntityPlayerSP['Player161'/415, l='MpServer', x=-63.50, y=66.00, z=252.22], EntityZombie['Zombie'/295, l='MpServer', x=5.50, y=51.00, z=204.50], EntityCreeper['Creeper'/296, l='MpServer', x=13.50, y=51.00, z=199.50], EntitySheep['Sheep'/297, l='MpServer', x=11.50, y=63.00, z=210.50], EntitySheep['Sheep'/298, l='MpServer', x=9.50, y=63.00, z=210.50], EntitySheep['Sheep'/300, l='MpServer', x=14.73, y=69.00, z=215.51], EntityZombie['Zombie'/301, l='MpServer', x=4.50, y=28.00, z=271.50], EntityBat['Bat'/302, l='MpServer', x=8.39, y=18.10, z=256.75], EntityBat['Bat'/303, l='MpServer', x=10.52, y=19.10, z=257.55], EntityBat['Bat'/304, l='MpServer', x=10.25, y=19.10, z=257.57], EntityBat['Bat'/305, l='MpServer', x=-1.78, y=20.93, z=270.65], EntityCreeper['Creeper'/306, l='MpServer', x=1.93, y=20.00, z=273.66], EntityCreeper['Creeper'/307, l='MpServer', x=-0.50, y=20.00, z=269.72], EntityCreeper['Creeper'/308, l='MpServer', x=5.50, y=19.00, z=280.50], EntityCreeper['Creeper'/309, l='MpServer', x=3.50, y=19.00, z=276.66], EntitySkeleton['Skeleton'/310, l='MpServer', x=3.50, y=19.00, z=282.50], EntityBat['Bat'/311, l='MpServer', x=5.36, y=26.22, z=266.09], EntityBat['Bat'/192, l='MpServer', x=-136.43, y=46.03, z=224.67], EntityBat['Bat'/199, l='MpServer', x=-124.21, y=52.27, z=284.22], EntityBat['Bat'/200, l='MpServer', x=-123.39, y=53.13, z=284.37], EntityCreeper['Creeper'/201, l='MpServer', x=-136.81, y=21.00, z=303.59], EntitySheep['Sheep'/207, l='MpServer', x=-113.21, y=70.00, z=201.50], EntityWitch['Witch'/208, l='MpServer', x=-113.50, y=48.21, z=283.85], EntityCreeper['Creeper'/209, l='MpServer', x=-122.50, y=51.00, z=287.11], EntityCreeper['Creeper'/210, l='MpServer', x=-121.50, y=53.00, z=285.50], EntitySkeleton['Skeleton'/211, l='MpServer', x=-124.50, y=24.00, z=297.50], EntityZombie['Zombie'/212, l='MpServer', x=-118.50, y=24.00, z=316.50], EntityZombie['Zombie'/213, l='MpServer', x=-120.50, y=24.00, z=315.50], EntityZombieVillager['Zombie Villager'/214, l='MpServer', x=-126.77, y=29.00, z=318.51], EntityParrot['Parrot'/215, l='MpServer', x=-113.72, y=65.00, z=309.59], EntityZombieVillager['Zombie Villager'/216, l='MpServer', x=-122.30, y=24.39, z=328.30], EntitySheep['Sheep'/221, l='MpServer', x=-108.33, y=71.00, z=201.48], EntitySheep['Sheep'/222, l='MpServer', x=-99.52, y=72.00, z=204.23], EntityCreeper['Creeper'/223, l='MpServer', x=-103.30, y=43.19, z=289.70], EntitySkeleton['Skeleton'/224, l='MpServer', x=-101.50, y=56.00, z=317.50], EntitySkeleton['Skeleton'/225, l='MpServer', x=-96.29, y=21.00, z=321.50], EntitySkeleton['Skeleton'/226, l='MpServer', x=-96.70, y=55.00, z=323.49], EntityZombie['Zombie'/229, l='MpServer', x=-94.20, y=13.00, z=201.49], EntitySkeleton['Skeleton'/230, l='MpServer', x=-89.60, y=49.00, z=203.50], EntitySkeleton['Skeleton'/231, l='MpServer', x=-92.55, y=48.00, z=206.60], EntitySpider['Spider'/232, l='MpServer', x=-90.05, y=48.00, z=205.84], EntityWitch['Witch'/233, l='MpServer', x=-94.50, y=52.00, z=193.50], EntitySkeleton['Skeleton'/234, l='MpServer', x=-95.50, y=20.00, z=322.50], EntitySheep['Sheep'/238, l='MpServer', x=-64.50, y=76.00, z=174.50], EntitySheep['Sheep'/239, l='MpServer', x=-72.28, y=76.00, z=178.48], EntitySheep['Sheep'/240, l='MpServer', x=-78.17, y=73.00, z=175.67], EntityBat['Bat'/243, l='MpServer', x=-56.89, y=54.33, z=181.54], EntitySheep['Sheep'/244, l='MpServer', x=-63.50, y=76.00, z=173.50], EntityCreeper['Creeper'/245, l='MpServer', x=-54.50, y=53.00, z=179.50], EntityZombieVillager['Zombie Villager'/246, l='MpServer', x=-54.30, y=55.00, z=204.96], EntitySkeleton['Skeleton'/247, l='MpServer', x=-57.23, y=56.00, z=202.50], EntityBat['Bat'/248, l='MpServer', x=-54.61, y=40.02, z=210.70], EntitySpider['Spider'/249, l='MpServer', x=-61.70, y=58.00, z=213.12], EntitySkeleton['Skeleton'/250, l='MpServer', x=-63.49, y=56.00, z=208.27], EntitySkeleton['Skeleton'/251, l='MpServer', x=-70.59, y=55.00, z=225.55], EntitySheep['Sheep'/252, l='MpServer', x=-57.53, y=65.00, z=254.54], EntitySheep['Sheep'/253, l='MpServer', x=-51.50, y=65.00, z=250.50], EntitySpider['Spider'/254, l='MpServer', x=-51.50, y=23.00, z=258.50], EntitySheep['Sheep'/255, l='MpServer', x=-52.58, y=74.00, z=312.90]]
    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:2886)
    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(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:25)

-- System Details --
Details:
    Minecraft Version: 1.12.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_152, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 2687697464 bytes (2563 MB) / 3186360320 bytes (3038 MB) up to 4260102144 bytes (4062 MB)
    JVM Flags: 3 total; -Xincgc -Xmx4G -Xms3G
    IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
    FML: MCP 9.42 Powered by Forge 14.23.3.2678 9 mods loaded, 9 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.3.2678.jar | None      |
    | UCHIJAAAA | forge          | 14.23.3.2678 | forgeSrc-1.12.2-14.23.3.2678.jar | None      |
    | UCHIJAAAA | voidaicarcania | 0.3          | bin                              | None      |
    | UCHIJAAAA | baubles        | 1.5.2        | Baubles-1.12-1.5.2.jar           | None      |
    | UCHIJAAAA | thaumcraft     | 6.1.BETA17   | Thaumcraft-1.12.2-6.1.BETA17.jar | None      |
    | UCHIJAAAA | jei            | 4.11.0.204   | jei_1.12.2-4.11.0.204.jar        | None      |
    | UCHIJAAAA | xray           | 1.4.0        | xray-1.12.2-1.5.0.jar            | None      |

    Loaded coremods (and transformers): 
    GL info: ' Vendor: 'Intel' Version: '4.4.0 - Build 20.19.15.4463' Renderer: 'Intel(R) HD Graphics 5500'
    Launched Version: 1.12.2
    LWJGL: 2.9.4
    OpenGL: Intel(R) HD Graphics 5500 GL version 4.4.0 - Build 20.19.15.4463, 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) i5-5200U CPU @ 2.20GHz

 

Edit: Never mind, I loaded a new world, and it works. Mekanism, you are my lord and savior! (and thank you, Cadiboo)

Edited by Daring Do
  • Like 2

Gne9eza.png

 

"Be patient with me, because I'm an absolute moron half the time."

Link to comment
Share on other sites

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Yesterday I buy a minecraft server to play with my friends you know... One of my friends send me the list of mods to add and then i start to dowload them, when i add them to the server it start crashing but i don't know about this things because it's my first time buying a minecraft server This is the error: https://paste.ee/p/sJf7B
    • Discovering that a trusted colleague had accessed my Bitcoin account and transferred $30,000 worth of bitcoins was a devastating blow. It shattered the trust I had placed in them and left me feeling vulnerable and betrayed. However, in the face of adversity, I turned to MUYERN TRUST HACKER for assistance in reclaiming control over my finances and holding the perpetrators accountable for their actions. One of the standout features of MUYERN TRUST HACKER was its ability to provide real-time alerts and notifications, keeping me informed every step of the way. With the support of MUYERN TRUST HACKER, I was able to gather irrefutable evidence of the perpetrator's actions and hold them accountable for their crimes. Armed with the information provided by the platform, I pursued legal recourse and ensured that justice was served. The perpetrator faced severe consequences for their actions, including legal penalties and financial restitution. Beyond its role in facilitating the recovery process, MUYERN TRUST HACKER provided me with a sense of empowerment and resilience in the face of adversity. While the experience was undoubtedly challenging, it ultimately served as a testament to the importance of vigilance and the power of technology in safeguarding our digital assets. Thanks to MUYERN TRUST HACKER, I emerged stronger and more resilient, ready to face whatever challenges the future may hold. Mail; muyerntrusted[At] mail-me .c o m
    • Discovering that a trusted colleague had accessed my Bitcoin account and transferred $30,000 worth of bitcoins was a devastating blow. It shattered the trust I had placed in them and left me feeling vulnerable and betrayed. However, in the face of adversity, I turned to MUYERN TRUST HACKER web [ ht tps:// muyerntrusthack.solutions/ ] for assistance in reclaiming control over my finances and holding the perpetrators accountable for their actions. One of the standout features of MUYERN TRUST HACKER was its ability to provide real-time alerts and notifications, keeping me informed every step of the way. With the support of MUYERN TRUST HACKER, I was able to gather irrefutable evidence of the perpetrator's actions and hold them accountable for their crimes. Armed with the information provided by the platform, I pursued legal recourse and ensured that justice was served. The perpetrator faced severe consequences for their actions, including legal penalties and financial restitution. Beyond its role in facilitating the recovery process, MUYERN TRUST HACKER provided me with a sense of empowerment and resilience in the face of adversity. While the experience was undoubtedly challenging, it ultimately served as a testament to the importance of vigilance and the power of technology in safeguarding our digital assets. Thanks to MUYERN TRUST HACKER, I emerged stronger and more resilient, ready to face whatever challenges the future may hold. Mail; muyerntrusted[At] mail-me .c o m  
    • Do you have still this problem? (I have it too so I want to know if you did something with it)  
  • Topics

×
×
  • Create New...

Important Information

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