Probléme de Mod armor and tools



  • %(#ff3333)[J'ai déjà créer d'autre mod semblable, mais celui si marche pas.
    Crash reports:]
    –-- Minecraft Crash Report ----
    // Don't be sad. I'll do better next time, I promise!

    Time: 01/11/14 22:15
    Description: Initializing game

    java.lang.NullPointerException: Can't add null-object to the registry, name modempirez.MODID:obsidian.
    at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:353)
    at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:772)
    at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:740)
    at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:143)
    at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:131)
    at fr.r3z4r.Empirez.common.ModEmpirez.preInit(ModEmpirez.java:70)
    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:513)
    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.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
    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.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
    at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:512)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:510)
    at net.minecraft.client.Minecraft.run(Minecraft.java:880)
    at net.minecraft.client.main.Main.main(Main.java:112)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

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

    -- Head --
    Stacktrace:
    at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:353)
    at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:772)
    at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:740)
    at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:143)
    at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:131)
    at fr.r3z4r.Empirez.common.ModEmpirez.preInit(ModEmpirez.java:70)
    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:513)
    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.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
    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.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
    at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:512)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:510)

    -- Initialization --
    Details:
    Stacktrace:
    at net.minecraft.client.Minecraft.run(Minecraft.java:880)
    at net.minecraft.client.main.Main.main(Main.java:112)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

    -- System Details --
    Details:
    Minecraft Version: 1.7.2
    Operating System: Windows 7 (x86) version 6.1
    Java Version: 1.7.0_04, Oracle Corporation
    Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
    Memory: 927100360 bytes (884 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 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.03 FML v7.2.211.1121 Minecraft Forge 10.12.2.1121 4 mods loaded, 4 mods active
    mcp{9.03} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
    FML{7.2.211.1121} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.2.1121.jar) Unloaded->Constructed->Pre-initialized
    Forge{10.12.2.1121} [Minecraft Forge] (forgeSrc-1.7.2-10.12.2.1121.jar) Unloaded->Constructed->Pre-initialized
    modempirez.MODID{1.2.0} [Mod Empirez] (bin) Unloaded->Constructed->Errored
    Launched Version: 1.6
    LWJGL: 2.9.0
    OpenGL: GeForce G210/PCIe/SSE2 GL version 3.3.0, NVIDIA Corporation
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: []
    Current Language: ERROR NullPointerException: null
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: ERROR NullPointerException: null
    Anisotropic Filtering: Off (1)


  • Administrateurs

    Mauvaise section, tout ce qui concerne les moddeurs va dans support pour les moddeurs. C'est pas compliqué pourtant …
    Envoie le code de ta classe principale.


  • Administrateurs

    Tu as un problème avec ton ModId.



  • %(#ff3333)[Je ne vois pas mon erreur de ModId.
    Donc je vous envoie le code de ma classe principale.]

    package fr.r3z4r.Empirez.common;
    
    import com.sun.org.apache.xpath.internal.operations.Or;
    
    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.minecraft.item.ItemArmor.ArmorMaterial;
    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 cpw.mods.fml.relauncher.Side;
    import fr.r3z4r.Empirez.proxy.CommonProxy;
    
    @Mod(modid = "modempirez.MODID", name = "Mod Empirez", version = "1.0.0")
    
    public class ModEmpirez
    {
    public static final String MODID = "modempirez";
    
    @Instance("MODID")
       public static ModEmpirez instance;
    
       @SidedProxy(clientSide = "fr.r3z4r.Empirez.proxy.ClientProxy", serverSide = "fr.r3z4r.Empirez.proxy.CommonProxy")
    
       public static CommonProxy proxy;
    
       public static Item itemObsidian;
       public static Block blockObsi;
       public static Item itemObsidian1, itemObsidian2, helmetObsidian, chestPlateObsidian, leggingsObsidian, bootsObsidian, swordObsidian, pickaxeObsidian, axeObsidian, shovelObsidian, hoeObsidian;
    
       public static ArmorMaterial armorEmpirez4 = EnumHelper.addArmorMaterial("armorEmpirez4", 100, new int[] {5, 10, 8, 5}, 12);
       public static ToolMaterial toolEmpirez4 = EnumHelper.addToolMaterial("toolEmpirez4", 3, 3000, 18.0F, 5.0F, 12);
    
       @EventHandler
    public void preInit(FMLPreInitializationEvent event)
    {
        // Items Obsidienne
        helmetObsidian = new ItemObsidianArmor(armorEmpirez4, 0).setUnlocalizedName("helmetObsidian").setTextureName(MODID + ":helmet_obsidian");
        chestPlateObsidian = new ItemObsidianArmor(armorEmpirez4, 1).setUnlocalizedName("chestPlateObsidian").setTextureName(MODID + ":chestplate_obsidian");
        leggingsObsidian = new ItemObsidianArmor(armorEmpirez4, 2).setUnlocalizedName("leggingsObsidian").setTextureName(MODID + ":leggings_obsidian");
        bootsObsidian = new ItemObsidianArmor(armorEmpirez4, 3).setUnlocalizedName("bootsObsidian").setTextureName(MODID + ":boots_obsidian");
        swordObsidian = new ItemObsidianSword(toolEmpirez4).setUnlocalizedName("swordObsidian").setTextureName(MODID + ":sword_obsidian");
        pickaxeObsidian = new ItemObsidianPickaxe(toolEmpirez4).setUnlocalizedName("pickaxeObsidian").setTextureName(MODID + ":pickaxe_obsidian");
        axeObsidian = new ItemObsidianAxe(toolEmpirez4).setUnlocalizedName("axeObsidian").setTextureName(MODID + ":axe_obsidian");
        shovelObsidian = new ItemObsidianShovel(toolEmpirez4).setUnlocalizedName("shovelObsidian").setTextureName(MODID + ":shovel_obsidian");
        hoeObsidian = new ItemObsidianHoe(toolEmpirez4).setUnlocalizedName("hoeObsidian").setTextureName(MODID + ":hoe_obsidian");
        GameRegistry.registerItem(helmetObsidian, "item_obsidian_helmet");
        GameRegistry.registerItem(chestPlateObsidian, "item_obsidian_chestplate");
        GameRegistry.registerItem(leggingsObsidian, "item_obsidian_leggings");
        GameRegistry.registerItem(bootsObsidian, "item_obsidian_boots");
        GameRegistry.registerItem(swordObsidian, "item_obsidian_sword");
        GameRegistry.registerItem(pickaxeObsidian, "item_obsidian_pickaxe");
        GameRegistry.registerItem(axeObsidian, "item_obsidian_axe");
        GameRegistry.registerItem(shovelObsidian, "item_obsidian_shovel");
        GameRegistry.registerItem(hoeObsidian, "item_obsidian_hoe");
    
        GameRegistry.registerItem(itemObsidian, "obsidian");
        GameRegistry.registerBlock(blockObsi, "block_obsi");
    
    }
    
         @EventHandler
        public void init(FMLInitializationEvent event)
       {
    
        //Craft obsidienne
        GameRegistry.addRecipe(new ItemStack(this.blockObsi, 1),new Object[] {"###", "###","###", '#', ModEmpirez.itemObsidian});
          GameRegistry.addRecipe(new ItemStack(this.itemObsidian, 9),new Object[] {"#", '#', ModEmpirez.blockObsi});
    
        GameRegistry.addRecipe(new ItemStack(this.helmetObsidian, 1 ), new Object[] {"###", "# #", '#', ModEmpirez.itemObsidian});
        GameRegistry.addRecipe(new ItemStack(this.chestPlateObsidian, 1 ), new Object[] {"# #", "###", "###", '#', ModEmpirez.itemObsidian});
        GameRegistry.addRecipe(new ItemStack(this.leggingsObsidian, 1 ), new Object[] {"###", "# #", "# #", '#', ModEmpirez.itemObsidian});
        GameRegistry.addRecipe(new ItemStack(this.bootsObsidian, 1 ), new Object[] {"# #", "# #", '#', ModEmpirez.itemObsidian});
        GameRegistry.addRecipe(new ItemStack(this.swordObsidian, 1 ), new Object[] {" # ", " # ", " Y ", '#', ModEmpirez.itemObsidian, 'Y', Items.stick});
        GameRegistry.addRecipe(new ItemStack(this.pickaxeObsidian, 1 ), new Object[] {"###", " Y "," Y ", '#', ModEmpirez.itemObsidian, 'Y', Items.stick});
        GameRegistry.addRecipe(new ItemStack(this.axeObsidian, 1 ), new Object[] {"## ", "#Y "," Y ", '#', ModEmpirez.itemObsidian, 'Y', Items.stick});
        GameRegistry.addRecipe(new ItemStack(this.shovelObsidian, 1 ), new Object[] {" # ", " Y "," Y ", '#', ModEmpirez.itemObsidian, 'Y', Items.stick});
        GameRegistry.addRecipe(new ItemStack(this.hoeObsidian, 1 ), new Object[] {"## ", " Y "," Y ", '#', ModEmpirez.itemObsidian, 'Y', Items.stick});
        proxy.registerRender();
    
       }
    
       @EventHandler
    public void postInit(FMLPostInitializationEvent event)
       {
    
       }
    }
    

  • Administrateurs

    @Mod(modid = "modempirez.MODID", name = "Mod Empirez", version = "1.0.0")

    De plus, pour le code Java, merci d'utiliser les balises JAVA.


  • Administrateurs

    @Mod(modid = "modempirez.MODID", name = "Mod Empirez", version = "1.0.0")

    Devrait être
    @Mod(modid = ModEmpirez.MODID, name = "Mod Empirez", version = "1.0.0")

    Et
    @Instance("MODID")
    devrait être :
    @Instance(MODID)



  • Sa ne marche plus.
    Sa a marcher mais sans ajout de mon mod.


  • Administrateurs

    où ? …



  • Je comprend pas très bien, rien ne marche plus pourtant j'ai corriger.



  • Enfaîte dés que je déclare mon mod Sa ne marche plus.



  • FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!

    Voilà ce que me donne eclipse comme erreur.


  • Administrateurs

    Rien à voir ça …
    Eclipse t'indique une erreur ? Si oui laquelle ?
    Sinon, lance le jeu et envoie tout les logs.



  • Voilà le dernier crash:

    –-- Minecraft Crash Report ----
    // Oops.
    
    Time: 02/11/14 16:46
    Description: Initializing game
    
    java.lang.NullPointerException: Can't add null-object to the registry, name ModEmpirez.MODID:obsi.
    at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:353)
    at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:772)
    at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:740)
    at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:143)
    at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:131)
    at fr.r3z4r.Empirez.common.ModEmpirez.preInit(ModEmpirez.java:70)
    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:513)
    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.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
    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.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
    at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:512)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:510)
    at net.minecraft.client.Minecraft.run(Minecraft.java:880)
    at net.minecraft.client.main.Main.main(Main.java:112)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- Head --
    Stacktrace:
    at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:353)
    at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:772)
    at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:740)
    at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:143)
    at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:131)
    at fr.r3z4r.Empirez.common.ModEmpirez.preInit(ModEmpirez.java:70)
    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:513)
    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.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
    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.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
    at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:512)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:510)
    
    -- Initialization --
    Details:
    Stacktrace:
    at net.minecraft.client.Minecraft.run(Minecraft.java:880)
    at net.minecraft.client.main.Main.main(Main.java:112)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    
    -- System Details --
    Details:
    Minecraft Version: 1.7.2
    Operating System: Windows 7 (x86) version 6.1
    Java Version: 1.7.0_04, Oracle Corporation
    Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
    Memory: 914251192 bytes (871 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 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.03 FML v7.2.211.1121 Minecraft Forge 10.12.2.1121 4 mods loaded, 4 mods active
    mcp{9.03} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
    FML{7.2.211.1121} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.2.1121.jar) Unloaded->Constructed->Pre-initialized
    Forge{10.12.2.1121} [Minecraft Forge] (forgeSrc-1.7.2-10.12.2.1121.jar) Unloaded->Constructed->Pre-initialized
    ModEmpirez.MODID{1.1.0} [Mod Empirez] (bin) Unloaded->Constructed->Errored
    Launched Version: 1.6
    LWJGL: 2.9.0
    OpenGL: GeForce G210/PCIe/SSE2 GL version 3.3.0, NVIDIA Corporation
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: []
    Current Language: ~~ERROR~~ NullPointerException: null
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
    Anisotropic Filtering: Off (1)
    


  • utilise les balise code pour plus de lisibilité


  • Administrateurs

    Ah bha oui c'est normal, tu n'as pas initialisé ton bloc …
    Retourne voir le tutoriel sur les blocs, il te manque la ligne
    blockObsi = blabla;
    qui est à mettre avant la fonction registerBlock



  • Merci beaucoup c'est sa.
    Comme quoi le copier coller des ses anciens mod, apporte rien de bon.


  • Administrateurs

    Si c'est résolu mets la balise résolu.



  • J'ai une dernière question qui na rien avoir avec la précédente.
    Je veux une armure avec 2.5 maillot de plus que l'armure en diamant.
    Mais je remarque avec 2.5 ou plus de maillot on ne prend plus de dégâts du au explosion ainsi que des dégâts normaux(épée, mob)… Seule les dégâts de chute ou potion marche.
    Je voudrait avoir une amure plus puissante qu'une de 2 maillot mais qui ne soit pas intuable.



  • Bah dans ce cas la augmente la valeur d'absorption de l'armure ( dans la classe principale )


  • Administrateurs

    Pas possible, la barre d'armure est mit en fonction de l'absorption, si tu monte trop l'absorption forcement la plupart des dégâts sont totalement absorbés.