Jump to content

Recommended Posts

Posted

Here is my code:

 

package com.jameshyland.MoneyMod;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.init.Items;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraftforge.common.MinecraftForge;

import net.minecraftforge.common.util.EnumHelper;

 

 

import com.jameshyland.MoneyMod.item.itemMoneyPickaxe;

import com.jameshyland.MoneyMod.itemFivePoundNote;

import com.jameshyland.MoneyMod.ItemTwoPoundCoin;

import com.jameshyland.MoneyMod.ItemPoundCoin;

 

 

 

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

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 = "MnyMod", name = "jameshylands Money Mod", version = "1.0")

public class MoneyMod {

 

public static Item itemMoneyDust;

public static Item itemPoundCoin;

public static Item itemTwoPoundCoin;

public static Item itemFivePoundNote;

public static Item itemTenPoundNote;

public static Block blockFiverBlock;

public static Item MoneyPickaxe;

public static Block blockMoneyOre ;

 

public static final Item.ToolMaterial MoneyToolMaterial = EnumHelper.addToolMaterial("MoneyToolMaterial", 2, 1250 , 8.0F, 5.0F, 10);

 

 

 

 

 

 

 

@EventHandler

public void preInit(FMLPreInitializationEvent event) {

//Item/Block init and registering

//Config handling

{

 

 

 

 

        blockMoneyOre = new blockMoneyOre(Material.rock).setBlockName("BlockMoneyOre").setBlockTextureName("mnymod:blockmoneyore").setCreativeTab(tabMoneyMod);

itemPoundCoin = new ItemPoundCoin().setUnlocalizedName("ItemPoundCoin").setTextureName("mnymod:itempoundcoin").setCreativeTab(tabMoneyMod);

itemTwoPoundCoin = new ItemTwoPoundCoin().setUnlocalizedName("ItemTwoPoundCoin").setTextureName("mnymod:itemtwopoundcoin").setCreativeTab(tabMoneyMod);;

itemFivePoundNote = new itemFivePoundNote().setUnlocalizedName("ItemFivePoundNote").setTextureName("mnymod:itemfivepoundnote").setCreativeTab(tabMoneyMod);

blockFiverBlock = new BlockFiverBlock(Material.cloth).setBlockName("BlockFiverBlock").setBlockTextureName("mnymod:blockfiverblock").setCreativeTab(tabMoneyMod);

MoneyPickaxe = new itemMoneyPickaxe(MoneyToolMaterial).setUnlocalizedName("ItemMoneyPickaxe").setTextureName("mnymod:itemmoneypickaxe").setCreativeTab(tabMoneyMod);

itemTenPoundNote = new itemFivePoundNote().setUnlocalizedName("ItemTenPoundNote").setTextureName("mnymod:itemtenpoundnote").setCreativeTab(tabMoneyMod);

itemMoneyDust = new itemMoneyDust().setUnlocalizedName("ItemMoneyDust").setTextureName("mnymod:itemmoneydust").setCreativeTab(tabMoneyMod);;

 

GameRegistry.registerItem(itemFivePoundNote, itemFivePoundNote.getUnlocalizedName().substring(5));

GameRegistry.registerItem(itemTenPoundNote, itemTenPoundNote.getUnlocalizedName().substring(5));

GameRegistry.registerItem(itemTwoPoundCoin, itemTwoPoundCoin.getUnlocalizedName().substring(5));

GameRegistry.registerItem(itemPoundCoin, itemPoundCoin.getUnlocalizedName().substring(5));

GameRegistry.registerBlock(blockFiverBlock, blockFiverBlock.getUnlocalizedName().substring(5));

GameRegistry.registerItem(MoneyPickaxe, MoneyPickaxe.getUnlocalizedName().substring(5));

GameRegistry.registerBlock(blockMoneyOre, blockMoneyOre.getUnlocalizedName().substring(5));

GameRegistry.registerItem(itemMoneyDust, itemMoneyDust.getUnlocalizedName().substring(5));

GameRegistry.registerWorldGenerator(new OreGeneration(), 1);

 

 

}

}

 

 

@EventHandler

public void init (FMLInitializationEvent event) {

//Proxy, TileEntity, entity, GUI and Packet Registering

 

{

 

}

 

//GameRegistry.addRecipe(new ItemStack(MoneyMod.itemFivePoundNote), new Object[]{"STS"," O                    "  , "STS"}, 'T', itemTwoPoundCoin, 'O', itemPoundCoin, 'S', Items.string);

       

GameRegistry.addRecipe(new ItemStack(MoneyPickaxe), new Object []{"NNN",

                                                                          //" S ",

                                                                          //" S ", 'N', itemFivePoundNote, 'S', Items.stick});

 

        //GameRegistry.addShapelessRecipe(new ItemStack(itemPoundCoin), new Object []{"III",

                                                                                    "DDD",

                                                                                    "III", 'D', itemMoneyDust, 'I', Items.iron_ingot} );

 

}

 

@EventHandler

public void postInit(FMLPostInitializationEvent event) {

 

 

}

 

 

public static CreativeTabs tabMoneyMod = new CreativeTabs("tabMoneyMod"){

@Override

public Item getTabIconItem(){

return new ItemStack(itemFivePoundNote).getItem();

 

 

 

 

 

}

};

 

}

 

 

 

