Jump to content

[1.9]ItemAxe Returns a crash.


KingOfMiners

Recommended Posts

I'm updating to 1.9 forge as it has recently come out, and I was able to fix all of the errors, but when I launch the game I get a crash

18:42:14] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
[18:42:14] [Client thread/ERROR] [FML]: 
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCH	mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
UCH	FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.9-12.16.0.1767-1.9.jar) 
UCH	Forge{12.16.0.1767} [Minecraft Forge] (forgeSrc-1.9-12.16.0.1767-1.9.jar) 
UCE	MoreOresMod{1.4 beta} [The More Ores Mod] (bin) 
[18:42:14] [Client thread/ERROR] [FML]: The following problems were captured during this phase
[18:42:14] [Client thread/ERROR] [FML]: Caught exception from MoreOresMod
java.lang.ArrayIndexOutOfBoundsException: 5
at net.minecraft.item.ItemAxe.<init>(ItemAxe.java:19) ~[forgeSrc-1.9-12.16.0.1767-1.9.jar:?]
at com.moreoresmod.main.items.RubyAxe.<init>(RubyAxe.java: ~[bin/:?]
at com.moreoresmod.main.init.MoreOresModItems.init(MoreOresModItems.java:188) ~[bin/:?]
at com.moreoresmod.main.MoreOresModMain.preInit(MoreOresModMain.java:63) ~[bin/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560) ~[forgeSrc-1.9-12.16.0.1767-1.9.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211) ~[forgeSrc-1.9-12.16.0.1767-1.9.jar:?]
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189) ~[forgeSrc-1.9-12.16.0.1767-1.9.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]
at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:556) [Loader.class:?]
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:245) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:472) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:381) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
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_66]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
at GradleStart.main(GradleStart.java:26) [start/:?]
[18:42:14] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:645]: ---- Minecraft Crash Report ----
// Don't be sad, have a hug! <3

Time: 3/18/16 6:42 PM
Description: Initializing game

java.lang.ArrayIndexOutOfBoundsException: 5
at net.minecraft.item.ItemAxe.<init>(ItemAxe.java:19)
at com.moreoresmod.main.items.RubyAxe.<init>(RubyAxe.java:
at com.moreoresmod.main.init.MoreOresModItems.init(MoreOresModItems.java:188)
at com.moreoresmod.main.MoreOresModMain.preInit(MoreOresModMain.java:63)
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.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560)
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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)
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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:556)
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:245)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:472)
at net.minecraft.client.Minecraft.run(Minecraft.java:381)
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:26)


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

-- Head --
Stacktrace:
at net.minecraft.item.ItemAxe.<init>(ItemAxe.java:19)
at com.moreoresmod.main.items.RubyAxe.<init>(RubyAxe.java:
at com.moreoresmod.main.init.MoreOresModItems.init(MoreOresModItems.java:188)
at com.moreoresmod.main.MoreOresModMain.preInit(MoreOresModMain.java:63)
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.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560)
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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)
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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:556)
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:245)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:472)

-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:381)
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:26)

-- System Details --
Details:
Minecraft Version: 1.9
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_66, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 786381896 bytes (749 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.23 Powered by Forge 12.16.0.1767 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCH	mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
UCH	FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.9-12.16.0.1767-1.9.jar) 
UCH	Forge{12.16.0.1767} [Minecraft Forge] (forgeSrc-1.9-12.16.0.1767-1.9.jar) 
UCE	MoreOresMod{1.4 beta} [The More Ores Mod] (bin) 
Loaded coremods (and transformers): 
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.201.1151.1008' Renderer: 'AMD Radeon(TM) R7 Graphics'
Launched Version: 1.9
LWJGL: 2.9.4
OpenGL: AMD Radeon(TM) R7 Graphics GL version 4.5.13399 Compatibility Profile Context 15.201.1151.1008, 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)
CPU: (Im not showing this...)
[18:42:14] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:645]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\KingOfMiners\Documents\Coding\Minecraft\forge-1.9-12.16.0.1767-1.9-mdk\run\.\crash-reports\crash-2016-03-18_18.42.14-client.txt
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

This is my Axe Class:

package com.moreoresmod.main.items;

import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.ItemAxe;
import net.minecraft.item.ItemTool;

public class RubyAxe extends ItemAxe {

public RubyAxe(ToolMaterial material) {
	super(material);
}

}

Link to comment
Share on other sites

Show your main class.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

This is my item java class:

'package com.moreoresmod.main.init;

import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.init.SoundEvents;
import net.minecraft.inventory.ContainerBrewingStand;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.EnumDyeColor;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraftforge.client.event.sound.SoundEvent;
import net.minecraftforge.common.util.EnumHelper;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraft.item.*;

import com.moreoresmod.main.Reference;
import com.moreoresmod.main.block.MushroomPortalActivator;
import com.moreoresmod.main.creativetabs.MoreOresModArmorTab;
import com.moreoresmod.main.creativetabs.MoreOresModFoodTab;
import com.moreoresmod.main.creativetabs.MoreOresModItemsTab;
import com.moreoresmod.main.creativetabs.MoreOresModStaffsTab;
import com.moreoresmod.main.creativetabs.MoreOresModToolsTab;
import com.moreoresmod.main.creativetabs.MoreOresModWeaponsTab;
import com.moreoresmod.main.items.Calamari;
import com.moreoresmod.main.items.Cherry;
import com.moreoresmod.main.items.CookedCalamari;
import com.moreoresmod.main.items.CookedWolfMeat;
import com.moreoresmod.main.items.DarknessAxe;
import com.moreoresmod.main.items.DarknessHoe;
import com.moreoresmod.main.items.DarknessPickaxe;
import com.moreoresmod.main.items.DarknessSpade;
import com.moreoresmod.main.items.DarknessSword;
import com.moreoresmod.main.items.DayStaff;
import com.moreoresmod.main.items.EnderIngotArmor;
import com.moreoresmod.main.items.EnderIngotAxe;
import com.moreoresmod.main.items.EnderIngotHoe;
import com.moreoresmod.main.items.EnderIngotPickaxe;
import com.moreoresmod.main.items.EnderIngotSpade;
import com.moreoresmod.main.items.EnderIngotSword;
import com.moreoresmod.main.items.GoldReeds;
import com.moreoresmod.main.items.HealingStaff;
import com.moreoresmod.main.items.LapisAxe;
import com.moreoresmod.main.items.LapisHoe;
import com.moreoresmod.main.items.LapisPickaxe;
import com.moreoresmod.main.items.LapisSpade;
import com.moreoresmod.main.items.LapisSword;
import com.moreoresmod.main.items.NetherDiamondArmor;
import com.moreoresmod.main.items.NetherDiamondAxe;
import com.moreoresmod.main.items.NetherDiamondHoe;
import com.moreoresmod.main.items.NetherDiamondPickaxe;
import com.moreoresmod.main.items.NetherDiamondSpade;
import com.moreoresmod.main.items.NetherDiamondSword;
import com.moreoresmod.main.items.NightStaff;
import com.moreoresmod.main.items.OtherlyworldTeleporterOrb;
import com.moreoresmod.main.items.PortableChest;
import com.moreoresmod.main.items.RubyArmor;
import com.moreoresmod.main.items.RubyAxe;
import com.moreoresmod.main.items.RubyHoe;
import com.moreoresmod.main.items.RubyPickaxe;
import com.moreoresmod.main.items.RubySpade;
import com.moreoresmod.main.items.RubySword;
//import com.moreoresmod.main.items.TKnife;
import com.moreoresmod.main.items.TestStaff;
import com.moreoresmod.main.items.Tomato;
//import com.moreoresmod.main.items.TomatoSeeds;
import com.moreoresmod.main.items.WolfFurArmor;
import com.moreoresmod.main.items.WolfMeat;
import com.moreoresmod.main.MoreOresModMain;
//import com.moreoresmod.main.items.TestStaff;


