Jump to content

[1.7.10]Crash when crafting custom item


GTRxConfusion

Recommended Posts

Im trying to craft a custom item (I have the recipe added) but the game crashes whenever i try to craft it. it doesent do this for my other recipes? heres my recipe class

package com.gtr.progressionplus.common;

import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.registry.GameRegistry;

public class ModRecipes
{
    public static void Add()
    {
        // recipes
        GameRegistry.addRecipe(new ItemStack(ModBlocks.compressed_obsidian), new Object[]
        { "xxx", "xxx", "xxx", 'x', Blocks.obsidian });
        GameRegistry.addRecipe(new ItemStack(ModItems.diamond_rod), new Object[]
        { "#", "#", '#', Items.diamond });
        
        ModItems.obsidianTools.AddRecipes(ModItems.obsidian_ingot, ModItems.diamond_rod);
        ModItems.rubyTools.AddRecipes(ModItems.ruby);
        ModItems.nadiumTools.AddRecipes(ModItems.nadium_ingot);
        
        // shapeless
        
        // add smelting
        GameRegistry.addSmelting(ModBlocks.compressed_obsidian, new ItemStack(ModItems.obsidian_ingot), 0.1f);
        GameRegistry.addSmelting(ModBlocks.nadium_ore, new ItemStack(ModItems.nadium_ingot), 0.1f);
    }
}

crash log

---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!

Time: 7/24/14 4:56 PM
Description: Updating screen events

java.lang.ArrayIndexOutOfBoundsException: -1
at net.minecraft.item.ItemStack.onCrafting(ItemStack.java:483)
at net.minecraft.inventory.SlotCrafting.onCrafting(SlotCrafting.java:72)
at net.minecraft.inventory.SlotCrafting.onPickupFromSlot(SlotCrafting.java:129)
at net.minecraft.inventory.Container.slotClick(Container.java:349)
at net.minecraft.client.multiplayer.PlayerControllerMP.windowClick(PlayerControllerMP.java:482)
at net.minecraft.client.gui.inventory.GuiContainer.handleMouseClick(GuiContainer.java:678)
at net.minecraft.client.gui.inventory.GuiContainer.mouseClicked(GuiContainer.java:420)
at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:346)
at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:315)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1730)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1038)
at net.minecraft.client.Minecraft.run(Minecraft.java:961)
at net.minecraft.client.main.Main.main(Main.java:164)
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:134)
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 GradleStart.bounce(GradleStart.java:108)
at GradleStart.startClient(GradleStart.java:101)
at GradleStart.main(GradleStart.java:56)


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

-- Head --
Stacktrace:
at net.minecraft.item.ItemStack.onCrafting(ItemStack.java:483)
at net.minecraft.inventory.SlotCrafting.onCrafting(SlotCrafting.java:72)
at net.minecraft.inventory.SlotCrafting.onPickupFromSlot(SlotCrafting.java:129)
at net.minecraft.inventory.Container.slotClick(Container.java:349)
at net.minecraft.client.multiplayer.PlayerControllerMP.windowClick(PlayerControllerMP.java:482)
at net.minecraft.client.gui.inventory.GuiContainer.handleMouseClick(GuiContainer.java:678)
at net.minecraft.client.gui.inventory.GuiContainer.mouseClicked(GuiContainer.java:420)
at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:346)
at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:315)

