Can't free registry slot 165 occupied by net.minecraft.item.ItemBlock@7191b8be



  • Bonjour,
    Ce matin j'ai essayer de creer 5 item qui sont des tomahawk en tous le materiaux du jeu (1 par materiaux),seulement j'ai un probleme quand je lance le jeu il m'indique se crach report:

    [09:39:23] [Client thread/WARN] [FML]: ****************************************
    [09:39:23] [Client thread/ERROR] [FML]: Caught an exception during block registration
    java.lang.IllegalStateException: Can't free registry slot 165 occupied by net.minecraft.item.ItemBlock@7191b8be
        at cpw.mods.fml.common.registry.GameData.freeSlot(GameData.java:933) ~[GameData.class:?]
        at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:839) ~[GameData.class:?]
        at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:808) ~[GameData.class:?]
        at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:232) [GameRegistry.class:?]
        at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:188) [GameRegistry.class:?]
        at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:177) [GameRegistry.class:?]
        at fr.ezorix.PremierMod.common.Main.preInit(Main.java:56) [Main.class:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_79]
        at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) [FMLModContainer.class:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_79]
        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) [LoadController.class:?]
        at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) [LoadController.class:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_79]
        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:522) [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.7.0_79]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_79]
        at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
        at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
        at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
        at GradleStart.main(Unknown Source) [start/:?]
    [09:39:23] [Client thread/INFO] [FML]: Applying holder lookups
    [09:39:23] [Client thread/INFO] [FML]: Holder lookups applied
    [09:39:23] [Client thread/INFO] [FML]: Injecting itemstacks
    [09:39:23] [Client thread/INFO] [FML]: Itemstack injection complete
    [09:39:23] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
    [09:39:23] [Client thread/ERROR] [FML]:
        States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
        UCH    mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
        UCH    FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar)
        UCH    Forge{10.13.4.1448} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar)
        UCE    premiermod{0.0.1} [PremierMod] (bin)
    [09:39:23] [Client thread/ERROR] [FML]: The following problems were captured during this phase
    [09:39:23] [Client thread/ERROR] [FML]: Caught exception from premiermod
    cpw.mods.fml.common.LoaderException: java.lang.IllegalStateException: Can't free registry slot 165 occupied by net.minecraft.item.ItemBlock@7191b8be
    
        at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:239) ~[forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar:?]
        at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:188) ~[forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar:?]
        at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:177) ~[forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar:?]
        at fr.ezorix.PremierMod.common.Main.preInit(Main.java:56) ~[bin/:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_79]
        at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) ~[forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_79]
        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.1448-1.7.10.jar:?]
        at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_79]
        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:522) [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.7.0_79]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_79]
        at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
        at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
        at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
        at GradleStart.main(Unknown Source) [start/:?]
    Caused by: java.lang.IllegalStateException: Can't free registry slot 165 occupied by net.minecraft.item.ItemBlock@7191b8be
        at cpw.mods.fml.common.registry.GameData.freeSlot(GameData.java:933) ~[forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar:?]
        at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:839) ~[forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar:?]
        at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:808) ~[forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar:?]
        at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:232) ~[forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar:?]
        … 42 more
    [09:39:24] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
    // Why did you do that?
    
    Time: 02/09/15 09:39
    Description: There was a severe problem during mod loading that has caused the game to fail
    
    cpw.mods.fml.common.LoaderException: java.lang.IllegalStateException: Can't free registry slot 165 occupied by net.minecraft.item.ItemBlock@7191b8be
        at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:239)
        at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:188)
        at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:177)
        at fr.ezorix.PremierMod.common.Main.preInit(Main.java:56)
        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:522)
        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(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)
    Caused by: java.lang.IllegalStateException: Can't free registry slot 165 occupied by net.minecraft.item.ItemBlock@7191b8be
        at cpw.mods.fml.common.registry.GameData.freeSlot(GameData.java:933)
        at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:839)
        at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:808)
        at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:232)
        ... 42 more
    
    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.7.0_79, Oracle Corporation
        Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 962310200 bytes (917 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.1448 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] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar)
        UCH    Forge{10.13.4.1448} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar)
        UCE    premiermod{0.0.1} [PremierMod] (bin)
        GL info: ' Vendor: 'NVIDIA Corporation' Version: '3.3.0' Renderer: 'GeForce 9500 GT/PCIe/SSE2'
    [09:39:24] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Maison\Documents\Thomas\Forge\eclipse\.\crash-reports\crash-2015-09-02_09.39.24-client.txt
    

    Voila le code de ma classe principale:

    package fr.ezorix.PremierMod.common;
    
    import net.minecraft.block.Block;
    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.Item.ToolMaterial;
    import net.minecraft.item.ItemStack;
    import net.minecraftforge.common.util.EnumHelper;
    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 fr.ezorix.PremierMod.proxy.CommonProxy;
    
    @Mod(modid = "premiermod", name = "PremierMod", version = "0.0.1")
    
    public class Main{
    
        @Instance("premiermod")
        public static Main instance;
        public static final String MODID = "premiermod";
        @SidedProxy(clientSide = "fr.ezorix.PremierMod.proxy.ClientProxy", serverSide = "fr.ezorix.PremierMod.proxy.CommonProxy")
        public static CommonProxy proxy;
        public static Block obsiRenf;
        public static Block ez;
        public static Item tomahawkFer;
        public static Item tomahawkBois;
        public static Item tomahawkOr;
        public static Item tomahawkDiamant;
        public static Item tomahawkStone;
        public static ToolMaterial tomaFer = EnumHelper.addToolMaterial("toolFer", 2, 998, 7.0F, 3.0F, 16);
        public static ToolMaterial tomaBois = EnumHelper.addToolMaterial("toolBois", 0, 149, 3.0F, 1.0F, 16);
        public static ToolMaterial tomaOr = EnumHelper.addToolMaterial("toolOr", 0, 99, 3.0F, 2.0F, 16);
        public static ToolMaterial tomaDiamant = EnumHelper.addToolMaterial("toolDiamant", 3, 1499, 12.0F, 4.0F, 16);
        public static ToolMaterial tomaStone = EnumHelper.addToolMaterial("toolStone", 1, 299, 3.0F, 2.0F, 16);
    
        @EventHandler
        public void preInit(FMLPreInitializationEvent event)
        {
            proxy.registerRender();
            tomahawkFer = new tomahawk(tomaFer).setUnlocalizedName("tomahawkfer").setTextureName(MODID + ":tomahawkfer").setCreativeTab(CreativeTabs.tabTools);
            tomahawkBois = new tomahawk(tomaBois).setUnlocalizedName("tomahawkbois").setTextureName(MODID + ":tomahawkbois").setCreativeTab(CreativeTabs.tabTools);
            tomahawkOr = new tomahawk(tomaOr).setUnlocalizedName("tomahawkor").setTextureName(MODID + ":tomahawkor").setCreativeTab(CreativeTabs.tabTools);
            tomahawkOr = new tomahawk(tomaDiamant).setUnlocalizedName("tomahawkdiamant").setTextureName(MODID + ":tomadiamant").setCreativeTab(CreativeTabs.tabTools);
            tomahawkOr = new tomahawk(tomaStone).setUnlocalizedName("tomahawkstone").setTextureName(MODID + ":tomahawkstone").setCreativeTab(CreativeTabs.tabTools);
            ez = new TestBlock(Material.rock).setBlockName("ez").setBlockTextureName(MODID + ":ez").setHardness(1.5F).setResistance(10.0F);
            obsiRenf = new TestBlock(Material.rock).setBlockName("obsirenf").setBlockTextureName(MODID + ":obsirenf").setResistance(3000.0F).setHardness(100.0F).setCreativeTab(CreativeTabs.tabBlock);
            GameRegistry.registerBlock(obsiRenf, "ObsiRenf");
            GameRegistry.registerBlock(obsiRenf, "ObsiRenf");
            GameRegistry.registerBlock(ez, "ez");
            GameRegistry.registerItem(tomahawkFer, "TomahawkFer");
            GameRegistry.registerItem(tomahawkBois, "TomahawkBois");
            GameRegistry.registerItem(tomahawkOr, "TomahawkOr");
            GameRegistry.registerItem(tomahawkDiamant, "TomahawkDiamant");
            GameRegistry.registerItem(tomahawkStone, "TomahawkStone");
            GameRegistry.addRecipe(new ItemStack(obsiRenf, 4, 1), new Object[]{"XXX", "XXX", 'X', Blocks.obsidian});
            GameRegistry.addRecipe(new ItemStack(ez, 1 , 1), new Object[]{"XX" , "XX" , "XX" , 'X', Items.iron_ingot});
        }
    
        @EventHandler
        public void init(FMLInitializationEvent event) {
    
        }
    
        @EventHandler
        public void postInit(FMLPostInitializationEvent event)
        {
    
        }
    
    }
    

    Et la classe du tomahawk :

    package fr.ezorix.PremierMod.common;
    
    import net.minecraft.init.Items;
    import net.minecraft.item.Item.ToolMaterial;
    import net.minecraft.item.ItemAxe;
    import net.minecraft.item.ItemSword;
    
    public class tomahawk extends ItemAxe {
    
        protected tomahawk(ToolMaterial material)
        {
            super(material);
        }
    
    }
    

    Merci d'avance pour votre aide



  • Salut Ezorix77,

    L'erreur vient certainement de ta classe principale, tu enregistres deux fois le même block Obsirenf:

    
        @EventHandler
        public void preInit(FMLPreInitializationEvent event)
        {
            GameRegistry.registerBlock(obsiRenf, "ObsiRenf");
            GameRegistry.registerBlock(obsiRenf, "ObsiRenf");
        }
    
    

    En espérant avoir aidé,
    Bonne journée !
    Myrilandel



  • Oui c'etait effectivment un erreur d'innatation 😞 merci!!!