Jump to content

[1.7.x] damage item in recipe ERROR


chaoschamp

Recommended Posts

i know you guys get allot on this topic but i tryed to get this to work. it failed so i looked all over to see what i was doing wrong but i cant see what am doing wrong.

 

ERROR:

net.minecraft.util.ReportedException: Updating screen events
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1702) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:997) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:912) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
Caused by: java.lang.NullPointerException
at net.minecraft.item.ItemStack.isItemStackDamageable(ItemStack.java:231) ~[itemStack.class:?]
at net.minecraft.inventory.SlotCrafting.onPickupFromSlot(SlotCrafting.java:143) ~[slotCrafting.class:?]
at net.minecraft.inventory.Container.slotClick(Container.java:349) ~[Container.class:?]
at net.minecraft.client.multiplayer.PlayerControllerMP.windowClick(PlayerControllerMP.java:482) ~[PlayerControllerMP.class:?]
at net.minecraft.client.gui.inventory.GuiContainer.handleMouseClick(GuiContainer.java:677) ~[GuiContainer.class:?]
at net.minecraft.client.gui.inventory.GuiContainer.mouseClicked(GuiContainer.java:420) ~[GuiContainer.class:?]
at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:352) ~[GuiScreen.class:?]
at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:316) ~[GuiScreen.class:?]
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1688) ~[Minecraft.class:?]
... 9 more
---- Minecraft Crash Report ----
// Ooh. Shiny.

Time: 23/05/14 22:14
Description: Updating screen events

java.lang.NullPointerException: Updating screen events
at net.minecraft.item.ItemStack.isItemStackDamageable(ItemStack.java:231)
at net.minecraft.inventory.SlotCrafting.onPickupFromSlot(SlotCrafting.java:143)
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:677)
at net.minecraft.client.gui.inventory.GuiContainer.mouseClicked(GuiContainer.java:420)
at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:352)
at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:316)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1688)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:997)
at net.minecraft.client.Minecraft.run(Minecraft.java:912)
at net.minecraft.client.main.Main.main(Main.java:112)
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)


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