-- Affected screen --
Details:
Screen name: net.minecraft.client.gui.inventory.GuiCrafting

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['ForgeDevName'/397, l='MpServer', x=185.90, y=65.62, z=245.27]]
Chunk stats: MultiplayerChunkCache: 574, 574
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options: 
Level spawn location: World: (188,64,256), Chunk: (at 12,4,0 in 11,16; contains blocks 176,0,256 to 191,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 6871 game time, 6871 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: 94 total; [EntityPig['Pig'/275, l='MpServer', x=244.50, y=76.00, z=274.69], EntityBat['Bat'/137, l='MpServer', x=127.44, y=26.27, z=238.07], EntityPig['Pig'/274, l='MpServer', x=247.38, y=72.00, z=272.88], EntitySkeleton['Skeleton'/136, l='MpServer', x=119.53, y=22.00, z=224.94], EntityCow['Cow'/139, l='MpServer', x=127.31, y=72.00, z=233.72], EntityPig['Pig'/273, l='MpServer', x=246.81, y=71.00, z=246.44], EntityCow['Cow'/138, l='MpServer', x=121.94, y=71.00, z=228.16], EntityPig['Pig'/272, l='MpServer', x=254.13, y=75.00, z=244.25], EntityCreeper['Creeper'/141, l='MpServer', x=125.47, y=20.00, z=281.97], EntityPig['Pig'/279, l='MpServer', x=236.53, y=75.00, z=293.25], EntityBat['Bat'/140, l='MpServer', x=121.09, y=37.40, z=261.79], EntityPig['Pig'/278, l='MpServer', x=241.97, y=74.00, z=297.34], EntityPig['Pig'/277, l='MpServer', x=250.19, y=73.00, z=273.44], EntitySheep['Sheep'/143, l='MpServer', x=121.50, y=67.00, z=276.50], EntityCreeper['Creeper'/142, l='MpServer', x=126.53, y=20.00, z=280.00], EntityPig['Pig'/276, l='MpServer', x=248.53, y=72.00, z=270.25], EntityBat['Bat'/282, l='MpServer', x=206.08, y=57.00, z=313.46], EntityEnderman['Enderman'/281, l='MpServer', x=245.50, y=58.00, z=306.56], EntityEnderman['Enderman'/280, l='MpServer', x=243.50, y=58.00, z=309.53], EntityClientPlayerMP['ForgeDevName'/397, l='MpServer', x=185.90, y=65.62, z=245.27], EntityCow['Cow'/135, l='MpServer', x=120.91, y=70.00, z=221.13], EntitySkeleton['Skeleton'/134, l='MpServer', x=119.06, y=23.00, z=223.63], EntitySkeleton['Skeleton'/258, l='MpServer', x=239.50, y=58.00, z=290.88], EntitySkeleton['Skeleton'/152, l='MpServer', x=130.03, y=37.00, z=234.56], EntityPig['Pig'/259, l='MpServer', x=229.84, y=74.00, z=299.13], EntityCow['Cow'/153, l='MpServer', x=132.63, y=72.00, z=237.47], EntityCreeper['Creeper'/154, l='MpServer', x=140.50, y=14.00, z=252.50], EntityPig['Pig'/256, l='MpServer', x=226.47, y=65.00, z=237.69], EntitySkeleton['Skeleton'/155, l='MpServer', x=137.50, y=14.00, z=251.50], EntityPig['Pig'/257, l='MpServer', x=236.25, y=74.00, z=286.50], EntityZombie['Zombie'/262, l='MpServer', x=228.50, y=30.00, z=314.50], EntitySheep['Sheep'/156, l='MpServer', x=137.50, y=70.00, z=274.66], EntityBat['Bat'/263, l='MpServer', x=229.81, y=55.24, z=304.88], EntityBat['Bat'/260, l='MpServer', x=234.75, y=27.10, z=315.75], EntityZombie['Zombie'/261, l='MpServer', x=230.50, y=29.00, z=316.50], EntitySheep['Sheep'/144, l='MpServer', x=118.50, y=67.00, z=282.81], EntitySheep['Sheep'/145, l='MpServer', x=120.53, y=67.00, z=278.53], EntityPig['Pig'/270, l='MpServer', x=248.16, y=71.00, z=238.03], EntityPig['Pig'/271, l='MpServer', x=248.50, y=71.00, z=242.34], EntitySheep['Sheep'/168, l='MpServer', x=153.84, y=79.00, z=312.50], EntityZombie['Zombie'/163, l='MpServer', x=156.56, y=57.00, z=269.69], EntityBat['Bat'/162, l='MpServer', x=152.36, y=30.50, z=259.59], EntitySpider['Spider'/161, l='MpServer', x=145.38, y=16.00, z=249.72], EntitySquid['Squid'/160, l='MpServer', x=155.25, y=59.38, z=205.50], EntitySheep['Sheep'/167, l='MpServer', x=152.50, y=78.00, z=315.50], EntitySheep['Sheep'/166, l='MpServer', x=155.22, y=79.00, z=312.50], EntitySheep['Sheep'/165, l='MpServer', x=152.47, y=79.00, z=312.50], EntitySpider['Spider'/164, l='MpServer', x=158.16, y=57.00, z=268.59], EntitySquid['Squid'/186, l='MpServer', x=171.51, y=56.00, z=239.53], EntitySquid['Squid'/187, l='MpServer', x=172.50, y=56.00, z=227.26], EntitySquid['Squid'/184, l='MpServer', x=164.50, y=56.00, z=219.75], EntitySquid['Squid'/185, l='MpServer', x=171.47, y=56.35, z=224.71], EntitySpider['Spider'/190, l='MpServer', x=173.38, y=39.00, z=245.72], EntitySquid['Squid'/191, l='MpServer', x=167.66, y=56.34, z=240.97], EntityCreeper['Creeper'/188, l='MpServer', x=162.34, y=16.00, z=247.09], EntitySpider['Spider'/189, l='MpServer', x=175.28, y=39.00, z=245.72], EntityCreeper['Creeper'/179, l='MpServer', x=160.50, y=30.00, z=166.50], EntityCreeper['Creeper'/297, l='MpServer', x=258.50, y=13.00, z=282.84], EntityCreeper['Creeper'/182, l='MpServer', x=174.38, y=32.00, z=185.97], EntitySquid['Squid'/183, l='MpServer', x=170.47, y=56.24, z=223.50], EntityBat['Bat'/181, l='MpServer', x=184.22, y=44.01, z=184.69], EntitySkeleton['Skeleton'/303, l='MpServer', x=265.50, y=16.00, z=294.50], EntityPig['Pig'/205, l='MpServer', x=185.78, y=67.00, z=256.91], EntityPig['Pig'/204, l='MpServer', x=176.88, y=64.00, z=268.19], EntityCreeper['Creeper'/201, l='MpServer', x=182.31, y=18.00, z=187.53], EntitySkeleton['Skeleton'/200, l='MpServer', x=191.50, y=30.00, z=180.50], EntityPig['Pig'/203, l='MpServer', x=195.29, y=67.00, z=250.47], EntitySkeleton['Skeleton'/202, l='MpServer', x=176.63, y=39.00, z=245.69], EntityBat['Bat'/197, l='MpServer', x=179.75, y=45.00, z=175.13], EntitySpider['Spider'/199, l='MpServer', x=189.13, y=30.00, z=180.59], EntityCreeper['Creeper'/198, l='MpServer', x=180.94, y=17.00, z=191.59], EntitySquid['Squid'/192, l='MpServer', x=164.48, y=56.44, z=246.04], EntityBat['Bat'/220, l='MpServer', x=197.09, y=52.76, z=178.68], EntityBat['Bat'/221, l='MpServer', x=191.36, y=18.05, z=202.32], EntityBat['Bat'/222, l='MpServer', x=195.50, y=41.50, z=314.61], EntityZombie['Zombie'/223, l='MpServer', x=203.41, y=12.00, z=325.84], EntityCreeper['Creeper'/216, l='MpServer', x=192.53, y=26.00, z=168.69], EntityCreeper['Creeper'/217, l='MpServer', x=192.41, y=26.00, z=167.78], EntityBat['Bat'/218, l='MpServer', x=195.35, y=52.37, z=174.42], EntityPig['Pig'/239, l='MpServer', x=218.50, y=68.00, z=259.41], EntityPig['Pig'/238, l='MpServer', x=222.53, y=68.00, z=265.31], EntityPig['Pig'/237, l='MpServer', x=216.41, y=64.00, z=246.25], EntityCreeper['Creeper'/236, l='MpServer', x=215.00, y=28.00, z=174.44], EntityCreeper['Creeper'/225, l='MpServer', x=192.41, y=39.00, z=322.50], EntityCreeper['Creeper'/224, l='MpServer', x=205.50, y=23.00, z=321.50], EntityCreeper['Creeper'/255, l='MpServer', x=231.63, y=66.00, z=178.03], EntitySheep['Sheep'/127, l='MpServer', x=112.94, y=68.00, z=187.16], EntityBat['Bat'/244, l='MpServer', x=211.42, y=25.26, z=292.64], EntityBat['Bat'/245, l='MpServer', x=213.81, y=24.69, z=286.01], EntityBat['Bat'/123, l='MpServer', x=107.39, y=48.60, z=178.82], EntitySkeleton['Skeleton'/242, l='MpServer', x=223.44, y=24.00, z=304.09], EntityBat['Bat'/243, l='MpServer', x=219.41, y=26.39, z=295.98], EntityPig['Pig'/240, l='MpServer', x=213.69, y=70.00, z=268.50], EntityBat['Bat'/241, l='MpServer', x=211.73, y=25.83, z=287.41]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:417)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2567)
at net.minecraft.client.Minecraft.run(Minecraft.java:983)
at net.minecraft.client.main.Main.main(Main.java:164)
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:134)
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 GradleStart.bounce(GradleStart.java:108)
at GradleStart.startClient(GradleStart.java:101)
at GradleStart.main(GradleStart.java:56)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.7.0_65, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 1859098040 bytes (1772 MB) / 2112618496 bytes (2014 MB) up to 2112618496 bytes (2014 MB)
JVM Flags: 5 total; -Xincgc -Xmx4G -Xms4G -Xmx2048M -Xms2048M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
FML: MCP v9.05 FML v7.10.24.1187 Minecraft Forge 10.13.0.1187 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.10.24.1187} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.0.1187.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.13.0.1187} [Minecraft Forge] (forgeSrc-1.7.10-10.13.0.1187.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
progressionplus{1.7.10} [Progression Plus] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: AMD Radeon HD 8650G GL version 4.4.12967 Compatibility Profile Context 14.200.1004.0, ATI Technologies Inc.
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

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)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)

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.