Jump to content

[1.8] Custom Item Crafting Recipe Crashing


conqueror224

Recommended Posts

I've been having an issue with trying to create a custom recipe using items that I created. I have made 1 block and 1 item. Neither one of them can be used in a recipe as a component or Minecraft won't even load. Now if I make either item the item produced by the recipe then Minecraft will load but crash once the recipe is put into the crafting bench. The best I've come up with is that it is some sort of rendering issue from the crash reports and error messages. I can't find any information on anyone else having this issue most guides only talk about making a crafting recipe with existing items. I have no clue what code would be relevant because I don't understand the nature of the issue.

 

This is the line that creates the recipe. If I change my mod block to anything in Minecraft already, it works.

GameRegistry.addRecipe(new ItemStack(BlockHandler.exchanger), "##", "##", '#', Blocks.cobblestone);

 

Here is the error message when I tried to craft my mod block using 4 pieces of cobblestone:

net.minecraft.util.ReportedException: Rendering item
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1164) ~[EntityRenderer.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1114) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:376) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
Caused by: java.lang.NullPointerException
at net.minecraft.item.ItemStack.getMetadata(ItemStack.java:280) ~[itemStack.class:?]
at net.minecraft.client.renderer.ItemModelMesher.getMetadata(ItemModelMesher.java:70) ~[itemModelMesher.class:?]
at net.minecraft.client.renderer.ItemModelMesher.getItemModel(ItemModelMesher.java:43) ~[itemModelMesher.class:?]
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:363) ~[RenderItem.class:?]
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:414) ~[RenderItem.class:?]
at net.minecraft.client.gui.inventory.GuiContainer.drawSlot(GuiContainer.java:293) ~[GuiContainer.class:?]
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:116) ~[GuiContainer.class:?]
at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:462) ~[ForgeHooksClient.class:?]
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1134) ~[EntityRenderer.class:?]
... 11 more
[00:19:03] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:663]: ---- Minecraft Crash Report ----
// Why did you do that?

Time: 6/26/15 12:19 AM
Description: Rendering item

java.lang.NullPointerException: Rendering item
at net.minecraft.item.ItemStack.getMetadata(ItemStack.java:280)
at net.minecraft.client.renderer.ItemModelMesher.getMetadata(ItemModelMesher.java:70)
at net.minecraft.client.renderer.ItemModelMesher.getItemModel(ItemModelMesher.java:43)
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:363)
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:414)
at net.minecraft.client.gui.inventory.GuiContainer.drawSlot(GuiContainer.java:293)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:116)
at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:462)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1134)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1114)
at net.minecraft.client.Minecraft.run(Minecraft.java:376)
at net.minecraft.client.main.Main.main(Main.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)


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

-- Head --
Stacktrace:
at net.minecraft.item.ItemStack.getMetadata(ItemStack.java:280)
at net.minecraft.client.renderer.ItemModelMesher.getMetadata(ItemModelMesher.java:70)
at net.minecraft.client.renderer.ItemModelMesher.getItemModel(ItemModelMesher.java:43)
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:363)

-- Item being rendered --
Details:
Item Type: null
Item Aux: ~~ERROR~~ NullPointerException: null
Item NBT: null
Item Foil: ~~ERROR~~ NullPointerException: null
Stacktrace:
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:414)
at net.minecraft.client.gui.inventory.GuiContainer.drawSlot(GuiContainer.java:293)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:116)
at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:462)