-- Head --
Stacktrace:
at net.minecraft.item.ItemStack.isItemStackDamageable(ItemStack.java:231)
at net.minecraft.inventory.SlotCrafting.onPickupFromSlot(SlotCrafting.java:143)
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:677)
at net.minecraft.client.gui.inventory.GuiContainer.mouseClicked(GuiContainer.java:420)
at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:352)
at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:316)

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

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player851'/382, l='MpServer', x=218.45, y=67.03, z=205.55]]
Chunk stats: MultiplayerChunkCache: 225, 225
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options: 
Level spawn location: World: (228,64,248), Chunk: (at 4,4,8 in 14,15; contains blocks 224,0,240 to 239,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 10912 game time, 10912 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: 130 total; [EntitySheep['Sheep'/275, l='MpServer', x=248.16, y=63.00, z=149.13], EntitySheep['Sheep'/279, l='MpServer', x=246.66, y=69.00, z=284.44], EntitySheep['Sheep'/278, l='MpServer', x=250.19, y=82.00, z=262.28], EntityChicken['Chicken'/277, l='MpServer', x=245.53, y=80.00, z=270.22], EntitySpider['Spider'/276, l='MpServer', x=249.56, y=41.00, z=231.34], EntitySheep['Sheep'/283, l='MpServer', x=262.47, y=67.00, z=159.53], EntityCreeper['Creeper'/287, l='MpServer', x=263.03, y=44.00, z=228.53], EntitySheep['Sheep'/286, l='MpServer', x=272.88, y=63.00, z=185.09], EntitySheep['Sheep'/285, l='MpServer', x=260.81, y=64.00, z=165.19], EntitySheep['Sheep'/284, l='MpServer', x=264.34, y=67.00, z=162.56], EntityWolf['Wolf'/258, l='MpServer', x=226.56, y=63.00, z=186.22], EntityWolf['Wolf'/259, l='MpServer', x=228.38, y=68.00, z=220.94], EntitySquid['Squid'/256, l='MpServer', x=232.41, y=55.00, z=162.50], EntitySquid['Squid'/257, l='MpServer', x=232.06, y=55.00, z=166.47], EntitySkeleton['Skeleton'/262, l='MpServer', x=225.66, y=25.00, z=240.91], EntityBat['Bat'/260, l='MpServer', x=227.41, y=24.10, z=238.75], EntityCreeper['Creeper'/261, l='MpServer', x=231.69, y=44.00, z=227.56], EntitySheep['Sheep'/304, l='MpServer', x=277.50, y=72.00, z=255.22], EntitySheep['Sheep'/315, l='MpServer', x=297.66, y=74.00, z=136.50], EntitySheep['Sheep'/316, l='MpServer', x=294.56, y=74.00, z=154.34], EntitySkeleton['Skeleton'/288, l='MpServer', x=258.50, y=39.00, z=239.94], EntityWolf['Wolf'/289, l='MpServer', x=258.16, y=67.00, z=236.50], EntitySkeleton['Skeleton'/290, l='MpServer', x=268.50, y=33.00, z=253.50], EntitySheep['Sheep'/292, l='MpServer', x=268.78, y=63.00, z=279.50], EntitySheep['Sheep'/293, l='MpServer', x=258.50, y=64.00, z=282.34], EntitySheep['Sheep'/298, l='MpServer', x=283.47, y=72.00, z=156.34], EntityChicken['Chicken'/299, l='MpServer', x=283.47, y=75.00, z=148.53], EntitySheep['Sheep'/300, l='MpServer', x=280.19, y=72.00, z=166.53], EntitySheep['Sheep'/301, l='MpServer', x=276.72, y=71.00, z=162.50], EntitySheep['Sheep'/302, l='MpServer', x=281.53, y=72.00, z=165.63], EntitySkeleton['Skeleton'/303, l='MpServer', x=272.50, y=20.00, z=234.94], EntitySheep['Sheep'/320, l='MpServer', x=293.75, y=63.00, z=235.56], EntitySkeleton['Skeleton'/321, l='MpServer', x=291.50, y=27.00, z=283.50], EntityWolf['Wolf'/110, l='MpServer', x=141.50, y=71.00, z=271.34], EntityWolf['Wolf'/108, l='MpServer', x=141.94, y=72.00, z=200.53], EntityCreeper['Creeper'/119, l='MpServer', x=155.41, y=33.00, z=204.16], EntityCreeper['Creeper'/118, l='MpServer', x=154.91, y=45.00, z=188.25], EntityZombie['Zombie'/127, l='MpServer', x=146.69, y=40.00, z=271.69], EntityZombie['Zombie'/126, l='MpServer', x=150.63, y=37.00, z=244.06], EntityWolf['Wolf'/125, l='MpServer', x=156.25, y=70.00, z=230.03], EntityWolf['Wolf'/124, l='MpServer', x=156.50, y=69.00, z=226.84], EntityWolf['Wolf'/123, l='MpServer', x=153.31, y=70.00, z=228.59], EntityWolf['Wolf'/122, l='MpServer', x=154.50, y=69.00, z=211.25], EntitySpider['Spider'/121, l='MpServer', x=156.00, y=33.00, z=202.81], EntitySkeleton['Skeleton'/120, l='MpServer', x=148.91, y=34.00, z=202.50], EntitySkeleton['Skeleton'/141, l='MpServer', x=170.69, y=39.00, z=151.91], EntityWolf['Wolf'/143, l='MpServer', x=164.13, y=70.00, z=199.53], EntityWolf['Wolf'/142, l='MpServer', x=163.63, y=70.00, z=206.38], EntityWolf['Wolf'/129, l='MpServer', x=146.88, y=72.00, z=257.56], EntityBat['Bat'/128, l='MpServer', x=141.50, y=42.00, z=258.50], EntitySkeleton['Skeleton'/131, l='MpServer', x=146.31, y=19.00, z=277.59], EntityBat['Bat'/130, l='MpServer', x=153.75, y=19.10, z=273.25], EntitySkeleton['Skeleton'/132, l='MpServer', x=155.50, y=16.00, z=281.13], EntityBat['Bat'/152, l='MpServer', x=171.41, y=51.10, z=285.25], EntitySkeleton['Skeleton'/144, l='MpServer', x=175.13, y=38.00, z=216.34], EntityClientPlayerMP['Player851'/382, l='MpServer', x=218.45, y=67.03, z=205.55], EntityCreeper['Creeper'/145, l='MpServer', x=173.28, y=35.00, z=223.69], EntityItem['item.item.rottenFlesh'/146, l='MpServer', x=163.13, y=69.13, z=235.16], EntityWolf['Wolf'/147, l='MpServer', x=157.66, y=70.00, z=230.47], EntityWolf['Wolf'/148, l='MpServer', x=173.75, y=76.00, z=250.47], EntityWolf['Wolf'/149, l='MpServer', x=169.47, y=69.00, z=245.28], EntityCreeper['Creeper'/150, l='MpServer', x=173.41, y=43.00, z=270.00], EntityCreeper['Creeper'/151, l='MpServer', x=172.47, y=41.00, z=267.97], EntityBat['Bat'/171, l='MpServer', x=182.69, y=16.10, z=204.28], EntitySkeleton['Skeleton'/170, l='MpServer', x=188.50, y=22.00, z=199.06], EntityZombie['Zombie'/169, l='MpServer', x=183.63, y=13.00, z=202.88], EntityBat['Bat'/168, l='MpServer', x=181.38, y=15.10, z=180.28], EntityEnderman['Enderman'/175, l='MpServer', x=178.66, y=28.00, z=222.47], EntityEnderman['Enderman'/174, l='MpServer', x=166.34, y=32.00, z=218.50], EntityZombie['Zombie'/173, l='MpServer', x=182.50, y=13.00, z=217.03], EntityWolf['Wolf'/172, l='MpServer', x=176.69, y=76.00, z=204.97], EntityCreeper['Creeper'/163, l='MpServer', x=190.22, y=48.00, z=156.25], EntityBat['Bat'/162, l='MpServer', x=178.22, y=53.10, z=135.16], EntitySpider['Spider'/161, l='MpServer', x=189.16, y=47.00, z=130.28], EntityZombie['Zombie'/160, l='MpServer', x=186.78, y=47.00, z=131.13], EntityBat['Bat'/167, l='MpServer', x=172.25, y=42.26, z=171.69], EntityBat['Bat'/166, l='MpServer', x=187.50, y=42.10, z=164.41], EntitySkeleton['Skeleton'/165, l='MpServer', x=187.50, y=45.00, z=164.50], EntityBat['Bat'/164, l='MpServer', x=180.75, y=45.10, z=162.75], EntityWolf['Wolf'/186, l='MpServer', x=191.31, y=74.00, z=239.50], EntityZombie['Zombie'/187, l='MpServer', x=176.16, y=70.00, z=229.34], EntityBat['Bat'/184, l='MpServer', x=186.88, y=19.10, z=234.75], EntitySkeleton['Skeleton'/185, l='MpServer', x=181.38, y=21.00, z=224.62], EntityCreeper['Creeper'/190, l='MpServer', x=186.50, y=19.00, z=271.75], EntitySkeleton['Skeleton'/191, l='MpServer', x=182.50, y=19.00, z=271.16], EntityWolf['Wolf'/188, l='MpServer', x=179.53, y=76.00, z=243.84], EntityCreeper['Creeper'/189, l='MpServer', x=180.47, y=15.00, z=260.97], EntityWolf['Wolf'/178, l='MpServer', x=190.38, y=75.00, z=218.75], EntitySkeleton['Skeleton'/179, l='MpServer', x=186.44, y=15.00, z=234.69], EntitySkeleton['Skeleton'/176, l='MpServer', x=174.94, y=39.00, z=217.50], EntityZombie['Zombie'/177, l='MpServer', x=186.03, y=37.00, z=216.94], EntityZombie['Zombie'/182, l='MpServer', x=190.47, y=20.00, z=237.00], EntityBat['Bat'/183, l='MpServer', x=186.34, y=19.10, z=234.38], EntitySkeleton['Skeleton'/180, l='MpServer', x=183.50, y=16.00, z=235.09], EntityBat['Bat'/205, l='MpServer', x=189.44, y=18.29, z=220.47], EntityWolf['Wolf'/204, l='MpServer', x=210.53, y=62.00, z=188.72], EntityWolf['Wolf'/207, l='MpServer', x=203.44, y=70.00, z=231.78], EntityZombie['Zombie'/206, l='MpServer', x=197.25, y=20.00, z=238.22], EntitySquid['Squid'/201, l='MpServer', x=204.63, y=55.00, z=146.22], EntityEnderman['Enderman'/200, l='MpServer', x=188.44, y=46.00, z=159.00], EntityBat['Bat'/203, l='MpServer', x=193.09, y=14.10, z=204.88], EntityZombie['Zombie'/202, l='MpServer', x=193.50, y=49.00, z=149.94], EntityZombie['Zombie'/199, l='MpServer', x=207.41, y=43.00, z=148.00], EntityCreeper['Creeper'/193, l='MpServer', x=190.13, y=18.00, z=277.22], EntityCreeper['Creeper'/192, l='MpServer', x=185.44, y=16.00, z=259.97], EntityBat['Bat'/216, l='MpServer', x=194.25, y=52.26, z=273.97], EntityItem['item.tile.cloth.gray'/213, l='MpServer', x=193.81, y=72.13, z=269.81], EntityWolf['Wolf'/214, l='MpServer', x=194.25, y=72.00, z=258.28], EntitySpider['Spider'/215, l='MpServer', x=197.28, y=55.00, z=282.72], EntityWolf['Wolf'/208, l='MpServer', x=196.50, y=77.00, z=254.50], EntityWolf['Wolf'/209, l='MpServer', x=205.31, y=70.00, z=250.34], EntityWolf['Wolf'/210, l='MpServer', x=198.78, y=71.00, z=246.50], EntityWolf['Wolf'/211, l='MpServer', x=196.25, y=71.00, z=256.66], EntityChicken['Chicken'/239, l='MpServer', x=219.53, y=68.00, z=275.53], EntityCreeper['Creeper'/238, l='MpServer', x=214.59, y=17.00, z=255.06], EntityWolf['Wolf'/237, l='MpServer', x=209.79, y=65.00, z=213.56], EntitySquid['Squid'/236, l='MpServer', x=225.16, y=55.22, z=165.59], EntitySquid['Squid'/235, l='MpServer', x=220.09, y=55.00, z=163.50], EntitySquid['Squid'/234, l='MpServer', x=212.81, y=55.38, z=155.81], EntityCreeper['Creeper'/233, l='MpServer', x=223.06, y=50.00, z=155.63], EntityZombie['Zombie'/232, l='MpServer', x=220.47, y=28.00, z=134.03], EntityZombie['Zombie'/231, l='MpServer', x=216.16, y=25.00, z=127.25], EntitySquid['Squid'/254, l='MpServer', x=232.66, y=55.13, z=156.66], EntitySquid['Squid'/255, l='MpServer', x=236.50, y=55.31, z=165.06], EntitySquid['Squid'/252, l='MpServer', x=233.09, y=55.00, z=160.31], EntitySquid['Squid'/253, l='MpServer', x=225.22, y=55.31, z=164.34], EntitySkeleton['Skeleton'/250, l='MpServer', x=230.94, y=49.00, z=152.50], EntityBat['Bat'/251, l='MpServer', x=215.09, y=51.01, z=158.03], EntitySkeleton['Skeleton'/248, l='MpServer', x=239.06, y=47.00, z=151.53], EntitySquid['Squid'/249, l='MpServer', x=233.53, y=55.06, z=164.88]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:412)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2524)
at net.minecraft.client.Minecraft.run(Minecraft.java:933)
at net.minecraft.client.main.Main.main(Main.java:112)
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)