The problem I have is that this crafting recipe works:

 

 

GameRegistry.addRecipe(new ItemStack(MoneyPickaxe), new Object []{"NNN",

                                                                          //" S ",

                                                                          //" S ", 'N', itemFivePoundNote, 'S', Items.stick});

 

 

But the other ones do not and return this error report:

 

 

[17:04:36] [main/INFO] [GradleStart]: Extra: []

[17:04:36] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/James/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]

[17:04:36] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[17:04:36] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[17:04:36] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker

[17:04:36] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[17:04:36] [main/INFO] [FML]: Forge Mod Loader version 7.99.36.1558 for Minecraft 1.7.10 loading

[17:04:36] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0_65, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jdk1.8.0_65\jre

[17:04:36] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[17:04:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker

[17:04:36] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin

[17:04:36] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[17:04:36] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[17:04:36] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[17:04:36] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[17:04:36] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[17:04:36] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[17:04:36] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[17:04:37] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[17:04:37] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[17:04:37] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[17:04:37] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[17:04:37] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[17:04:37] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker

[17:04:37] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker

[17:04:37] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[17:04:38] [main/INFO]: Setting user: Player738

[17:04:39] [Client thread/INFO]: LWJGL Version: 2.9.1

[17:04:39] [Client thread/INFO] [sTDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----

// But it works on my machine.

 

Time: 10/12/15 17:04

Description: Loading screen debug info

 

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR

 

 

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

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Windows 8.1 (amd64) version 6.3

Java Version: 1.8.0_65, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 777672248 bytes (741 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML:

GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 347.25' Renderer: 'GeForce GTX 960/PCIe/SSE2'

[17:04:39] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[17:04:39] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1558 Initialized

[17:04:39] [Client thread/INFO] [FML]: Replaced 183 ore recipies

[17:04:39] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[17:04:39] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer

[17:04:39] [Client thread/INFO] [FML]: Searching C:\Users\James\Desktop\Minecraft Mod\eclipse\mods for mods

[17:04:43] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[17:04:43] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, MnyMod] at CLIENT

[17:04:43] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, MnyMod] at SERVER

[17:04:44] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Money Mods

[17:04:44] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[17:04:44] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations

[17:04:44] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations

[17:04:44] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations

[17:04:44] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[17:04:44] [Client thread/INFO] [FML]: Applying holder lookups

[17:04:44] [Client thread/INFO] [FML]: Holder lookups applied

[17:04:44] [Client thread/INFO] [FML]: Injecting itemstacks

[17:04:44] [Client thread/INFO] [FML]: Itemstack injection complete

[17:04:44] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[17:04:44] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[17:04:44] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

[17:04:44] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[17:04:44] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[17:04:44] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[17:04:44] [sound Library Loader/INFO]: Sound engine started

[17:04:45] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas

[17:04:45] [Client thread/INFO]: Created: 16x16 textures/items-atlas

[17:04:45] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue

[17:04:45] [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

UCHI mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)

UCHI FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)

UCHI Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)

UCHE MnyMod{1.0} [Money Mods] (bin)

[17:04:45] [Client thread/ERROR] [FML]: The following problems were captured during this phase

[17:04:45] [Client thread/ERROR] [FML]: Caught exception from MnyMod

java.lang.RuntimeException: Invalid shapeless recipy!

at net.minecraft.item.crafting.CraftingManager.addShapelessRecipe(CraftingManager.java:271) ~[forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar:?]