-- Screen render details --
Details:
Screen name: net.minecraft.client.gui.inventory.GuiCrafting
Mouse location: Scaled: (158, 94). Absolute: (317, 290)
Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityPlayerSP['Player378'/379, l='MpServer', x=200.04, y=71.00, z=287.30]]
Chunk stats: MultiplayerChunkCache: 289, 289
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options: 
Level spawn location: 209.00,64.00,294.00 - World: (209,64,294), Chunk: (at 1,4,6 in 13,18; contains blocks 208,0,288 to 223,255,303), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 17326 game time, 3608 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: 100 total; [EntitySheep['Sheep'/259, l='MpServer', x=282.03, y=68.00, z=219.84], EntitySheep['Sheep'/261, l='MpServer', x=275.53, y=66.00, z=263.34], EntityCreeper['Creeper'/264, l='MpServer', x=273.94, y=35.00, z=288.34], EntitySheep['Sheep'/268, l='MpServer', x=277.72, y=75.00, z=341.19], EntitySheep['Sheep'/270, l='MpServer', x=275.44, y=75.00, z=366.34], EntityZombie['Zombie'/59, l='MpServer', x=125.56, y=38.00, z=250.53], EntitySheep['Sheep'/61, l='MpServer', x=126.81, y=73.00, z=240.09], EntityBat['Bat'/62, l='MpServer', x=137.76, y=25.09, z=278.65], EntitySheep['Sheep'/64, l='MpServer', x=127.50, y=66.00, z=259.81], EntityCreeper['Creeper'/65, l='MpServer', x=119.91, y=50.00, z=286.56], EntityChicken['Chicken'/69, l='MpServer', x=123.44, y=64.00, z=287.63], EntityChicken['Chicken'/72, l='MpServer', x=125.47, y=64.00, z=303.66], EntityChicken['Chicken'/73, l='MpServer', x=126.56, y=64.00, z=303.56], EntityChicken['Chicken'/75, l='MpServer', x=121.59, y=64.00, z=309.28], EntityChicken['Chicken'/76, l='MpServer', x=122.63, y=64.00, z=304.53], EntityBat['Bat'/77, l='MpServer', x=128.48, y=14.88, z=361.70], EntityChicken['Chicken'/81, l='MpServer', x=131.38, y=67.00, z=356.59], EntityZombie['Zombie'/84, l='MpServer', x=132.16, y=27.00, z=213.69], EntityZombie['Zombie'/85, l='MpServer', x=140.63, y=34.00, z=237.09], EntitySheep['Sheep'/86, l='MpServer', x=136.13, y=74.00, z=239.00], EntitySheep['Sheep'/87, l='MpServer', x=133.00, y=74.00, z=239.06], EntityZombie['Zombie'/88, l='MpServer', x=129.06, y=29.00, z=249.44], EntitySheep['Sheep'/89, l='MpServer', x=139.41, y=74.00, z=251.00], EntitySheep['Sheep'/90, l='MpServer', x=137.44, y=74.00, z=251.06], EntitySheep['Sheep'/91, l='MpServer', x=133.38, y=74.00, z=249.19], EntityBat['Bat'/92, l='MpServer', x=129.63, y=31.10, z=259.75], EntitySkeleton['Skeleton'/93, l='MpServer', x=132.03, y=37.00, z=262.41], EntitySheep['Sheep'/94, l='MpServer', x=140.53, y=73.00, z=267.31], EntitySheep['Sheep'/95, l='MpServer', x=136.09, y=73.00, z=264.03], EntityBat['Bat'/96, l='MpServer', x=135.43, y=21.56, z=275.25], EntityBat['Bat'/97, l='MpServer', x=142.50, y=25.10, z=278.25], EntityChicken['Chicken'/98, l='MpServer', x=136.59, y=70.00, z=285.00], EntityBat['Bat'/99, l='MpServer', x=142.75, y=17.10, z=303.25], EntityChicken['Chicken'/100, l='MpServer', x=135.28, y=64.00, z=303.44], EntityBat['Bat'/101, l='MpServer', x=142.75, y=16.10, z=304.75], EntitySkeleton['Skeleton'/102, l='MpServer', x=143.50, y=18.00, z=304.84], EntityBat['Bat'/103, l='MpServer', x=138.43, y=31.02, z=319.29], EntityChicken['Chicken'/106, l='MpServer', x=134.38, y=63.00, z=333.47], EntityChicken['Chicken'/107, l='MpServer', x=128.44, y=64.00, z=322.38], EntityCreeper['Creeper'/108, l='MpServer', x=134.41, y=50.00, z=355.97], EntitySkeleton['Skeleton'/122, l='MpServer', x=153.84, y=15.00, z=287.72], EntityCreeper['Creeper'/123, l='MpServer', x=154.00, y=14.00, z=297.59], EntityPlayerSP['Player378'/379, l='MpServer', x=200.04, y=71.00, z=287.30], EntityBat['Bat'/124, l='MpServer', x=158.25, y=22.10, z=295.53], EntityBat['Bat'/125, l='MpServer', x=151.53, y=31.10, z=295.69], EntityZombie['Zombie'/126, l='MpServer', x=151.97, y=16.00, z=290.38], EntitySquid['Squid'/127, l='MpServer', x=155.50, y=61.00, z=326.47], EntitySquid['Squid'/128, l='MpServer', x=154.25, y=61.00, z=325.47], EntityCreeper['Creeper'/129, l='MpServer', x=147.13, y=18.00, z=365.75], EntityCow['Cow'/130, l='MpServer', x=157.97, y=73.00, z=354.88], EntityCow['Cow'/131, l='MpServer', x=158.53, y=72.00, z=356.75], EntitySheep['Sheep'/139, l='MpServer', x=172.59, y=67.00, z=206.44], EntityCreeper['Creeper'/140, l='MpServer', x=163.59, y=28.00, z=259.09], EntitySheep['Sheep'/141, l='MpServer', x=170.03, y=64.00, z=266.97], EntityBat['Bat'/142, l='MpServer', x=163.25, y=34.83, z=294.47], EntityCreeper['Creeper'/143, l='MpServer', x=169.50, y=31.00, z=291.50], EntityBat['Bat'/144, l='MpServer', x=167.63, y=23.55, z=292.26], EntitySquid['Squid'/145, l='MpServer', x=161.50, y=61.31, z=334.50], EntityZombie['Zombie'/146, l='MpServer', x=175.13, y=58.00, z=352.38], EntityZombie['Zombie'/147, l='MpServer', x=164.66, y=58.00, z=357.03], EntityCreeper['Creeper'/148, l='MpServer', x=164.63, y=57.00, z=361.47], EntitySheep['Sheep'/149, l='MpServer', x=174.25, y=69.00, z=367.56], EntitySkeleton['Skeleton'/173, l='MpServer', x=192.06, y=27.00, z=208.50], EntityCreeper['Creeper'/174, l='MpServer', x=186.38, y=57.00, z=345.97], EntitySheep['Sheep'/175, l='MpServer', x=187.06, y=82.00, z=348.06], EntitySheep['Sheep'/176, l='MpServer', x=180.63, y=81.00, z=352.53], EntitySheep['Sheep'/177, l='MpServer', x=179.44, y=82.00, z=357.03], EntityCow['Cow'/191, l='MpServer', x=211.10, y=63.00, z=268.41], EntityCow['Cow'/192, l='MpServer', x=200.41, y=69.00, z=270.19], EntitySheep['Sheep'/193, l='MpServer', x=191.48, y=69.55, z=290.63], EntityCreeper['Creeper'/194, l='MpServer', x=201.94, y=47.00, z=362.47], EntitySheep['Sheep'/195, l='MpServer', x=192.63, y=86.00, z=366.53], EntitySkeleton['Skeleton'/206, l='MpServer', x=216.53, y=12.00, z=224.88], EntityCreeper['Creeper'/207, l='MpServer', x=216.56, y=13.00, z=247.00], EntityCreeper['Creeper'/208, l='MpServer', x=221.72, y=14.00, z=262.47], EntitySheep['Sheep'/209, l='MpServer', x=220.50, y=63.00, z=265.50], EntitySheep['Sheep'/210, l='MpServer', x=211.50, y=63.00, z=293.53], EntitySheep['Sheep'/224, l='MpServer', x=230.75, y=65.00, z=228.44], EntitySheep['Sheep'/225, l='MpServer', x=234.53, y=64.00, z=224.63], EntityCreeper['Creeper'/226, l='MpServer', x=224.28, y=10.19, z=245.28], EntityZombie['Zombie'/227, l='MpServer', x=228.53, y=15.00, z=243.94], EntitySheep['Sheep'/228, l='MpServer', x=231.91, y=60.00, z=276.06], EntityZombie['Zombie'/229, l='MpServer', x=229.97, y=53.00, z=285.56], EntityCow['Cow'/230, l='MpServer', x=239.03, y=64.00, z=291.88], EntityCow['Cow'/231, l='MpServer', x=219.95, y=63.00, z=287.27], EntitySheep['Sheep'/232, l='MpServer', x=234.41, y=65.00, z=304.66], EntitySheep['Sheep'/237, l='MpServer', x=242.22, y=64.00, z=212.69], EntitySheep['Sheep'/238, l='MpServer', x=249.47, y=65.00, z=220.50], EntitySheep['Sheep'/239, l='MpServer', x=243.06, y=64.00, z=217.09], EntityZombie['Zombie'/240, l='MpServer', x=240.53, y=17.00, z=252.03], EntityZombie['Zombie'/241, l='MpServer', x=240.91, y=35.00, z=284.63], EntitySheep['Sheep'/242, l='MpServer', x=241.06, y=65.00, z=303.13], EntitySkeleton['Skeleton'/243, l='MpServer', x=247.84, y=31.00, z=346.50], EntityBat['Bat'/246, l='MpServer', x=267.69, y=48.10, z=224.97], EntitySkeleton['Skeleton'/247, l='MpServer', x=258.88, y=17.00, z=241.50], EntityCreeper['Creeper'/248, l='MpServer', x=269.00, y=35.00, z=292.56], EntitySkeleton['Skeleton'/249, l='MpServer', x=263.50, y=26.00, z=343.13], EntitySheep['Sheep'/250, l='MpServer', x=269.06, y=78.00, z=336.06], EntitySheep['Sheep'/251, l='MpServer', x=270.06, y=74.00, z=353.88], EntitySheep['Sheep'/252, l='MpServer', x=271.28, y=74.00, z=353.28]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:392)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2614)
at net.minecraft.client.Minecraft.run(Minecraft.java:398)
at net.minecraft.client.main.Main.main(Main.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)

-- System Details --
Details:
Minecraft Version: 1.8
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.8.0_45, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 690732784 bytes (658 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 v9.10 FML v8.0.99.99 Minecraft Forge 11.14.3.1450 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	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
UCHIJAAAA	FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8-11.14.3.1450.jar) 
UCHIJAAAA	Forge{11.14.3.1450} [Minecraft Forge] (forgeSrc-1.8-11.14.3.1450.jar) 
UCHIJAAAA	examplemod{1.0} [Example Mod] (bin) 
UCHIJAAAA	mineconomy{1.0} [mineconomy] (bin) 
Loaded coremods (and transformers): 
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.4.13283 Compatibility Profile Context 14.501.1003.0' Renderer: 'AMD Radeon R9 200 Series'
Launched Version: 1.8
LWJGL: 2.9.1
OpenGL: AMD Radeon R9 200 Series GL version 4.4.13283 Compatibility Profile Context 14.501.1003.0, 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: No
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
[00:19:03] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:663]: #@!@# Game crashed! Crash report saved to: #@!@# F:\Minecraft Modding\eclipse\.\crash-reports\crash-2015-06-26_00.19.03-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

Link to comment
Share on other sites

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.