-- System Details --
Details:
Minecraft Version: 1.7.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 860464192 bytes (820 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 4406 (246736 bytes; 0 MB) allocated, 2 (112 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.03 FML v7.2.194.1079 Minecraft Forge 10.12.1.1079 5 mods loaded, 5 mods active
mcp{9.03} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.2.194.1079} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1079.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.12.1.1079} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1079.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
TechnoAdvanceID{0.1} [TechnoAdvance] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Launched Version: 1.6
LWJGL: 2.9.0
OpenGL: AMD Radeon HD 6450 GL version 4.2.12430 Compatibility Profile Context 13.152.1.8000, ATI Technologies Inc.
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: 2465 (138040 bytes; 0 MB) allocated, 25 (1400 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
#@!@# Game crashed! Crash report saved to: #@!@# C:\Users\chaos\Desktop\Modding\Forge 1.7\eclipse\.\crash-reports\crash-2014-05-23_22.14.04-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed

 

Recipes:

package Chaos.TechnoAdvance;

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

public class TArecipes {
public static void init() {
	GameRegistry.addShapelessRecipe(new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetTinyIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetTinyIlmenite), 
			new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetTinyIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetTinyIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetTinyIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetTinyIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetTinyIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetTinyIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetTinyIlmenite));
	GameRegistry.addShapelessRecipe(new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetIlmenite), 
			new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetIlmenite),new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetIlmenite));
	GameRegistry.addRecipe(new ItemStack(Chaos.TechnoAdvance.Items.TAitems.toolSolder), "xzx", "xyx", "#x#",
	        'x', new ItemStack(Items.iron_ingot), 'y', new ItemStack(Items.slime_ball), 'z', new ItemStack(Items.flint_and_steel));
	GameRegistry.addRecipe(new ItemStack(Chaos.TechnoAdvance.Items.TAitems.toolSolder), "xzx", "xyx", "#x#",
	        'x', new ItemStack(Items.iron_ingot), 'y', new ItemStack(Items.ghast_tear), 'z', new ItemStack(Items.flint));
	GameRegistry.addRecipe(new ItemStack(Chaos.TechnoAdvance.Items.TAitems.toolWelder), "xzw", "xyx", "#x#",
	        'x', new ItemStack(Items.iron_ingot), 'y', new ItemStack(Items.fire_charge), 'z', new ItemStack(Items.flint_and_steel), 'w', new ItemStack(Blocks.redstone_block));
	GameRegistry.addRecipe(new ItemStack(Chaos.TechnoAdvance.Items.TAitems.miscIlmeniteRod), "xzx", "xyx", "xzx",
	        'x', new ItemStack(Chaos.TechnoAdvance.Items.TAitems.nuggetIlmenite), 'y', new ItemStack(Chaos.TechnoAdvance.Items.TAitems.toolWelder), 'z', new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotIlmenite));
	GameRegistry.addShapelessRecipe(new ItemStack(Chaos.TechnoAdvance.Blocks.TAblocks.blockIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotIlmenite), 
			new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotIlmenite),new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotIlmenite),new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotIlmenite));
	GameRegistry.addShapelessRecipe(new ItemStack(Chaos.TechnoAdvance.Blocks.TAblocks.fancyIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotEntropia), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotIlmenite), 
			new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotEntropia), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotEntropia), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotIlmenite), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotEntropia), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotIlmenite));
	GameRegistry.addShapelessRecipe(new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotEntropia), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.dustEntopia), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.dustEntopia), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.dustEntopia),
			new ItemStack(Chaos.TechnoAdvance.Items.TAitems.dustEntopia), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.dustEntopia), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.dustEntopia), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.toolWelder), new ItemStack(Chaos.TechnoAdvance.Items.TAitems.dustEntopia), new ItemStack(Items.iron_ingot));
	GameRegistry.addShapedRecipe(new ItemStack(Chaos.TechnoAdvance.Items.TAitems.toolEntropiaPickaxe), new Object[]{
            "xxx","wyz"," y ",'x', new ItemStack(Chaos.TechnoAdvance.Items.TAitems.ingotEntropia),'w', new ItemStack(Chaos.TechnoAdvance.Items.TAitems.toolSolder, 1, OreDictionary.WILDCARD_VALUE),'z', new ItemStack(Chaos.TechnoAdvance.Items.TAitems.toolWelder, 1, OreDictionary.WILDCARD_VALUE),'y', new ItemStack(Chaos.TechnoAdvance.Items.TAitems.miscIlmeniteRod)
    });

}
}

 