at cpw.mods.fml.common.registry.GameRegistry.addShapelessRecipe(GameRegistry.java:255) ~[forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar:?]

at com.jameshyland.MoneyMod.MoneyMod.init(MoneyMod.java:96) ~[bin/:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65]

at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65]

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) ~[forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65]

at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65]

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 cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) ~[forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar:?]

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65]

at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65]

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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?]

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737) [Loader.class:?]

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:597) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65]

at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65]

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 net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]

at GradleStart.main(Unknown Source) [start/:?]

[17:04:45] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----

// Everything's going to plan. No, really, that was supposed to happen.

 

Time: 10/12/15 17:04

Description: Initializing game

 

java.lang.RuntimeException: Invalid shapeless recipy!

at net.minecraft.item.crafting.CraftingManager.addShapelessRecipe(CraftingManager.java:271)

at cpw.mods.fml.common.registry.GameRegistry.addShapelessRecipe(GameRegistry.java:255)

at com.jameshyland.MoneyMod.MoneyMod.init(MoneyMod.java:96)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

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 cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:597)

at net.minecraft.client.Minecraft.run(Minecraft.java:942)

at net.minecraft.client.main.Main.main(Main.java:164)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)

at GradleStart.main(Unknown Source)

 

 

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

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.item.crafting.CraftingManager.addShapelessRecipe(CraftingManager.java:271)

at cpw.mods.fml.common.registry.GameRegistry.addShapelessRecipe(GameRegistry.java:255)

at com.jameshyland.MoneyMod.MoneyMod.init(MoneyMod.java:96)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

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 cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:597)

 

-- Initialization --

Details:

Stacktrace:

at net.minecraft.client.Minecraft.run(Minecraft.java:942)

at net.minecraft.client.main.Main.main(Main.java:164)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)

at GradleStart.main(Unknown Source)

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Windows 8.1 (amd64) version 6.3

Java Version: 1.8.0_65, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 654310928 bytes (623 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 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

UCHI mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)

UCHI FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)

UCHI Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)

UCHE MnyMod{1.0} [Money Mods] (bin)

GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 347.25' Renderer: 'GeForce GTX 960/PCIe/SSE2'

Launched Version: 1.7.10

LWJGL: 2.9.1

OpenGL: GeForce GTX 960/PCIe/SSE2 GL version 4.5.0 NVIDIA 347.25, NVIDIA Corporation

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)

 

 

 

Posted

You've commented out the last two lines of the Money Pickaxe recipe and the first line of the Pound Coin recipe. You've also commented out the Five Pound Note recipe, which contains an invalid shape string (the one with the O and a bunch of spaces).

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

here you go

 

 

package com.jameshyland.MoneyMod;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.init.Items;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraftforge.common.MinecraftForge;

import net.minecraftforge.common.util.EnumHelper;

 

 

 

import com.jameshyland.MoneyMod.item.itemMoneyPickaxe;

import com.jameshyland.MoneyMod.itemFivePoundNote;

import com.jameshyland.MoneyMod.ItemTwoPoundCoin;

import com.jameshyland.MoneyMod.ItemPoundCoin;

 

 

 

 

import cpw.mods.fml.common.FMLCommonHandler;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

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 = "MnyMod", name = "jameshylands Money Mod", version = "1.0")