public class MoreOresModItems {

//Creative Tabs
public static final MoreOresModItemsTab tabMoreOresModItems = new MoreOresModItemsTab("TabMoreOresModItems");
public static final MoreOresModStaffsTab tabMoreOresModStaffs = new MoreOresModStaffsTab("TabMoreOresModStaffs");
public static final MoreOresModWeaponsTab tabMoreOresModWeapons = new MoreOresModWeaponsTab("TabMoreOresModWeapons");
public static final MoreOresModToolsTab tabMoreOresModTools = new MoreOresModToolsTab("TabMoreOresModTools");
public static final MoreOresModArmorTab tabMoreOresModArmor = new MoreOresModArmorTab("TabMoreOresModArmor");
public static final MoreOresModFoodTab tabMoreOresModFood = new MoreOresModFoodTab("TabMoreOresModFood");

//Tool Materials
public static final Item.ToolMaterial rubyTool = EnumHelper.addToolMaterial("rubyTool", 3, 1600, 10.0F, 3.0F, 30);
public static final Item.ToolMaterial enderIngotTool = EnumHelper.addToolMaterial("enderIngotTools", 2, 1200, 10.0F, 6.0F, 15);
public static final Item.ToolMaterial netherDiamondTool = EnumHelper.addToolMaterial("netherDiamondTool", 3, 1800, 15.0f, 2.0f, 20);
public static final Item.ToolMaterial lapisTool = EnumHelper.addToolMaterial("lapisTool", 2, 950, 20.0f, 3.0f, 10);
public static final Item.ToolMaterial darknessTool = EnumHelper.addToolMaterial("darknessTool", 4, 3000, 17.5F, 8.5F, 25);

//Armor Materials
public static final ItemArmor.ArmorMaterial rubyArmor = EnumHelper.addArmorMaterial("rubyArmor", "ruby", 1000, new int []{3,8,6,3}, 30, SoundEvents.item_armor_equip_diamond);
public static final ItemArmor.ArmorMaterial netherDiamondArmor = EnumHelper.addArmorMaterial("netherDiamondArmor", "netherArmor", 385, new int []{3,8,6,3}, 25,SoundEvents.item_armor_equip_diamond);
public static final ItemArmor.ArmorMaterial enderIngotArmor = EnumHelper.addArmorMaterial("enderIngotArmor", "enderIngot", 250,new int []{2,7,5,2}, 15, SoundEvents.item_armor_equip_iron);
public static final ItemArmor.ArmorMaterial wolfFurArmor = EnumHelper.addArmorMaterial("wolfFurArmor", "wolfFur", 150, new int []{1,6,4,1}, 10, SoundEvents.item_armor_equip_leather);
public static final ItemArmor.ArmorMaterial darknessArmor = EnumHelper.addArmorMaterial("darknessArmor", "darkness", 1000, new int []{5, 10, 9, 5}, 20, SoundEvents.item_armor_equip_iron);
public static final ItemArmor.ArmorMaterial lapisArmor = EnumHelper.addArmorMaterial("lapisArmor", "lapis", 650, new int []{2,7,5,2}, 15, SoundEvents.item_armor_equip_generic);

public static Item ruby;
public static Item ruby_sword;
public static Item ruby_pickaxe;
public static Item ruby_spade;
public static Item ruby_axe;
public static Item ruby_hoe;
public static Item ruby_helmet;
public static Item ruby_chestplate;
public static Item ruby_leggings;
public static Item ruby_boots;
public static Item nether_diamond;
public static Item ender_ingot;
public static Item night_staff;
public static Item day_staff;
public static Item healing_staff;
public static Item ender_ingot_helmet;
public static Item ender_ingot_chestplate;
public static Item ender_ingot_leggings;
public static Item ender_ingot_boots;
public static Item ender_ingot_sword;
public static Item ender_ingot_pickaxe;
public static Item ender_ingot_spade;
public static Item ender_ingot_axe;
public static Item ender_ingot_hoe;
public static Item nether_stick;
public static Item andradite;
public static Item test_staff;
public static Item nether_diamond_sword;
public static Item nether_diamond_pickaxe;
public static Item nether_diamond_spade;
public static Item nether_diamond_axe;
public static Item nether_diamond_hoe;
public static Item staff_handle;
public static Item day_orb;
public static Item night_orb;
public static Item table_salt;
public static Item nether_diamond_helmet;
public static Item nether_diamond_chestplate;
public static Item nether_diamond_leggings;
public static Item nether_diamond_boots;
public static Item lapis_sword;
public static Item lapis_pickaxe;
public static Item lapis_spade;
public static Item lapis_axe;
public static Item lapis_hoe;
public static Item ruby_bow;
public static Item cherry;
public static Item smoke_pearl;
public static Item throwable_knife;
public static Item calamari;
public static Item cooked_calamari;
public static Item base_orb;
public static Item otherlyworld_teleporter_orb;
public static Item mushroom_portal_activator;
public static Item wolf_meat;
public static Item cooked_wolf_meat;
public static Item wolf_fur;
public static Item wolf_fur_helmet;
public static Item wolf_fur_chestplate;
public static Item wolf_fur_leggings;
public static Item wolf_fur_boots;
public static Item darkness_ingot;
public static Item tomato_seeds;
public static Item tomato;
public static Item darkness_sword;
public static Item darkness_pickaxe;
public static Item darkness_spade;
public static Item darkness_axe;
public static Item darkness_hoe;
public static Item gravity_gem;
public static Item portable_bed;
public static Item gold_reeds;
public static Item lapis_stick;
public static Item lapis_helmet;
public static Item zepronite_ingot;
public static Item paper_cone;
public static Item magma_ice_cream;
public static Item portable_chest;
public static Item empty_salt_shaker;

public static void init() {
 ruby = new Item().setUnlocalizedName("Ruby").setCreativeTab(tabMoreOresModItems);
 ruby_sword = new RubySword(rubyTool).setUnlocalizedName("Ruby_Sword").setCreativeTab(tabMoreOresModWeapons);
 ruby_pickaxe = new RubyPickaxe(rubyTool).setUnlocalizedName("Ruby_Pickaxe").setCreativeTab(tabMoreOresModTools);
 ruby_spade = new RubySpade(rubyTool).setUnlocalizedName("Ruby_Spade").setCreativeTab(tabMoreOresModTools);
 ruby_axe = new RubyAxe(rubyTool).setUnlocalizedName("Ruby_Axe").setCreativeTab(tabMoreOresModTools);
 ruby_hoe = new RubyHoe(rubyTool).setUnlocalizedName("Ruby_Hoe").setCreativeTab(tabMoreOresModTools);
 ruby_helmet = new RubyArmor(rubyArmor, 0, EntityEquipmentSlot.HEAD).setUnlocalizedName("Ruby_Helmet").setCreativeTab(tabMoreOresModArmor);
 ruby_chestplate = new RubyArmor(rubyArmor, 0, EntityEquipmentSlot.CHEST).setUnlocalizedName("Ruby_Chestplate").setCreativeTab(tabMoreOresModArmor);
 ruby_leggings = new RubyArmor(rubyArmor, 0, EntityEquipmentSlot.LEGS).setUnlocalizedName("Ruby_Leggings").setCreativeTab(tabMoreOresModArmor);
 ruby_boots = new RubyArmor(rubyArmor, 0, EntityEquipmentSlot.FEET).setUnlocalizedName("Ruby_Boots").setCreativeTab(tabMoreOresModArmor);
 nether_diamond = new Item().setUnlocalizedName("Nether_Diamond").setCreativeTab(tabMoreOresModItems);
 nether_diamond_sword = new NetherDiamondSword(netherDiamondTool).setUnlocalizedName("Nether_Diamond_Sword").setCreativeTab(tabMoreOresModWeapons);
 nether_diamond_pickaxe = new NetherDiamondPickaxe(netherDiamondTool).setUnlocalizedName("Nether_Diamond_Pickaxe").setCreativeTab(tabMoreOresModTools);
 nether_diamond_spade = new NetherDiamondSpade(netherDiamondTool).setUnlocalizedName("Nether_Diamond_Spade").setCreativeTab(tabMoreOresModTools);
 nether_diamond_axe = new NetherDiamondAxe(netherDiamondTool).setUnlocalizedName("Nether_Diamond_Axe").setCreativeTab(tabMoreOresModTools);
 nether_diamond_hoe = new NetherDiamondHoe(netherDiamondTool).setUnlocalizedName("Nether_Diamond_Hoe").setCreativeTab(tabMoreOresModTools);
 ender_ingot = new Item().setUnlocalizedName("Ender_Ingot").setCreativeTab(tabMoreOresModItems);
 night_staff = new NightStaff().setUnlocalizedName("Night_Staff").setCreativeTab(tabMoreOresModStaffs);
 day_staff = new DayStaff().setUnlocalizedName("Day_Staff").setCreativeTab(tabMoreOresModStaffs);
 healing_staff = new HealingStaff().setUnlocalizedName("Healing_Staff").setCreativeTab(tabMoreOresModStaffs);
 ender_ingot_helmet = new EnderIngotArmor(enderIngotArmor, 0, EntityEquipmentSlot.HEAD).setUnlocalizedName("Ender_Ingot_Helmet").setCreativeTab(tabMoreOresModArmor);
 ender_ingot_chestplate = new EnderIngotArmor(enderIngotArmor, 0, EntityEquipmentSlot.CHEST).setUnlocalizedName("Ender_Ingot_Chestplate").setCreativeTab(tabMoreOresModArmor);
 ender_ingot_leggings = new EnderIngotArmor(enderIngotArmor, 0, EntityEquipmentSlot.LEGS).setUnlocalizedName("Ender_Ingot_Leggings").setCreativeTab(tabMoreOresModArmor);
 ender_ingot_boots = new EnderIngotArmor(enderIngotArmor, 0, EntityEquipmentSlot.FEET).setUnlocalizedName("Ender_Ingot_Boots").setCreativeTab(tabMoreOresModArmor);
 ender_ingot_sword = new EnderIngotSword(enderIngotTool).setUnlocalizedName("Ender_Ingot_Sword").setCreativeTab(tabMoreOresModWeapons);
 ender_ingot_pickaxe = new EnderIngotPickaxe(enderIngotTool).setUnlocalizedName("Ender_Ingot_Pickaxe").setCreativeTab(tabMoreOresModTools);
 ender_ingot_spade = new EnderIngotSpade(enderIngotTool).setUnlocalizedName("Ender_Ingot_Spade").setCreativeTab(tabMoreOresModTools);
 ender_ingot_axe = new EnderIngotAxe(enderIngotTool).setUnlocalizedName("Ender_Ingot_Axe").setCreativeTab(tabMoreOresModTools);     
 ender_ingot_hoe = new EnderIngotHoe(enderIngotTool).setUnlocalizedName("Ender_Ingot_Hoe").setCreativeTab(tabMoreOresModTools);
 nether_stick = new Item().setUnlocalizedName("Nether_Stick").setCreativeTab(tabMoreOresModItems);
 andradite = new Item().setUnlocalizedName("Andradite").setCreativeTab(tabMoreOresModItems);
 test_staff = new TestStaff().setUnlocalizedName("Test_Staff").setCreativeTab(tabMoreOresModStaffs);
 staff_handle = new Item().setUnlocalizedName("Staff_Handle").setCreativeTab(tabMoreOresModItems);
 day_orb = new Item().setUnlocalizedName("Day_Orb").setCreativeTab(tabMoreOresModItems);
 night_orb = new Item().setUnlocalizedName("Night_Orb").setCreativeTab(tabMoreOresModItems);
 table_salt = new Item().setUnlocalizedName("Table_Salt").setCreativeTab(tabMoreOresModItems);
 nether_diamond_helmet = new NetherDiamondArmor(netherDiamondArmor, 0, EntityEquipmentSlot.HEAD).setUnlocalizedName("Nether_Diamond_Helmet").setCreativeTab(tabMoreOresModArmor);
 nether_diamond_chestplate = new NetherDiamondArmor(netherDiamondArmor, 0, EntityEquipmentSlot.CHEST).setUnlocalizedName("Nether_Diamond_Chestplate").setCreativeTab(tabMoreOresModArmor);
 nether_diamond_leggings = new NetherDiamondArmor(netherDiamondArmor, 0, EntityEquipmentSlot.LEGS).setUnlocalizedName("Nether_Diamond_Leggings").setCreativeTab(tabMoreOresModArmor);
 nether_diamond_boots = new NetherDiamondArmor(netherDiamondArmor, 0, EntityEquipmentSlot.FEET).setUnlocalizedName("Nether_Diamond_Boots").setCreativeTab(tabMoreOresModArmor);
 lapis_sword = new LapisSword(lapisTool).setUnlocalizedName("Lapis_Sword").setCreativeTab(tabMoreOresModWeapons);
 lapis_pickaxe = new LapisPickaxe(lapisTool).setUnlocalizedName("Lapis_Pickaxe").setCreativeTab(tabMoreOresModTools);
 lapis_spade = new LapisSpade(lapisTool).setUnlocalizedName("Lapis_Spade").setCreativeTab(tabMoreOresModTools);
 lapis_axe = new LapisAxe(lapisTool).setUnlocalizedName("Lapis_Axe").setCreativeTab(tabMoreOresModTools);
 lapis_hoe = new LapisHoe(lapisTool).setUnlocalizedName("Lapis_Hoe").setCreativeTab(tabMoreOresModTools);
 //ruby_bow = new RubyBow().setUnlocalizedName("Ruby_Bow").setCreativeTab(tabMoreOresModWeapons);
 cherry = new Cherry(4, true).setUnlocalizedName("Cherry").setCreativeTab(tabMoreOresModFood);
 //smoke_pearl = new SmokePearl().setUnlocalizedName("Smoke_Pearl").setCreativeTab(tabMoreOresModItems);
 //throwable_knife = new TKnife().setUnlocalizedName("Throwable_Knife").setCreativeTab(tabMoreOresModWeapons);
 calamari = new Calamari(2,true).setUnlocalizedName("Raw_Calamari").setCreativeTab(tabMoreOresModFood);
 cooked_calamari = new CookedCalamari(6, true).setUnlocalizedName("Cooked_Calamari").setCreativeTab(tabMoreOresModFood);
 base_orb = new Item().setUnlocalizedName("Base_Orb").setCreativeTab(tabMoreOresModItems);
 otherlyworld_teleporter_orb = new OtherlyworldTeleporterOrb().setUnlocalizedName("Otherlyworld_Teleporter_Orb").setCreativeTab(MoreOresModBlocks.tabOtherlyworld);
 mushroom_portal_activator = new MushroomPortalActivator();
 wolf_meat = new WolfMeat(1, false).setUnlocalizedName("Wolf_Meat").setCreativeTab(tabMoreOresModFood);
 cooked_wolf_meat = new CookedWolfMeat(10, false).setUnlocalizedName("Cooked_Wolf_Meat").setCreativeTab(tabMoreOresModFood);
 wolf_fur = new Item().setUnlocalizedName("Wolf_Fur").setCreativeTab(tabMoreOresModItems);
 wolf_fur_helmet = new WolfFurArmor(wolfFurArmor, 0 , EntityEquipmentSlot.HEAD).setUnlocalizedName("Wolf_Fur_Helmet").setCreativeTab(tabMoreOresModArmor);
 wolf_fur_chestplate = new WolfFurArmor(wolfFurArmor, 0, EntityEquipmentSlot.CHEST).setUnlocalizedName("Wolf_Fur_Chestplate").setCreativeTab(tabMoreOresModArmor);
 wolf_fur_leggings = new WolfFurArmor(wolfFurArmor, 0, EntityEquipmentSlot.LEGS).setUnlocalizedName("Wolf_Fur_Leggings").setCreativeTab(tabMoreOresModArmor);
 wolf_fur_boots = new WolfFurArmor(wolfFurArmor, 0, EntityEquipmentSlot.FEET).setUnlocalizedName("Wolf_Fur_Boots").setCreativeTab(tabMoreOresModArmor);
 darkness_ingot = new Item().setUnlocalizedName("Darkness_Ingot").setCreativeTab(tabMoreOresModItems);
 //tomato_seeds = new TomatoSeeds().setUnlocalizedName("Tomato_Seeds").setCreativeTab(tabMoreOresModItems);
 tomato = new Tomato(4, true).setUnlocalizedName("Tomato").setCreativeTab(tabMoreOresModFood);
 darkness_sword = new DarknessSword(darknessTool).setUnlocalizedName("Darkness_Sword").setCreativeTab(tabMoreOresModWeapons);
 darkness_pickaxe = new DarknessPickaxe(darknessTool).setUnlocalizedName("Darkness_Pickaxe").setCreativeTab(tabMoreOresModTools);
 darkness_spade = new DarknessSpade(darknessTool).setUnlocalizedName("Darkness_Spade").setCreativeTab(tabMoreOresModTools);
 darkness_axe = new DarknessAxe(darknessTool).setUnlocalizedName("Darkness_Axe").setCreativeTab(tabMoreOresModTools);
 darkness_hoe = new DarknessHoe(darknessTool).setUnlocalizedName("Darkness_Hoe").setCreativeTab(tabMoreOresModTools);
 gravity_gem = new Item().setUnlocalizedName("Gravity_Gem").setCreativeTab(tabMoreOresModItems);
 //portable_bed = new PortableBed().setUnlocalizedName("Portable_Bed");
 //gold_reeds = new ItemReed(MoreOresModBlocks.gold_reed).setUnlocalizedName("Gold_Reeds").setCreativeTab(tabMoreOresModItems);
 lapis_stick = new Item().setUnlocalizedName("Lapis_Stick").setCreativeTab(tabMoreOresModItems);
 zepronite_ingot = new Item().setUnlocalizedName("Zepronite_Ingot").setCreativeTab(tabMoreOresModItems);
 paper_cone = new Item().setUnlocalizedName("Paper_Cone").setCreativeTab(tabMoreOresModFood);
 empty_salt_shaker = new Item().setUnlocalizedName("Empty_Salt_Shaker").setCreativeTab(tabMoreOresModFood);
 //portable_chest = new PortableChest();
 //magma_ice_cream = new MagmaIceCream()
}

public static void register() {
 //Items
 GameRegistry.registerItem(ruby, ruby.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ruby_sword, ruby_sword.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ruby_pickaxe, ruby_pickaxe.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ruby_spade, ruby_spade.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ruby_axe, ruby_axe.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ruby_hoe, ruby_hoe.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ruby_helmet, ruby_helmet.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ruby_chestplate, ruby_chestplate.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ruby_leggings, ruby_leggings.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ruby_boots, ruby_boots.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(nether_diamond, nether_diamond.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ender_ingot, ender_ingot.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(night_staff, night_staff.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(day_staff, day_staff.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(healing_staff, healing_staff.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ender_ingot_helmet, ender_ingot_helmet.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ender_ingot_chestplate, ender_ingot_chestplate.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ender_ingot_leggings, ender_ingot_leggings.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ender_ingot_boots, ender_ingot_boots.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ender_ingot_sword, ender_ingot_sword.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ender_ingot_pickaxe, ender_ingot_pickaxe.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ender_ingot_spade, ender_ingot_spade.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ender_ingot_axe, ender_ingot_axe.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(ender_ingot_hoe, ender_ingot_hoe.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(nether_stick, nether_stick.getUnlocalizedName().substring(5));
 //GameRegistry.registerItem(andradite, andradite.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(nether_diamond_helmet, nether_diamond_helmet.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(nether_diamond_chestplate, nether_diamond_chestplate.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(nether_diamond_leggings, nether_diamond_leggings.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(nether_diamond_boots, nether_diamond_boots.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(nether_diamond_sword, nether_diamond_sword.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(nether_diamond_pickaxe, nether_diamond_pickaxe.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(nether_diamond_spade, nether_diamond_spade.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(nether_diamond_axe, nether_diamond_axe.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(nether_diamond_hoe, nether_diamond_hoe.getUnlocalizedName().substring(5));
 //GameRegistry.registerItem(test_staff, test_staff.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(staff_handle, staff_handle.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(day_orb, day_orb.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(night_orb, night_orb.getUnlocalizedName().substring(5));
 //GameRegistry.registerItem(table_salt, table_salt.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(lapis_sword, lapis_sword.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(lapis_pickaxe, lapis_pickaxe.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(lapis_spade, lapis_spade.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(lapis_axe, lapis_axe.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(lapis_hoe, lapis_hoe.getUnlocalizedName().substring(5));
 //GameRegistry.registerItem(ruby_bow, ruby_bow.getUnlocalizedName().substring(5));
 //GameRegistry.registerItem(cherry, cherry.getUnlocalizedName().substring(5));
 //GameRegistry.registerItem(smoke_pearl, smoke_pearl.getUnlocalizedName().substring(5));
 //GameRegistry.registerItem(throwable_knife, throwable_knife.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(calamari, calamari.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(cooked_calamari, cooked_calamari.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(base_orb, base_orb.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(otherlyworld_teleporter_orb, otherlyworld_teleporter_orb.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(wolf_meat, wolf_meat.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(cooked_wolf_meat, cooked_wolf_meat.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(wolf_fur, wolf_fur.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(wolf_fur_helmet, wolf_fur_helmet.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(wolf_fur_chestplate, wolf_fur_chestplate.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(wolf_fur_leggings, wolf_fur_leggings.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(wolf_fur_boots, wolf_fur_boots.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(darkness_ingot, darkness_ingot.getUnlocalizedName().substring(5));
 //GameRegistry.registerItem(tomato_seeds, tomato_seeds.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(tomato, tomato.getUnlocalizedName().substring(5));
 //GameRegistry.registerItem(gravity_gem, gravity_gem.getUnlocalizedName().substring(5));
 //GameRegistry.registerItem(portable_bed, portable_bed.getUnlocalizedName().substring(5));
 //GameRegistry.registerItem(gold_reeds, gold_reeds.getUnlocalizedName().substring(5));
 GameRegistry.registerItem(lapis_stick, lapis_stick.getUnlocalizedName().substring(5));
 //GameRegistry.registerItem(paper_cone, paper_cone.getUnlocalizedName().substring(5));'
 GameRegistry.registerItem(empty_salt_shaker, empty_salt_shaker.getUnlocalizedName().substring(5));

 //Crafting
 GameRegistry.addRecipe(new ItemStack(staff_handle), new Object[]{
	 "nsd", "rsr", "dsn", 'n', nether_diamond, 's', Items.stick, 'd', Items.diamond, 'r', Items.redstone
 });
 GameRegistry.addRecipe(new ItemStack(ruby_sword), new Object[]{
	 "r","r","s", 'r',ruby, 's', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(ruby_pickaxe), new Object[]{
	 "rrr"," s "," s ", 'r',ruby, 's', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(ruby_axe), new Object[]{
	 "rr ","rs "," s ", 'r',ruby, 's', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(ruby_spade), new Object[]{
	 "r","s","s", 'r',ruby, 's', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(ruby_hoe), new Object[]{
	 "rr "," s "," s ", 'r',ruby, 's', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(ruby_hoe), new Object[]{
 " rr"," s "," s ", 'r',ruby, 's', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(MoreOresModBlocks.ruby_block), new Object[]{
	 "rrr","rrr","rrr", 'r',ruby
 });
 GameRegistry.addRecipe(new ItemStack(ruby, 9), new Object[]{
	 "r", 'r',MoreOresModBlocks.ruby_block
 });
 GameRegistry.addRecipe(new ItemStack(ruby_helmet), new Object[]{
	 "rrr","r r", 'r',ruby
 });
 GameRegistry.addRecipe(new ItemStack(ruby_chestplate), new Object[]{
	 "r r","rrr","rrr", 'r',ruby
 });
 GameRegistry.addRecipe(new ItemStack(ruby_leggings), new Object[]{
	 "rrr","r r","r r", 'r',ruby
 });
 GameRegistry.addRecipe(new ItemStack(ruby_boots), new Object[]{
	 "r r","r r", 'r',ruby
 });
 GameRegistry.addRecipe(new ItemStack(nether_stick, 4), new Object[]{
	 "n","n", 'n',Items.netherbrick
 });
 GameRegistry.addRecipe(new ItemStack(wolf_fur_helmet), new Object[]{
	 "fff", "f f", 'f', wolf_fur
 });
 GameRegistry.addRecipe(new ItemStack(wolf_fur_chestplate), new Object[]{
	 "f f", "fff", "fff", 'f', wolf_fur
 });
 GameRegistry.addRecipe(new ItemStack(wolf_fur_leggings), new Object[]{
	 "fff", "f f", "f f", 'f', wolf_fur
 });
 GameRegistry.addRecipe(new ItemStack(wolf_fur_boots), new Object[]{
	 "f f", "f f", 'f', wolf_fur
 });
 GameRegistry.addRecipe(new ItemStack(MoreOresModBlocks.otherlyworld_brick_fence), new Object[]{
	 "   ", "bbb", "bbb", 'b', MoreOresModBlocks.otherlyworld_brick
 });
 /*GameRegistry.addRecipe(new ItemStack(MoreOresModBlocks.super_tnt),new Object[]{
	 "gtg","tgt","gtg",'g',Items.gunpowder,'t',Blocks.tnt
 });*/
 GameRegistry.addRecipe(new ItemStack(base_orb),new Object[]{
	 "ddd", "d d", "ddd", 'd', Items.diamond
 });
 GameRegistry.addRecipe(new ItemStack(MoreOresModBlocks.mushroom_block), new Object[]{
	 "rrr","rrr","rrr",'r',Blocks.red_mushroom

 });
 GameRegistry.addRecipe(new ItemStack(otherlyworld_teleporter_orb), new Object[]{
	 "ggg","dod","ddd",'g',MoreOresModBlocks.otherlyworld_grass,'d',MoreOresModBlocks.otherlyworld_dirt,'o',base_orb
 });
 GameRegistry.addRecipe(new ItemStack(MoreOresModBlocks.cake_fire_resitance), new Object[]{
	 "pmp","mcm","pmp", 'p', Items.blaze_powder, 'm', Items.magma_cream, 'c', Items.cake
 });
 GameRegistry.addRecipe(new ItemStack(MoreOresModBlocks.darkness_block), new Object[]{
	 "ddd", "ddd", "ddd", 'd', darkness_ingot
 });

 GameRegistry.addRecipe(new ItemStack(gold_reeds), new Object[]{
	 "ggg","grg","ggg", 'g', Blocks.gold_block, 'r', Items.reeds
 });

 GameRegistry.addRecipe(new ItemStack(lapis_stick), new Object[]{
	 " l ", "lsl", " l ", 's', Items.stick, 'l', new ItemStack(Items.dye, 1, EnumDyeColor.BLUE.getDyeDamage())
 });

 GameRegistry.addRecipe(new ItemStack(lapis_sword), new Object[]{
	 " l ", " l ", " s ", 's', lapis_stick, 'l', new ItemStack(Items.dye, 1, EnumDyeColor.BLUE.getDyeDamage())
 });
 GameRegistry.addRecipe(new ItemStack(lapis_pickaxe), new Object[]{
	 "lll", " s ", " s ", 's', lapis_stick, 'l', new ItemStack(Items.dye, 1, EnumDyeColor.BLUE.getDyeDamage())
 });
 GameRegistry.addRecipe(new ItemStack(day_orb), new Object[]{
	 "dbd", "bob","dbd", 'd', Blocks.diamond_block, 'b', Items.blaze_powder, 'o', base_orb
 });
 GameRegistry.addRecipe(new ItemStack(night_orb), new Object[]{
	"lbl", "bob", "lbl", 'l', Blocks.lapis_block, 'b', Items.blaze_powder, 'o', base_orb 
 });
 GameRegistry.addRecipe(new ItemStack(day_staff), new Object[]{
	 "hoh", " h ", " h ", 'h', staff_handle, 'o', day_orb
 });
 GameRegistry.addRecipe(new ItemStack(night_staff), new Object[]{
	 "hoh", " h ", " h ", 'h', staff_handle, 'o', night_orb 
 });
 GameRegistry.addRecipe(new ItemStack(paper_cone), new Object[]{
	 "   ", "p p", " p ", 'p', Items.paper
 });

 GameRegistry.addRecipe(new ItemStack(empty_salt_shaker), new Object[]{
		 "iii", "g g", "ggg", 'i', Items.iron_ingot, 'g', Blocks.glass
 });

 //Smelting
 GameRegistry.addSmelting(new ItemStack(MoreOresModBlocks.ender_ingot_ore),new ItemStack(ender_ingot), 30.0f);
 GameRegistry.addSmelting(new ItemStack(calamari),new ItemStack(cooked_calamari), 10.0f);
 GameRegistry.addSmelting(new ItemStack(wolf_meat), new ItemStack(cooked_wolf_meat), 10.0f);
 GameRegistry.addSmelting(new ItemStack(MoreOresModBlocks.darkness_ore), new ItemStack(darkness_ingot), 30.0f);
}

public static void registerRenders() {

 registerRender(ruby);
 registerRender(ruby_sword);
 registerRender(ruby_pickaxe);
 registerRender(ruby_spade);
 registerRender(ruby_axe);
 registerRender(ruby_hoe);
 registerRender(ruby_helmet);
 registerRender(ruby_chestplate);
 registerRender(ruby_leggings);
 registerRender(ruby_boots);
 registerRender(nether_diamond);
 registerRender(ender_ingot);
 registerRender(night_staff);
 registerRender(day_staff);
 registerRender(healing_staff);
 registerRender(ender_ingot_helmet);
 registerRender(ender_ingot_chestplate);
 registerRender(ender_ingot_leggings);
 registerRender(ender_ingot_boots);
 registerRender(ender_ingot_sword);
 registerRender(ender_ingot_pickaxe);
 registerRender(ender_ingot_spade);
 registerRender(ender_ingot_axe);
 registerRender(ender_ingot_hoe);
 registerRender(nether_stick);
 registerRender(staff_handle);
 registerRender(table_salt);
 registerRender(nether_diamond_helmet);
 registerRender(nether_diamond_chestplate);
 registerRender(nether_diamond_leggings);
 registerRender(nether_diamond_boots);
 registerRender(nether_diamond_sword);
 registerRender(nether_diamond_pickaxe);
 registerRender(nether_diamond_spade);
 registerRender(nether_diamond_axe);
 registerRender(nether_diamond_hoe);
 registerRender(lapis_sword);
 registerRender(lapis_pickaxe);
 registerRender(lapis_spade);
 registerRender(lapis_axe);
 registerRender(lapis_hoe);
 registerRender(smoke_pearl);
 registerRender(calamari);
 registerRender(cooked_calamari);
 registerRender(base_orb);
 registerRender(otherlyworld_teleporter_orb);
 registerRender(darkness_ingot);
 registerRender(tomato_seeds);
 registerRender(tomato);
 registerRender(lapis_stick);
 registerRender(day_orb);
 registerRender(night_orb);
 registerRender(paper_cone);
 registerRender(wolf_fur);
 registerRender(wolf_fur_helmet);
 registerRender(wolf_fur_chestplate);
 registerRender(wolf_fur_leggings);
 registerRender(wolf_fur_boots);
 registerRender(wolf_meat);
 registerRender(cooked_wolf_meat);
}

public static void registerRender(Item item) {
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "Inventory")); 
}
}

Link to comment
Share on other sites

Same to me, was trying to add a custom Axe, but it crashes because of this

private static final float[] ATTACK_DAMAGES = new float[] {6.0F, 8.0F, 8.0F, 8.0F, 6.0F};

It takes the damage as an index for that array, not as a value

Don't blame me if i always ask for your help. I just want to learn to be better :)

Link to comment
Share on other sites

I think this is a bug. The

ItemAxe

constructor gets a value from an array, which position is based on the

ToolMaterial

's ordinal. You created a new

ToolMaterial

, and it's ordinal is bigger size of the array, so it causes an

ArrayIndexOutOfBoundsException

. A workaround is creating a copy of the

ItemAxe

class, and change the crashing lines to something... not crashing...

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • 🤑DAFTAR & LOGIN🤑 🤑DAFTAR & LOGIN🤑 🤑DAFTAR & LOGIN🤑   Daftar Slot Asusslot adalah bocoran slot rekomendasi gacor dari Asusslot yang bisa anda temukan di SLOT Asusslot. Situs SLOT Asusslot hari ini yang kami bagikan di sini adalah yang terbaik dan bersiaplah untuk mengalami sensasi tak terlupakan dalam permainan slot online. Temukan game SLOT Asusslot terbaik dengan 100 pilihan provider ternama yang dipercaya akan memberikan kepuasan dan kemenangan hari ini untuk meraih x500. RTP SLOT Asusslot merupakan SLOT Asusslot hari ini yang telah menjadi pilihan utama bagi pemain judi online di seluruh Indonesia. Setiap harinya jutaan pemain memasuki dunia maya untuk memperoleh hiburan seru dan kemenangan besar dalam bermain slot dengan adanya bocoran RTP SLOT Asusslot. Tidak ada yang lebih menyenangkan daripada mengungguli mesin slot dan meraih jackpot x500 yang menggiurkan di situs SLOT Asusslot hari ini yang telah disediakan SLOT Asusslot. Menangkan jackpot besar x500 rajanya maxwin dari segala slot dan raih kemenangan spektakuler di situs Asusslot terbaik 2024 adalah tempat yang menyediakan mesin slot dengan peluang kemenangan lebih tinggi daripada situs slot lainnya. Bagi anda yang mencari pengalaman judi slot paling seru dan mendebarkan, situs bo SLOT Asusslot terbaik 2024 adalah pilihan yang tepat. Jelajahi dunia slot online melalui situs SLOT Asusslot di link SLOT Asusslot.
    • 🤑DAFTAR & LOGIN🤑 🤑DAFTAR & LOGIN🤑 🤑DAFTAR & LOGIN🤑 Daftar Slot Galeri555 adalah bocoran slot rekomendasi gacor dari Galeri555 yang bisa anda temukan di SLOT Galeri555. Situs SLOT Galeri555 hari ini yang kami bagikan di sini adalah yang terbaik dan bersiaplah untuk mengalami sensasi tak terlupakan dalam permainan slot online. Temukan game SLOT Galeri555 terbaik dengan 100 pilihan provider ternama yang dipercaya akan memberikan kepuasan dan kemenangan hari ini untuk meraih x500. RTP SLOT Galeri555 merupakan SLOT Galeri555 hari ini yang telah menjadi pilihan utama bagi pemain judi online di seluruh Indonesia. Setiap harinya jutaan pemain memasuki dunia maya untuk memperoleh hiburan seru dan kemenangan besar dalam bermain slot dengan adanya bocoran RTP SLOT Galeri555. Tidak ada yang lebih menyenangkan daripada mengungguli mesin slot dan meraih jackpot x500 yang menggiurkan di situs SLOT Galeri555 hari ini yang telah disediakan SLOT Galeri555. Menangkan jackpot besar x500 rajanya maxwin dari segala slot dan raih kemenangan spektakuler di situs Galeri555 terbaik 2024 adalah tempat yang menyediakan mesin slot dengan peluang kemenangan lebih tinggi daripada situs slot lainnya. Bagi anda yang mencari pengalaman judi slot paling seru dan mendebarkan, situs bo SLOT Galeri555 terbaik 2024 adalah pilihan yang tepat. Jelajahi dunia slot online melalui situs SLOT Galeri555 di link SLOT Galeri555.
    • 🤑DAFTAR & LOGIN🤑 🤑DAFTAR & LOGIN🤑 🤑DAFTAR & LOGIN🤑 Daftar Slot Kocok303 adalah bocoran slot rekomendasi gacor dari Kocok303 yang bisa anda temukan di SLOT Kocok303. Situs SLOT Kocok303 hari ini yang kami bagikan di sini adalah yang terbaik dan bersiaplah untuk mengalami sensasi tak terlupakan dalam permainan slot online. Temukan game SLOT Kocok303 terbaik dengan 100 pilihan provider ternama yang dipercaya akan memberikan kepuasan dan kemenangan hari ini untuk meraih x500. RTP SLOT Kocok303 merupakan SLOT Kocok303 hari ini yang telah menjadi pilihan utama bagi pemain judi online di seluruh Indonesia. Setiap harinya jutaan pemain memasuki dunia maya untuk memperoleh hiburan seru dan kemenangan besar dalam bermain slot dengan adanya bocoran RTP SLOT Kocok303. Tidak ada yang lebih menyenangkan daripada mengungguli mesin slot dan meraih jackpot x500 yang menggiurkan di situs SLOT Kocok303 hari ini yang telah disediakan SLOT Kocok303. Menangkan jackpot besar x500 rajanya maxwin dari segala slot dan raih kemenangan spektakuler di situs Kocok303 terbaik 2024 adalah tempat yang menyediakan mesin slot dengan peluang kemenangan lebih tinggi daripada situs slot lainnya. Bagi anda yang mencari pengalaman judi slot paling seru dan mendebarkan, situs bo SLOT Kocok303 terbaik 2024 adalah pilihan yang tepat. Jelajahi dunia slot online melalui situs SLOT Kocok303 di link SLOT Kocok303.
    • 🤑DAFTAR & LOGIN🤑 🤑DAFTAR & LOGIN🤑 🤑DAFTAR & LOGIN🤑 Slot Aster88 adalah bocoran slot rekomendasi gacor dari Aster88 yang bisa anda temukan di SLOT Aster88. Situs SLOT Aster88 hari ini yang kami bagikan di sini adalah yang terbaik dan bersiaplah untuk mengalami sensasi tak terlupakan dalam permainan slot online. Temukan game SLOT Aster88 terbaik dengan 100 pilihan provider ternama yang dipercaya akan memberikan kepuasan dan kemenangan hari ini untuk meraih x500. RTP SLOT Aster88 merupakan SLOT Aster88 hari ini yang telah menjadi pilihan utama bagi pemain judi online di seluruh Indonesia. Setiap harinya jutaan pemain memasuki dunia maya untuk memperoleh hiburan seru dan kemenangan besar dalam bermain slot dengan adanya bocoran RTP SLOT Aster88. Tidak ada yang lebih menyenangkan daripada mengungguli mesin slot dan meraih jackpot x500 yang menggiurkan di situs SLOT Aster88 hari ini yang telah disediakan SLOT Aster88. Menangkan jackpot besar x500 rajanya maxwin dari segala slot dan raih kemenangan spektakuler di situs Aster88 terbaik 2024 adalah tempat yang menyediakan mesin slot dengan peluang kemenangan lebih tinggi daripada situs slot lainnya. Bagi anda yang mencari pengalaman judi slot paling seru dan mendebarkan, situs bo SLOT Aster88 terbaik 2024 adalah pilihan yang tepat. Jelajahi dunia slot online melalui situs SLOT Aster88 di link SLOT Aster88.
    • 🚀Link Daftar Klik Disini🚀 Tips Bermain Slot Bank Jago agar Meraih Maxwin dan Jackpot di MAXWINBET77 Bermain slot online Bank jago adalah cara yang seru dan mengasyikkan untuk mencari keuntungan besar di MAXWINBET77. Jika kamu ingin meningkatkan peluangmu untuk meraih maxwin dan jackpot secara terus-menerus, ada beberapa tips dan strategi yang bisa kamu terapkan. Berikut adalah panduan lengkapnya: Pilih Slot dengan RTP Tinggi: RTP (Return to Player) adalah persentase rata-rata dari total taruhan yang dikembalikan kepada pemain sebagai kemenangan. Pilihlah mesin slot Bank jago yang memiliki RTP tinggi, karena ini meningkatkan peluangmu untuk meraih kemenangan dalam jangka panjang. Kenali Fitur Bonus: Setiap slot Bank jago memiliki fitur bonus yang berbeda, seperti putaran gratis, simbol liar (wild), dan bonus game. Pelajari dengan baik fitur-fitur ini karena mereka dapat membantu meningkatkan peluang meraih kemenangan besar. Kelola Taruhan dengan Bijak: Tentukan batasan taruhan yang sesuai dengan budget dan jangan tergoda untuk bertaruh melebihi kemampuan finansialmu. Terapkan strategi taruhan yang bijak untuk memaksimalkan penggunaan saldo. Mainkan Slot Bank jago Progresif: Jika tujuanmu adalah meraih jackpot besar, coba mainkan slot Bank jago progresif di MAXWINBET77. Jackpot pada jenis slot Bank ini terus bertambah seiring dengan taruhan pemain lainnya, sehingga dapat mencapai jumlah yang sangat besar. Manfaatkan Promosi dan Bonus: MAXWINBET77 sering kali menawarkan promosi dan bonus kepada pemainnya. Manfaatkan bonus-bonus ini untuk meningkatkan peluangmu meraih kemenangan tanpa menggunakan modal tambahan. Berkonsentrasi dan Bersabar: Fokuslah saat bermain slot bank jago dan jangan terburu-buru. Bersabarlah meskipun tidak langsung mendapatkan hasil yang diharapkan. Kadang-kadang diperlukan waktu dan keberuntungan untuk mencapai maxwin atau jackpot. Baca Aturan Permainan: Sebelum bermain, pastikan untuk membaca aturan dan pembayaran pada slot Bank Jago yang dipilih. Mengetahui cara kerja mesin slot akan membantu mengoptimalkan strategi bermainmu. Dengan menerapkan tips-tips di atas dan tetap bermain secara bertanggung jawab, kamu dapat meningkatkan peluang meraih maxwin dan jackpot di Slot Bank Jago MAXWINBET77. Selamat bermain dan semoga sukses meraih kemenangan besar Anda Hari Ini.
  • Topics

×
×
  • Create New...

Important Information

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