[Forge 1492] Problème de craft



  • Bonjour

    J'ai un petit soucis avec mes crafts.

    ***Crash log :***

    [17:27:03] [main/INFO]: Extra: []
    [17:27:03] [main/INFO]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Family/.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:27:03] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
    [17:27:03] [main/INFO]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
    [17:27:03] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [17:27:03] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
    [17:27:03] [main/INFO]: Forge Mod Loader version 7.99.30.1492 for Minecraft 1.7.10 loading
    [17:27:03] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_60, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_60
    [17:27:03] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [17:27:03] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [17:27:03] [main/INFO]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
    [17:27:03] [main/INFO]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [17:27:03] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [17:27:03] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
    [17:27:03] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [17:27:03] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [17:27:03] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [17:27:03] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
    [17:27:04] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
    [17:27:08] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing
    [17:27:08] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
    [17:27:08] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
    [17:27:09] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [17:27:09] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
    [17:27:09] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
    [17:27:09] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    [17:27:12] [main/INFO]: Setting user: Player134
    [17:27:15] [Client thread/INFO]: LWJGL Version: 2.9.1
    [17:27:17] [Client thread/INFO]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ----
    // But it works on my machine.

    Time: 24/10/15 17:27
    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 7 (amd64) version 6.1
    Java Version: 1.8.0_60, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 930963080 bytes (887 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 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: 'Intel' Version: '2.1.0 - Build 8.15.10.2302' Renderer: 'Mobile Intel(R) 4 Series Express Chipset Family'
    [17:27:17] [Client thread/INFO]: Attempting early MinecraftForge initialization
    [17:27:17] [Client thread/INFO]: MinecraftForge v10.13.4.1492 Initialized
    [17:27:17] [Client thread/INFO]: Replaced 183 ore recipies
    [17:27:17] [Client thread/INFO]: Completed early MinecraftForge initialization
    [17:27:18] [Client thread/INFO]: Found 0 mods from the command line. Injecting into mod discoverer
    [17:27:18] [Client thread/INFO]: Searching C:\Users\Family\Desktop\Java Modding\Mod 1.7.10\eclipse\mods for mods
    [17:27:34] [Client thread/INFO]: Forge Mod Loader has identified 4 mods to load
    [17:27:35] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, mod] at CLIENT
    [17:27:35] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, mod] at SERVER
    [17:27:36] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mod
    [17:27:36] [Client thread/INFO]: Processing ObjectHolder annotations
    [17:27:36] [Client thread/INFO]: Found 341 ObjectHolder annotations
    [17:27:36] [Client thread/INFO]: Identifying ItemStackHolder annotations
    [17:27:36] [Client thread/INFO]: Found 0 ItemStackHolder annotations
    [17:27:36] [Client thread/INFO]: Configured a dormant chunk cache size of 0
    [17:27:36] [Client thread/INFO]: Applying holder lookups
    [17:27:36] [Client thread/INFO]: Holder lookups applied
    [17:27:36] [Client thread/INFO]: Injecting itemstacks
    [17:27:36] [Client thread/INFO]: Itemstack injection complete
    [17:27:36] [Client thread/ERROR]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
    [17:27:36] [Client thread/ERROR]: 
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
    UCH FML{7.10.99.99} [Forge Mod Loader] (forgeBin-1.7.10-10.13.4.1492-1.7.10.jar) 
    UCH Forge{10.13.4.1492} [Minecraft Forge] (forgeBin-1.7.10-10.13.4.1492-1.7.10.jar) 
    UCE mod{1.0.0} [Mod] (bin) 
    [17:27:36] [Client thread/ERROR]: The following problems were captured during this phase
    [17:27:36] [Client thread/ERROR]: Caught exception from mod
    java.lang.NullPointerException
    at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:230) ~[forgeBin-1.7.10-10.13.4.1492-1.7.10.jar:?]
    at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:250) ~[forgeBin-1.7.10-10.13.4.1492-1.7.10.jar:?]
    at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:245) ~[forgeBin-1.7.10-10.13.4.1492-1.7.10.jar:?]
    at com.SpyMan.mod.MainClass.preInit(MainClass.java:174) ~[bin/:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) ~[forgeBin-1.7.10-10.13.4.1492-1.7.10.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]
    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) ~[forgeBin-1.7.10-10.13.4.1492-1.7.10.jar:?]
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[forgeBin-1.7.10-10.13.4.1492-1.7.10.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]
    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.preinitializeMods(Loader.java:556) [Loader.class:?]
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) [FMLClientHandler.class:?]
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:480) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:878) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]
    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:27:36] [Client thread/INFO]: [net.minecraft.client.Minecraft:displayCrashReport:349]: –-- Minecraft Crash Report ----
    // But it works on my machine.

    Time: 24/10/15 17:27
    Description: Initializing game

    java.lang.NullPointerException: Initializing game
    at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:230)
    at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:250)
    at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:245)
    at com.SpyMan.mod.MainClass.preInit(MainClass.java:174)
    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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
    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 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(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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
    at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:480)
    at net.minecraft.client.Minecraft.run(Minecraft.java:878)
    at net.minecraft.client.main.Main.main(SourceFile:148)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
    at GradleStart.main(Unknown Source)

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

    -- Head --
    Stacktrace:
    at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:230)
    at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:250)
    at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:245)
    at com.SpyMan.mod.MainClass.preInit(MainClass.java:174)
    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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
    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 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(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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
    at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:480)

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

    -- System Details --
    Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 7 (amd64) version 6.1
    Java Version: 1.8.0_60, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 884107816 bytes (843 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 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.1492 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.05} [Minecraft Coder Pack] (minecraft.jar) 
    UCH FML{7.10.99.99} [Forge Mod Loader] (forgeBin-1.7.10-10.13.4.1492-1.7.10.jar) 
    UCH Forge{10.13.4.1492} [Minecraft Forge] (forgeBin-1.7.10-10.13.4.1492-1.7.10.jar) 
    UCE mod{1.0.0} [Mod] (bin) 
    GL info: ' Vendor: 'Intel' Version: '2.1.0 - Build 8.15.10.2302' Renderer: 'Mobile Intel(R) 4 Series Express Chipset Family'
    Launched Version: 1.7.10
    LWJGL: 2.9.1
    OpenGL: Mobile Intel(R) 4 Series Express Chipset Family GL version 2.1.0 - Build 8.15.10.2302, Intel
    GL Caps: Using GL 1.3 multitexturing.
    Using framebuffer objects because EXT_framebuffer_object is supported.
    Anisotropic filtering is supported and maximum anisotropy is 2.
    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)
    [17:27:36] [Client thread/INFO]: [net.minecraft.client.Minecraft:displayCrashReport:359]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Family\Desktop\Java Modding\Mod 1.7.10\eclipse.\crash-reports\crash-2015-10-24_17.27.36-client.txt
    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

    Ma class principale :

    package com.SpyMan.mod;
    
    import net.minecraft.block.Block;
    import net.minecraft.block.BlockFurnace;
    import net.minecraft.block.material.Material;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.init.Blocks;
    import net.minecraft.init.Items;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemStack;
    import net.minecraftforge.oredict.OreDictionary;
    import cpw.mods.fml.common.Mod;
    import cpw.mods.fml.common.Mod.EventHandler;
    import cpw.mods.fml.common.Mod.Instance;
    import cpw.mods.fml.common.SidedProxy;
    import cpw.mods.fml.common.event.FMLInitializationEvent;
    import cpw.mods.fml.common.event.FMLPostInitializationEvent;
    import cpw.mods.fml.common.event.FMLPreInitializationEvent;
    import cpw.mods.fml.common.registry.GameRegistry;
    
    import com.SpyMan.mod.Blocks.Lantern.Lantern;
    import com.SpyMan.mod.Blocks.Lantern.TileLantern;
    import com.SpyMan.mod.ItemsTools.*;
    import com.SpyMan.mod.Items.*;
    import com.SpyMan.mod.proxy.CommonProxy;
    
    @Mod(modid = "mod", name = "mod", version = "1.0.0")
    
    public class MainClass
    {
    
    @Instance("mod")
    public static MainClass instance;
    
    @SidedProxy(clientSide = "com.SpyMan.mod.proxy.ClientProxy", serverSide = "com.SpyMan.mod.proxy.CommonProxy")
    public static CommonProxy proxy;
    
       public static final String MODID = "mod";
       public static final String VERSION = "1.0";
    
       /* Items Tools */
    
       public static Item ironHammer, diamHammer, stoneSaw, stoneHammer, wrench, woodSaw, ironSaw, diamSaw;
       public static Item stoneChisel, ironChisel, diamChisel;
    
       /* Tools Parts */
    
       public static Item woodPickHead, stonePickHead, goldPickHead, ironPickHead, diamPickHead;
       public static Item woodShovelHead, stoneShovelHead, goldShovelHead, ironShovelHead, diamShovelHead;
       public static Item woodAxeHead, stoneAxeHead, goldAxeHead, ironAxeHead, diamAxeHead;
    
       /* CreativeTabs */
    
       public static CreativeTabs modTab = new mTab("mTab");
    
       /* Blocks */
    
       public static Block lantern;
    
       @EventHandler
    
       public void preInit(FMLPreInitializationEvent event)
       {
        ironHammer = new IronHammer().setUnlocalizedName("ironHammer").setTextureName(MODID+":ironHammer").setCreativeTab(modTab);
        diamHammer = new DiamHammer().setUnlocalizedName("diamHammer").setTextureName(MODID+":diamHammer").setCreativeTab(modTab);
        stoneHammer = new StoneHammer().setUnlocalizedName("stoneHammer").setTextureName(MODID+":stoneHammer").setCreativeTab(modTab);
    
        wrench = new Wrench().setUnlocalizedName("Wrench").setTextureName(MODID+":wrench").setCreativeTab(modTab);
    
        woodSaw = new WoodSaw().setUnlocalizedName("woodSaw").setTextureName(MODID+":woodSaw").setCreativeTab(modTab);
        ironSaw = new IronSaw().setUnlocalizedName("ironSaw").setTextureName(MODID+":ironSaw").setCreativeTab(modTab);
        diamSaw = new DiamSaw().setUnlocalizedName("diamSaw").setTextureName(MODID+":diamSaw").setCreativeTab(modTab);
        stoneSaw = new StoneSaw().setUnlocalizedName("stoneSaw").setTextureName(MODID+":stoneSaw").setCreativeTab(modTab);
    
        stoneChisel = new StoneChisel().setUnlocalizedName("stoneChisel").setTextureName(MODID+":stoneChisel").setCreativeTab(modTab);
        diamChisel = new DiamChisel().setUnlocalizedName("diamChisel").setTextureName(MODID+":diamChisel").setCreativeTab(modTab);
        ironChisel = new IronChisel().setUnlocalizedName("ironChisel").setTextureName(MODID+":ironChisel").setCreativeTab(modTab);
    
        woodPickHead = new WoodPickHead().setUnlocalizedName("woodPickHead").setTextureName(MODID+":woodPickHead").setCreativeTab(modTab);
        stonePickHead = new StonePickHead().setUnlocalizedName("stonePickHead").setTextureName(MODID+":stonePickHead").setCreativeTab(modTab);
        goldPickHead = new GoldPickHead().setUnlocalizedName("goldPickHead").setTextureName(MODID+":goldPickHead").setCreativeTab(modTab);
        ironPickHead = new IronPickHead().setUnlocalizedName("ironPickHead").setTextureName(MODID+":ironPickHead").setCreativeTab(modTab);
        diamPickHead = new DiamPickHead().setUnlocalizedName("diamPickHead").setTextureName(MODID+":diamPickHead").setCreativeTab(modTab);
    
        woodShovelHead = new WoodShovelHead().setUnlocalizedName("woodShovelHead").setTextureName(MODID+":woodShovelHead").setCreativeTab(modTab);
        stoneShovelHead = new StoneShovelHead().setUnlocalizedName("stoneShovelHead").setTextureName(MODID+":stoneShovelHead").setCreativeTab(modTab);
        goldShovelHead = new GoldShovelHead().setUnlocalizedName("goldShovelHead").setTextureName(MODID+":goldShovelHead").setCreativeTab(modTab);
        ironShovelHead = new IronShovelHead().setUnlocalizedName("ironShovelHead").setTextureName(MODID+":ironShovelHead").setCreativeTab(modTab);
        diamShovelHead = new DiamShovelHead().setUnlocalizedName("diamShovelHead").setTextureName(MODID+":diamShovelHead").setCreativeTab(modTab);
    
        woodAxeHead = new WoodAxeHead().setUnlocalizedName("woodAxeHead").setTextureName(MODID+":woodAxeHead").setCreativeTab(modTab);
        stoneAxeHead = new StoneAxeHead().setUnlocalizedName("stoneAxeHead").setTextureName(MODID+":stoneAxeHead").setCreativeTab(modTab);
        goldAxeHead = new GoldAxeHead().setUnlocalizedName("goldAxeHead").setTextureName(MODID+":goldAxeHead").setCreativeTab(modTab);
        ironAxeHead = new IronAxeHead().setUnlocalizedName("ironAxeHead").setTextureName(MODID+":ironAxeHead").setCreativeTab(modTab);
        diamAxeHead = new DiamAxeHead().setUnlocalizedName("diamAxeHead").setTextureName(MODID+":diamAxeHead").setCreativeTab(modTab);
    
        /* -=[ Block Lantern ]=- */
    
        lantern = new Lantern(Material.glass).setBlockName("lantern").setBlockTextureName(MODID+":lantern").setCreativeTab(modTab);
        GameRegistry.registerTileEntity(TileLantern.class, "TileLantern");
    
        /* Item Register  */
    
        GameRegistry.registerItem(diamAxeHead, "diamAxeHead");
        GameRegistry.registerItem(goldAxeHead, "goldAxeHead");
        GameRegistry.registerItem(ironAxeHead, "ironAxeHead");
        GameRegistry.registerItem(woodAxeHead, "woodAxeHead");
        GameRegistry.registerItem(stoneAxeHead, "stoneAxeHead");
    
        GameRegistry.registerItem(diamPickHead, "diamPickHead");
        GameRegistry.registerItem(goldPickHead, "goldPickHead");
        GameRegistry.registerItem(stonePickHead, "stonePickHead");
        GameRegistry.registerItem(woodPickHead, "woodPickHead");
        GameRegistry.registerItem(ironPickHead, "ironPickHead");
    
        GameRegistry.registerItem(diamShovelHead, "diamShovelHead");
        GameRegistry.registerItem(goldShovelHead, "goldShovelHead");
        GameRegistry.registerItem(stoneShovelHead, "stoneShovelHead");
        GameRegistry.registerItem(woodShovelHead, "woodShovelHead");
        GameRegistry.registerItem(ironShovelHead, "ironShovelHead");
    
        GameRegistry.registerItem(ironSaw, "ironSaw");
        GameRegistry.registerItem(woodSaw, "woodSaw");
        GameRegistry.registerItem(diamSaw, "diamSaw");
        GameRegistry.registerItem(stoneSaw, "stoneSaw");
    
        GameRegistry.registerItem(ironHammer, "ironHammer");
        GameRegistry.registerItem(diamHammer, "diamHammer");
        GameRegistry.registerItem(stoneHammer, "stoneHammer");
    
        GameRegistry.registerItem(ironChisel, "ironChisel");
        GameRegistry.registerItem(diamChisel, "diamChisel");
        GameRegistry.registerItem(stoneChisel, "stoneChisel");
    
        GameRegistry.registerItem(wrench, "wrench");
    
        /* OreDictionary Item Register */
    
        /* OreDic : Hammers */
    
        OreDictionary.registerOre("stoneHammer", stoneHammer);
        OreDictionary.registerOre("stoneHammer", ironHammer);
        OreDictionary.registerOre("stoneHammer", diamHammer);
    
        OreDictionary.registerOre("ironHammer", ironHammer);
        OreDictionary.registerOre("ironHammer", diamHammer);
    
        /* OreDic : Saws */
    
        OreDictionary.registerOre("woodSaw", woodSaw);
        OreDictionary.registerOre("woodSaw", stoneSaw);
        OreDictionary.registerOre("woodSaw", ironSaw);
        OreDictionary.registerOre("woodSaw", diamSaw);
    
        OreDictionary.registerOre("stoneSaw", stoneSaw);
        OreDictionary.registerOre("stoneSaw", ironSaw);
        OreDictionary.registerOre("stoneSaw", diamSaw);
    
        OreDictionary.registerOre("ironSaw", ironSaw);
        OreDictionary.registerOre("ironSaw", diamSaw);
    
        /* OreDic : Chisels */
    
        OreDictionary.registerOre("stoneChisel", stoneChisel);
        OreDictionary.registerOre("stoneChisel", ironChisel);
        OreDictionary.registerOre("stoneChisel", diamChisel);
    
        OreDictionary.registerOre("ironChisel", ironChisel);
        OreDictionary.registerOre("ironChisel", diamChisel);
    
        /* -=[ Recipes Saws ]=- */
    
           GameRegistry.addRecipe(new ItemStack(woodSaw, 1, 0), new Object[]
           {
            "#00",
            "0#0",
            "00#",
            '#', OreDictionary.getOres("planks")
           });
           GameRegistry.addRecipe(new ItemStack(stoneSaw, 1, 0), new Object[]
           {
            "I00",
            "0I0",
            "00#",
            '#', OreDictionary.getOres("planks"),
            'I', Blocks.cobblestone
           });
           GameRegistry.addRecipe(new ItemStack(ironSaw, 1, 0), new Object[]
           {
            "I00",
            "0I0",
            "00#",
            '#', OreDictionary.getOres("planks"),
            'I', Items.iron_ingot
           });
           GameRegistry.addRecipe(new ItemStack(stoneSaw, 1, 0), new Object[]
           {
            "I00",
            "0I0",
            "00#",
            '#', OreDictionary.getOres("planks"),
            'I', Items.diamond
           });
    
        /* -=[ Recipes Hammers ]=- */
    
           GameRegistry.addRecipe(new ItemStack(stoneHammer, 1, 0), new Object[]
           {
            "III",
            "III",
            "0#0",
            '#', Items.stick,
            'I', Blocks.cobblestone
           });
           GameRegistry.addRecipe(new ItemStack(ironHammer, 1, 0), new Object[]
           {
            "III",
            "III",
            "0#0",
            '#', Items.stick,
            'I', Items.iron_ingot
           });
           GameRegistry.addRecipe(new ItemStack(diamHammer, 1, 0), new Object[]
           {
            "III",
            "III",
            "0#0",
            '#', Items.stick,
            'I', Items.diamond
           });
    
           /* -=[ Recipes Chisels ]=- */
    
           GameRegistry.addRecipe(new ItemStack(diamChisel, 1, 0), new Object[]
           {
            "I00",
            "0I0",
            "00#",
            '#', Items.stick,
            'I', Items.diamond
           });
           GameRegistry.addRecipe(new ItemStack(diamChisel, 1, 0), new Object[]
           {
            "I00",
            "0I0",
            "00#",
            '#', Items.stick,
            'I', Items.diamond
           });
           GameRegistry.addRecipe(new ItemStack(diamChisel, 1, 0), new Object[]
           {
            "I00",
            "0I0",
            "00#",
            '#', Items.stick,
            'I', Items.diamond
           });
    
           /* -=[ Recipes Pickaxes Heads ]=- *//*–------------------------------------*/
    
           GameRegistry.addRecipe(new ItemStack(diamPickHead, 1, 0), new Object[]
           {
            "###",
            "HC0",
            "000",
            'H', diamHammer, 1, OreDictionary.WILDCARD_VALUE,
            '#', Items.diamond,
            'C', diamChisel, 1, OreDictionary.WILDCARD_VALUE
           });
           GameRegistry.addRecipe(new ItemStack(goldPickHead, 1, 0), new Object[]
           {
            "###",
            "HC0",
            "000",
            'H', OreDictionary.getOres("ironHammer"), 1, OreDictionary.WILDCARD_VALUE,
            '#', Items.gold_ingot,
            'C', OreDictionary.getOres("ironChisel"), 1, OreDictionary.WILDCARD_VALUE
           });
           GameRegistry.addRecipe(new ItemStack(ironPickHead, 1, 0), new Object[]
           {
            "###",
            "HC0",
            "000",
            'H', OreDictionary.getOres("ironHammer"), 1, OreDictionary.WILDCARD_VALUE,
            '#', Items.iron_ingot,
            'C', OreDictionary.getOres("ironChisel"), 1, OreDictionary.WILDCARD_VALUE
           });
           GameRegistry.addRecipe(new ItemStack(stonePickHead, 1, 0), new Object[]
           {
            "###",
            "HC0",
            "000",
            'H', OreDictionary.getOres("stoneHammer"), 1, OreDictionary.WILDCARD_VALUE,
            '#', Blocks.cobblestone,
            'C', OreDictionary.getOres("stoneChisel"), 1, OreDictionary.WILDCARD_VALUE
           });
           GameRegistry.addRecipe(new ItemStack(woodPickHead, 1, 0), new Object[]
           {
            "###",
            "S00",
            "000",
            'S', OreDictionary.getOres("woodSaw"), 1, OreDictionary.WILDCARD_VALUE,
            '#', OreDictionary.getOres("planks")
           });
    
           /* -=[ Recipes Axe Heads ]=- *//*–-----------------------------------------*/
    
           GameRegistry.addRecipe(new ItemStack(diamAxeHead, 1, 0), new Object[]
           {
            "0##",
            "HC#",
            "000",
            'H', diamHammer, 1, OreDictionary.WILDCARD_VALUE,
            '#', Items.diamond,
            'C', diamChisel, 1, OreDictionary.WILDCARD_VALUE
           });
           GameRegistry.addRecipe(new ItemStack(goldAxeHead, 1, 0), new Object[]
           {
            "0##",
            "HC#",
            "000",
            'H', OreDictionary.getOres("ironHammer"), 1, OreDictionary.WILDCARD_VALUE,
            '#', Items.gold_ingot,
            'C', OreDictionary.getOres("ironChisel"), 1, OreDictionary.WILDCARD_VALUE
           });
           GameRegistry.addRecipe(new ItemStack(ironAxeHead, 1, 0), new Object[]
           {
            "0##",
            "HC#",
            "000",
            'H', OreDictionary.getOres("ironHammer"), 1, OreDictionary.WILDCARD_VALUE,
            '#', Items.iron_ingot,
            'C', OreDictionary.getOres("ironChisel"), 1, OreDictionary.WILDCARD_VALUE
           });
           GameRegistry.addRecipe(new ItemStack(stoneAxeHead, 1, 0), new Object[]
           {
            "0##",
            "HC#",
            "000",
            'H', OreDictionary.getOres("stoneHammer"), 1, OreDictionary.WILDCARD_VALUE,
            '#', Blocks.cobblestone,
            'C', OreDictionary.getOres("stoneChisel"), 1, OreDictionary.WILDCARD_VALUE
           });
           GameRegistry.addRecipe(new ItemStack(woodAxeHead, 1, 0), new Object[]
           {
            "0##",
            "S0#",
            "000",
            'S', OreDictionary.getOres("woodSaw"), 1, OreDictionary.WILDCARD_VALUE,
            '#', OreDictionary.getOres("planks")
           });
    
           /* -=[ Recipes Shovel Heads ]=- *//*–--------------------------------------*/
    
           GameRegistry.addRecipe(new ItemStack(diamShovelHead, 1, 0), new Object[]
           {
            "0#0",
            "HC0",
            "000",
            'H', diamHammer, 1, OreDictionary.WILDCARD_VALUE,
            '#', Items.diamond,
            'C', diamChisel, 1, OreDictionary.WILDCARD_VALUE
           });
           GameRegistry.addRecipe(new ItemStack(goldShovelHead, 1, 0), new Object[]
           {
            "0#0",
            "HC0",
            "000",
            'H', OreDictionary.getOres("ironHammer"), 1, OreDictionary.WILDCARD_VALUE,
            '#', Items.gold_ingot,
            'C', OreDictionary.getOres("ironChisel"), 1, OreDictionary.WILDCARD_VALUE
           });
           GameRegistry.addRecipe(new ItemStack(ironShovelHead, 1, 0), new Object[]
           {
            "0#0",
            "HC0",
            "000",
            'H', OreDictionary.getOres("ironHammer"), 1, OreDictionary.WILDCARD_VALUE,
            '#', Items.iron_ingot,
            'C', OreDictionary.getOres("ironChisel"), 1, OreDictionary.WILDCARD_VALUE
           });
           GameRegistry.addRecipe(new ItemStack(stoneShovelHead, 1, 0), new Object[]
           {
            "0#0",
            "HC0",
            "000",
            'H', OreDictionary.getOres("stoneHammer"), 1, OreDictionary.WILDCARD_VALUE,
            '#', Blocks.cobblestone,
            'C', OreDictionary.getOres("stoneChisel"), 1, OreDictionary.WILDCARD_VALUE
           });
           GameRegistry.addRecipe(new ItemStack(woodShovelHead, 1, 0), new Object[]
           {
            "0#0",
            "S00",
            "000",
            'S', OreDictionary.getOres("woodSaw"), 1, OreDictionary.WILDCARD_VALUE,
            '#', OreDictionary.getOres("planks")
           });
       }
    
       public void init(FMLInitializationEvent event)
       {
        proxy.registerRender();
       }
    
       public void postInit(FMLPostInitializationEvent event)
       {
    
       }
    
    }
    
    

  • Rédacteurs

    Tu as un NPE lors de l'enregistrement d'une recette



  • d'accord, mais comment je peut réglé ce problème ?


  • Rédacteurs

    Essaie en remplaçant les :

    OreDictionary.getOres("planks")
    

    Par :

    OreDictionary.getOres("plankWood")
    


  • j'ai résolu mon soucis de craft mais  : OreDictionary.getOres("planksWood") ne fonctionne pas 
    donc je ne peut pas crafter mon item avec tout les différentes planches de Minecraft.

    comment je peut résoudre ce problème?


  • Rédacteurs

    C'est

    plankWood
    

    pas

    planksWood
    

    fait attention au S à ne pas mettre


    La classe OreDictionary se trouve dans la package net.minecraftforge.ordict, tu y trouveras l'initialisation des entrées vanilla dans la méthode initVanillaEntries() donc les clées à utilisées


  • Rédacteurs

    La classe OreDictionary se trouve dans la package net.minecraftforge.ordict, tu y trouveras l'initialisation des entrées vanilla dans la méthode initVanillaEntries() donc les clées à utilisées



  • ça ne change absolument rien 😕
    peut être que je me suis tromper dans le code du craft :

           GameRegistry.addRecipe(new ItemStack(woodSaw, 1, 0), new Object[]
           {
            "#00",
            "0#0",
            "00#",
            '#', OreDictionary.getOres("plankWood")
           });
    

    mais ca fonctione avec :

           GameRegistry.addRecipe(new ItemStack(woodSaw, 1, 0), new Object[]
           {
            "#00",
            "0#0",
            "00#",
            '#', new ItemStack(Blocks.planks
           });
    

    mais le soucis c'est que ca ne fonctionne qu'avec les planches de oak.


  • Correcteurs

    Il vient de dire change planksWood par plankWood et tu remets planksWood…

    GameRegistry.addRecipe(new ItemStack(woodSaw, 1, 0), new Object[]
    {
    "#00",
    "0#0",
    "00#",
    '#', OreDictionary.getOres("plankWood")
    });
    

    PS: essaie de mettre ton code dans les balises Java au leiu de code, comme ça on aura la coloration syntaxique.



  • oups erreur de frappe pour plank%(#ff3333)~~Wood
    autant pour moi. 😕

    le OreDictionary ne marche pas dans les crafts ou bien c'est moi qui ne sais pas l'utiliser ???~~


  • Rédacteurs

    Il me semble que tu ne puisse pas l'utiliser comme ceci, je n'ai jamais utilisé OreDictionary mais étant donné que OreDictionary.getOres("name") retourne un objet de type List je ne pense pas que ce soit bon, essai de chercher de ce côté http://www.minecraftforgefrance.fr/showthread.php?tid=2488


  • Correcteurs

    new ItemStack(Block.wood, 1, OreDictionary.WILDCARD_VALUE)
    

  • Rédacteurs

    Ça marche normalement mais si un autre mod ajoute un type de bois ça ne marchera pas, après faut voir ce qu'il veux faire


  • Correcteurs

    En même temps, le support se fait des deux côtés. Si le moddeur nomme son bois w00dsPl4nks4L1Fe. C'est son problème si le bois n'est pas supporté.


  • Administrateurs

    Pour les recettes passant par le OreRecipe il faut utiliser ShapedOreRecipe. Exemple :
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(NanotechBlock.sodium), new Object[] {"XXX", "XXX", "XXX", 'X', "cellSodium"}));