Item:

package Chaos.TechnoAdvance.Items;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemTool;
import net.minecraft.item.Item.ToolMaterial;

public class Welder extends Item {
protected Welder() {
	super();
	this.setNoRepair();
	this.setMaxStackSize(1);
	this.setMaxDamage(700);

}
@Override
    public boolean hasContainerItem(ItemStack stack)
    {
        return true;
    }

    @Override
    public boolean doesContainerItemLeaveCraftingGrid(ItemStack itemstack)
    {
            return true;
    }

    
    public boolean isItemStackDamageable()
    {
        return true; 
    }

    public ItemStack getContainerItemStack(ItemStack itemStack, EntityPlayer player) {


    	itemStack.setItemDamage(this.getDamage(itemStack) + 1);
	return itemStack;

    }
}

Link to comment
Share on other sites

package Chaos.TechnoAdvance;

import com.google.common.reflect.Reflection;

import net.minecraftforge.common.ForgeHooks;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler; 
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;

@Mod(modid="TechnoAdvanceID", name="TechnoAdvance", version="0.1") 
public class BaseTA {

    EventManager eventmanager = new EventManager();


        @Instance(value = "TechnoAdvanceID")
        public static BaseTA instance;

        @SidedProxy(clientSide="Chaos.TechnoAdvance.ClientProxy", serverSide="Chaos.TechnoAdvance.CommonProxy")
        public static CommonProxy proxy;

        
        @EventHandler 
        public void preInit(FMLPreInitializationEvent event) {
        	Chaos.TechnoAdvance.Blocks.TAblocks.init();
        	Chaos.TechnoAdvance.Items.TAitems.init();
        	Chaos.TechnoAdvance.TArecipes.init();
              
        }
        
        @EventHandler
        public void load(FMLInitializationEvent event) {
        	
        }
        
        @EventHandler
        public void postInit(FMLPostInitializationEvent event) {
        }
}

Link to comment
Share on other sites

i think am blind... :( i dont see null anywhere. one think i have noticed its only crashs with any recipe with the item solder and welder so its diffidently them two. i just dont see whats wrong. i even looked at others code. they either use the same method or a different method. ive tryed both.

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.