public class MoneyMod {

 

public static Item itemMoneyDust;

public static Item itemPoundCoin;

public static Item itemTwoPoundCoin;

public static Item itemFivePoundNote;

public static Item itemTenPoundNote;

public static Block blockFiverBlock;

public static Item MoneyPickaxe;

public static Block blockMoneyOre ;

 

public static final Item.ToolMaterial MoneyToolMaterial = EnumHelper.addToolMaterial("MoneyToolMaterial", 2, 1250 , 8.0F, 5.0F, 10);

 

 

MnyModEventHandler handler = new MnyModEventHandler();

 

 

 

 

@EventHandler

public void preInit(FMLPreInitializationEvent event) {

//Item/Block init and registering

//Config handling

{

FMLCommonHandler.instance().bus().register(handler);

MinecraftForge.EVENT_BUS.register(handler);

 

 

        blockMoneyOre = new blockMoneyOre(Material.rock).setBlockName("BlockMoneyOre").setBlockTextureName("mnymod:blockmoneyore").setCreativeTab(tabMoneyMod);

itemPoundCoin = new ItemPoundCoin().setUnlocalizedName("ItemPoundCoin").setTextureName("mnymod:itempoundcoin").setCreativeTab(tabMoneyMod);

itemTwoPoundCoin = new ItemTwoPoundCoin().setUnlocalizedName("ItemTwoPoundCoin").setTextureName("mnymod:itemtwopoundcoin").setCreativeTab(tabMoneyMod);;

itemFivePoundNote = new itemFivePoundNote().setUnlocalizedName("ItemFivePoundNote").setTextureName("mnymod:itemfivepoundnote").setCreativeTab(tabMoneyMod);

blockFiverBlock = new BlockFiverBlock(Material.cloth).setBlockName("BlockFiverBlock").setBlockTextureName("mnymod:blockfiverblock").setCreativeTab(tabMoneyMod);

MoneyPickaxe = new itemMoneyPickaxe(MoneyToolMaterial).setUnlocalizedName("ItemMoneyPickaxe").setTextureName("mnymod:itemmoneypickaxe").setCreativeTab(tabMoneyMod);

itemTenPoundNote = new itemFivePoundNote().setUnlocalizedName("ItemTenPoundNote").setTextureName("mnymod:itemtenpoundnote").setCreativeTab(tabMoneyMod);

itemMoneyDust = new itemMoneyDust().setUnlocalizedName("ItemMoneyDust").setTextureName("mnymod:itemmoneydust").setCreativeTab(tabMoneyMod);;

 

GameRegistry.registerItem(itemFivePoundNote, itemFivePoundNote.getUnlocalizedName().substring(5));

GameRegistry.registerItem(itemTenPoundNote, itemTenPoundNote.getUnlocalizedName().substring(5));

GameRegistry.registerItem(itemTwoPoundCoin, itemTwoPoundCoin.getUnlocalizedName().substring(5));

GameRegistry.registerItem(itemPoundCoin, itemPoundCoin.getUnlocalizedName().substring(5));

GameRegistry.registerBlock(blockFiverBlock, blockFiverBlock.getUnlocalizedName().substring(5));

GameRegistry.registerItem(MoneyPickaxe, MoneyPickaxe.getUnlocalizedName().substring(5));

GameRegistry.registerBlock(blockMoneyOre, blockMoneyOre.getUnlocalizedName().substring(5));

GameRegistry.registerItem(itemMoneyDust, itemMoneyDust.getUnlocalizedName().substring(5));

GameRegistry.registerWorldGenerator(new OreGeneration(), 1);

 

 

}

}

 

 

@EventHandler

public void init (FMLInitializationEvent event) {

//Proxy, TileEntity, entity, GUI and Packet Registering

 

{

 

}

 

 

       

GameRegistry.addRecipe(new ItemStack(MoneyPickaxe), new Object []{"NNN",

                                                                          " S ",

                                                                          " S ", 'N', itemFivePoundNote, 'S', Items.stick});

 

GameRegistry.addRecipe(new ItemStack(itemPoundCoin), new Object []{"III",

                                                                          "DDD",

                                                                          "III", 'D', itemMoneyDust, 'I', Items.iron_ingot} );

 

}

 

@EventHandler

public void postInit(FMLPostInitializationEvent event) {

 

 

}

 

 

public static CreativeTabs tabMoneyMod = new CreativeTabs("tabMoneyMod"){

@Override

public Item getTabIconItem(){

return new ItemStack(itemFivePoundNote).getItem();

}

};

 

}

 

 

Posted

Those recipes look like they should work. Which one isn't working and how is it not working? Is it crashing the game or does it just not output the result when you put the correct ingredients in?

 

To make a shapeless recipe, call

GameRegistry.addShapelessRecipe

with the output

ItemStack

and the ingredients (can be

ItemStack

s,

Item

s or

Block

s).

 

When you call a vararg method like

GameRegistry.addRecipe

you don't need to explicitly create an array, just pass in the arguments as normal and an array will automatically be created. This is the entire point of vararg methods.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

Thanks all for the replies.

The crafting recipe that doesnt work is

 

GameRegistry.addRecipe(new ItemStack(MoneyMod.itemFivePoundNote), new Object[]{"STS",

"                                                                                                                                              " O  " ,

                                                                                                                                                "STS"}, 'T', itemTwoPoundCoin, 'O', itemPoundCoin, 'S', Items.string);           

 

and crashes with the same

 

[18:19:43] [main/INFO] [GradleStart]: Extra: []
[18:19:43] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/James/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[18:19:43] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[18:19:43] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[18:19:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[18:19:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[18:19:43] [main/INFO] [FML]: Forge Mod Loader version 7.99.36.1558 for Minecraft 1.7.10 loading
[18:19:43] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_65, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jdk1.8.0_65\jre
[18:19:43] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[18:19:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[18:19:43] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
[18:19:43] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[18:19:43] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:19:43] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[18:19:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[18:19:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:19:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:19:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:19:43] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[18:19:44] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[18:19:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:19:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[18:19:45] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[18:19:45] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[18:19:45] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[18:19:45] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[18:19:46] [main/INFO]: Setting user: Player436
[18:19:48] [Client thread/INFO]: LWJGL Version: 2.9.1
[18:19:49] [Client thread/INFO] [sTDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
// Don't be sad, have a hug! <3

Time: 10/12/15 18:19
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


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

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_65, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 792943328 bytes (756 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: 
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 347.25' Renderer: 'GeForce GTX 960/PCIe/SSE2'
[18:19:49] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[18:19:49] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1558 Initialized
[18:19:49] [Client thread/INFO] [FML]: Replaced 183 ore recipies
[18:19:49] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[18:19:50] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[18:19:50] [Client thread/INFO] [FML]: Searching C:\Users\James\Desktop\Minecraft Mod\eclipse\mods for mods
[18:19:55] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[18:19:56] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, MnyMod] at CLIENT
[18:19:56] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, MnyMod] at SERVER
[18:19:56] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Money Mods
[18:19:56] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[18:19:56] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
[18:19:56] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[18:19:56] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[18:19:56] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[18:19:56] [Client thread/INFO] [FML]: Applying holder lookups
[18:19:56] [Client thread/INFO] [FML]: Holder lookups applied
[18:19:56] [Client thread/INFO] [FML]: Injecting itemstacks
[18:19:56] [Client thread/INFO] [FML]: Itemstack injection complete
[18:19:56] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[18:19:56] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[18:19:56] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[18:19:56] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[18:19:56] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[18:19:57] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[18:19:57] [sound Library Loader/INFO]: Sound engine started
[18:19:57] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
[18:19:57] [Client thread/INFO]: Created: 16x16 textures/items-atlas
[18:19:57] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
[18:19:57] [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
UCHI	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
UCHI	FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
UCHI	Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
UCHE	MnyMod{1.0} [Money Mods] (bin) 
[18:19:57] [Client thread/ERROR] [FML]: The following problems were captured during this phase
[18:19:57] [Client thread/ERROR] [FML]: Caught exception from MnyMod
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.lang.Character
at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:209) ~[forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar:?]
at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:250) ~[forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar:?]
at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:245) ~[forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar:?]
at com.jameshyland.MoneyMod.MoneyMod.init(MoneyMod.java:95) ~[bin/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65]
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) ~[forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65]
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 cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) ~[forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar:?]
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65]
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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?]
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737) [Loader.class:?]
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:597) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65]
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 net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
[18:19:57] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----
// I just don't know what went wrong 

Time: 10/12/15 18:19
Description: Initializing game

java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.lang.Character
at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:209)
at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:250)
at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:245)
at com.jameshyland.MoneyMod.MoneyMod.init(MoneyMod.java:95)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
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 cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:597)
at net.minecraft.client.Minecraft.run(Minecraft.java:942)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)


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

-- Head --
Stacktrace:
at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:209)
at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:250)
at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:245)
at com.jameshyland.MoneyMod.MoneyMod.init(MoneyMod.java:95)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
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 cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:597)

-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:942)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_65, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 658047544 bytes (627 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 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
UCHI	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
UCHI	FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
UCHI	Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
UCHE	MnyMod{1.0} [Money Mods] (bin) 
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 347.25' Renderer: 'GeForce GTX 960/PCIe/SSE2'
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: GeForce GTX 960/PCIe/SSE2 GL version 4.5.0 NVIDIA 347.25, NVIDIA Corporation
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.
{code}

Posted

You've passed the shape strings in their own object array (

Object[]

). Either pass them directly to the method like you have for the ingredients or pass them in a string array (

String[]

) (this only works because the code explicitly checks for a string array as one of the arguments).

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

In addition, your " O  " argument has an extra space in it.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

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.