Exporter le Mod



  • Bonjour, je voudrais exporter le mod que je viens de créer comment faire merci (je suis sur mac) merci


  • Moddeurs confirmés Rédacteurs Administrateurs

    Salut,
    Comme pour l'installation de la workspace, sauf qu'il faut faire :
    gradlew build
    Le fichier final se trouve dans forge/build/lib et se nomme modid-1.0.jar.
    Tu peux changer ce nom dans le fichier build.gradle
    (faut vraiment que je fasse un tuto, ça doit être la 3ème fois qu'on pose cette question).


  • Moddeurs confirmés Modérateurs

    tu est avec gradle?



  • salut, cela fonctionne merci, j'installe forge, je met le mod dans mon dossier mod je lance mon launcher et voici l'erreur:

    –-- Minecraft Crash Report ----
    // This doesn't make any sense!
    
    Time: 14/06/14 19:02
    Description: There was a severe problem during mod loading that has caused the game to fail
    
    cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: com/epic/epicmod/RubisOre
    at cpw.mods.fml.common.LoadController.transition(LoadController.java:163)
    at cpw.mods.fml.common.Loader.loadMods(Loader.java:501)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:202)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:465)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:813)
    at net.minecraft.client.main.Main.main(SourceFile:103)
    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)
    Caused by: java.lang.NoClassDefFoundError: com/epic/epicmod/RubisOre
    at com.epic.epicmod.EpicMod.init(EpicMod.java:243)
    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:209)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188)
    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:119)
    at cpw.mods.fml.common.Loader.loadMods(Loader.java:500)
    ... 10 more
    Caused by: java.lang.ClassNotFoundException: com.epic.epicmod.RubisOre
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 38 more
    Caused by: java.lang.ClassFormatError: Duplicate method name&signature in class file com/epic/epicmod/RubisOre
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:180)
    ... 40 more
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    Minecraft Version: 1.7.2
    Operating System: Windows 8 (amd64) version 6.2
    Java Version: 1.7.0_51, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 271958632 bytes (259 MB) / 452460544 bytes (431 MB) up to 954728448 bytes (910 MB)
    JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G
    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.01-pre FML v7.2.156.1060 Minecraft Forge 10.12.1.1060 4 mods loaded, 4 mods active
    mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
    FML{7.2.156.1060} [Forge Mod Loader] (forge-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized
    Forge{10.12.1.1060} [Minecraft Forge] (forge-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized
    EpicMod{1.0} [EpicMod] (EpicMod-1.0.jar) Unloaded->Constructed->Errored
    
    

    (j'ai lance le mod avec un windows)
    aidez moi svp 😳


  • Moddeurs confirmés Modérateurs

    envoi ta classe RubisOre



  • package com.epic.epicmod;
    
    import java.util.Random;
    
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.client.renderer.texture.IIconRegister;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.item.Item;
    import net.minecraft.world.IBlockAccess;
    
    public class RubisOre extends Block {
    
    public RubisOre(int id, Material mat){
    super(mat);
    this.setCreativeTab(CreativeTabs.tabBlock);
    
    }
    
    @Override
    public void registerBlockIcons(IIconRegister reg)
    {
    this.blockIcon = reg.registerIcon("rubis:rubisore");
    }
    
    public Item func_149650_a(int par1, Random rand, int par2){
    return EpicMod.Rubis;
    }
    public Item getItemDropped(int par1, Random rand, int par2){
    return EpicMod.Rubis;
    }
    
    private Random rand = new Random();
    @Override
    public int getExpDrop(IBlockAccess p_149690_1_, int p_149690_5_, int p_149690_7_){
    if (this.getItemDropped(p_149690_5_, rand, p_149690_7_) != Item.getItemFromBlock(this))
    {
    return 1 + rand.nextInt(5);
    }
    return 0;
    }
    
    }
    
    

  • Moddeurs confirmés Modérateurs

    ton super doit etre:
    super(id, Material.rock)
    ou wood pour du bois par exemple



  • et si j'enleve le int id c'est bon ?


  • Moddeurs confirmés Modérateurs

    non car le int id permet d'initialiser l'id il faut mettre les super comme je te l'ai marqué



  • quand je met l'id (500) cela surligne et met : remove argument to much block(material)


  • Moddeurs confirmés Modérateurs

    comment ca quand tu met 500?



  • ben je dois juste mettre (id, mat.rock) ?


  • Moddeurs confirmés Rédacteurs Modérateurs Administrateurs

    Vire le int id, il ne sert plus à rien, en 1.7.x.


  • Moddeurs confirmés Modérateurs

    a ok autant pour moi alors cela devient super(Material.rock)
    c'est bien ca superloup?


  • Moddeurs confirmés Rédacteurs Modérateurs Administrateurs

    C'est bien cela. Mais le problème qu'il a, c'est que la classe RubisOre n'est pas trouvé par le jeu.



  • c'est peux être parce que en dessous de : public static Block RubisOre; j'ai mis int RubisOreID = 500; non ?(je ne mis connais pas trop en java mdrr )


  • Moddeurs confirmés Rédacteurs Modérateurs Administrateurs

    On peux ta classe principale?



  • oui biensur

    
    package com.epic.epicmod;
    
    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.ItemAppleGold;
    import net.minecraft.item.ItemStack;
    import net.minecraft.item.Item.ToolMaterial;
    import net.minecraft.item.ItemArmor.ArmorMaterial;
    import net.minecraft.potion.Potion;
    import net.minecraftforge.common.util.EnumHelper;
    import cpw.mods.fml.client.registry.RenderingRegistry;
    import cpw.mods.fml.common.Mod;
    import cpw.mods.fml.common.Mod.EventHandler;
    import cpw.mods.fml.common.Mod.Metadata;
    import cpw.mods.fml.common.ModMetadata;
    import cpw.mods.fml.common.event.FMLInitializationEvent;
    import cpw.mods.fml.common.event.FMLPreInitializationEvent;
    import cpw.mods.fml.common.registry.GameRegistry;
    
    @Mod(modid = EpicMod.MODID, version = EpicMod.VERSION)
    public class EpicMod
    {
    public static final String MODID = "EpicMod";
    public static final String VERSION = "1.0";
    
    public static ToolMaterial enumToolMaterialEmeraude = EnumHelper.addToolMaterial("Emeraude", 3, 2001, 9.0F, 4.0F, 9);
    public static ToolMaterial enumToolMaterialRubis = EnumHelper.addToolMaterial("Rubis", 3, 2501, 10.0F, 5.0F, 8);
    public static ToolMaterial enumToolMaterialSaphir = EnumHelper.addToolMaterial("Saphir", 3, 2000, 11.0F, 6.0F, 7);
    public static ToolMaterial enumToolMaterialEpix = EnumHelper.addToolMaterial("Epix", 3, 2000, 11.0F, 7.0F, 6);
    public static ArmorMaterial enumArmorMaterialEmeraude = EnumHelper.addArmorMaterial("Emeraude", 40, new int[]{4, 9, 7, 4}, 9);
    public static ArmorMaterial enumArmorMaterialRubis = EnumHelper.addArmorMaterial("Rubis", 50, new int[]{5, 10, 8, 5}, 8);
    public static ArmorMaterial enumArmorMaterialSaphir = EnumHelper.addArmorMaterial("Saphir", 60, new int[]{6, 11, 9, 6}, 7);
    public static ArmorMaterial enumArmorMaterialEpix = EnumHelper.addArmorMaterial("Epix", 65, new int[]{7, 12, 10, 7}, 6);
    
    @Metadata
    public static ModMetadata meta;
    
    /* ======================================== Ores =====================================*/
    
    public static Block RubisOre;
    
    int RubisOreID = 500;
    
    public static Block SaphirOre;
    
    int SaphirOreID = 501;
    
    public static Block EpixOre;
    
    int EpixOreID = 502;
    
    /* ======================================== Ingots =====================================*/
    
    public static Item Rubis;
    
    int RubisID = 510;
    
    public static Item Saphir;
    
    int SaphirID = 511;
    
    public static Item Epix;
    
    int EpixID = 512;
    
    /* ======================================== Epees =====================================*/
    
    public static Item Emeraudesword;
    
    int EmeraudeswordID = 600;
    
    public static Item rubissword;
    
    int rubisswordID = 601;
    
    public static Item Saphirsword;
    
    int SaphirswordID = 602;
    
    public static Item Epixsword;
    
    int EpixswordID = 603;
    
    /* ======================================== Stuffs =====================================*/
    
    public static Item Emeraudehelmet;
    
    int EmeraudehelmetID = 530;
    
    public static Item Emeraudechestplate;
    
    int EmeraudechestplateID = 531;
    
    public static Item Emeraudelegs;
    
    int EmeraudelegsID = 532;
    
    public static Item Emeraudeboots;
    
    int EmeraudebootsID = 533;
    
    public static Item Rubishelmet;
    
    int RubishelmetID = 534;
    
    public static Item Rubischestplate;
    
    int RubischestplateID = 535;
    
    public static Item Rubislegs;
    
    int RubislegsID = 536;
    
    public static Item Rubisboots;
    
    int RubisbootsID = 537;
    
    public static Item Saphirhelmet;
    
    int SaphirhelmetID = 538;
    
    public static Item Saphirchestplate;
    
    int SaphirchestplateID = 539;
    
    public static Item Saphirlegs;
    
    int SaphirlegsID = 540;
    
    public static Item Saphirboots;
    
    int SaphirbootsID = 541;
    
    public static Item Epixhelmet;
    
    int EpixhelmetID = 542;
    
    public static Item Epixchestplate;
    
    int EpixchestplateID = 543;
    
    public static Item Epixlegs;
    
    int EpixlegsID = 544;
    
    public static Item Epixboots;
    
    int EpixbootsID = 545;
    
    /* ======================================== Outils =====================================*/
    
    public static Item Emeraudeshovel;
    
    int EmeraudeshovelID = 570;
    
    public static Item Emeraudepickaxe;
    
    int EmeraudepickaxeID = 571;
    
    public static Item Emeraudeaxe;
    
    int EmeraudeaxeID = 572;
    
    public static Item rubisshovel;
    
    int rubisshovelID = 573;
    
    public static Item rubispickaxe;
    
    int rubispickaxeID = 574;
    
    public static Item rubisaxe;
    
    int rubisaxeID = 575;
    
    public static Item Saphirshovel;
    
    int SaphirshovelID = 576;
    
    public static Item Saphirpickaxe;
    
    int SaphirpickaxeID = 577;
    
    public static Item Saphiraxe;
    
    int SaphiraxeID = 578;
    
    public static Item Epixshovel;
    
    int EpixshovelID = 579;
    
    public static Item Epixpickaxe;
    
    int EpixpickaxeID = 580;
    
    public static Item Epixaxe;
    
    int EpixaxeID = 581;
    
    public static Block LightObsidian;
    
    int LightObsidianID = 600;
    
    public static Block RubisBlock;
    
    int RubisBlockID = 601;
    
    public static Block SaphirBlock;
    
    int SaphirBlockID = 602;
    
    public static Block EpixBlock;
    
    int EpixBlockID = 603;
    
    public static Item AppleSaphir;
    int AppleSaphirID = 604;
    
    public static Item SaphirApple;
    int SaphirAppleID = 605;
    
    public static Block ObsidianStair;
    int ObsidianStairID = 606;
    
    public static Item Hamburger;
    int HamburgerID = 607;
    
    @EventHandler
    public void init(FMLPreInitializationEvent event)
    {
    RenderingRegistry.addNewArmourRendererPrefix("5");
    RenderingRegistry.addNewArmourRendererPrefix("6");
    RenderingRegistry.addNewArmourRendererPrefix("7");
    RenderingRegistry.addNewArmourRendererPrefix("8");
    
    RubisOre = new RubisOre(Material.rock).setHardness(1.5F).setBlockName("RubisOre");
    SaphirOre = new SaphirOre( Material.rock).setHardness(1.5F).setBlockName("SaphirOre");
    EpixOre = new EpixOre(Material.rock).setHardness(1.5F).setBlockName("EpixOre");
    LightObsidian = new LightObsidian().setBlockName("LightObsidian").setLightLevel(1.0F).setHardness(50.0F).setResistance(500.0F).setCreativeTab(CreativeTabs.tabBlock).setBlockTextureName("rubis:lightobsidian");
    RubisBlock = new RubisBlock().setBlockName("RubisBlock").setHardness(6.0F).setResistance(10.0F).setCreativeTab(CreativeTabs.tabBlock).setBlockTextureName("rubis:rubisblock");
    SaphirBlock = new SaphirBlock().setBlockName("SaphirBlock").setHardness(6.0F).setResistance(10.0F).setCreativeTab(CreativeTabs.tabBlock).setBlockTextureName("saphir:saphirblock");
    EpixBlock = new EpixBlock().setBlockName("EpixBlock").setHardness(6.0F).setResistance(10.0F).setCreativeTab(CreativeTabs.tabBlock).setBlockTextureName("epix:epixblock");
    
    Rubis = new Rubis(RubisID).setUnlocalizedName("Rubis");
    Saphir = new Saphir(SaphirID).setUnlocalizedName("Saphir");
    Epix = new Epix(EpixID).setUnlocalizedName("Epix");
    
    Emeraudesword = new EmeraudeSword(EmeraudeswordID, EpicMod.enumToolMaterialEmeraude).setUnlocalizedName("EmeraudeSword").setCreativeTab(CreativeTabs.tabCombat);
    rubissword = new RubisSword(rubisswordID, EpicMod.enumToolMaterialRubis).setUnlocalizedName("RubisSword").setCreativeTab(CreativeTabs.tabCombat);
    Saphirsword = new SaphirSword(SaphirswordID, EpicMod.enumToolMaterialSaphir).setUnlocalizedName("SaphirSword").setCreativeTab(CreativeTabs.tabCombat);
    Epixsword = new EpixSword(EpixswordID, EpicMod.enumToolMaterialEpix).setUnlocalizedName("EpixSword").setCreativeTab(CreativeTabs.tabCombat);
    
    Emeraudehelmet = new EmeraudeArmor(EpicMod.enumArmorMaterialEmeraude, 5, 0).setUnlocalizedName("Emeraudehelmet").setCreativeTab(CreativeTabs.tabCombat);
    Emeraudechestplate = new EmeraudeArmor(EpicMod.enumArmorMaterialEmeraude, 5, 1).setUnlocalizedName("Emeraudechestplate").setCreativeTab(CreativeTabs.tabCombat);
    Emeraudelegs = new EmeraudeArmor(EpicMod.enumArmorMaterialEmeraude, 5, 2).setUnlocalizedName("Emeraudelegs").setCreativeTab(CreativeTabs.tabCombat);
    Emeraudeboots = new EmeraudeArmor(EpicMod.enumArmorMaterialEmeraude, 5, 3).setUnlocalizedName("Emeraudeboots").setCreativeTab(CreativeTabs.tabCombat);
    
    Rubishelmet = new RubisArmor(EpicMod.enumArmorMaterialRubis, 6, 0).setUnlocalizedName("Rubishelmet").setCreativeTab(CreativeTabs.tabCombat);
    Rubischestplate = new RubisArmor(EpicMod.enumArmorMaterialRubis, 6, 1).setUnlocalizedName("Rubischestplate").setCreativeTab(CreativeTabs.tabCombat);
    Rubislegs = new RubisArmor(EpicMod.enumArmorMaterialRubis, 6, 2).setUnlocalizedName("Rubislegs").setCreativeTab(CreativeTabs.tabCombat);
    Rubisboots = new RubisArmor(EpicMod.enumArmorMaterialRubis, 6, 3).setUnlocalizedName("Rubisboots").setCreativeTab(CreativeTabs.tabCombat);
    
    Saphirhelmet = new SaphirArmor(EpicMod.enumArmorMaterialSaphir, 7, 0).setUnlocalizedName("Saphirhelmet").setCreativeTab(CreativeTabs.tabCombat);
    Saphirchestplate = new SaphirArmor(EpicMod.enumArmorMaterialSaphir, 7, 1).setUnlocalizedName("Saphirchestplate").setCreativeTab(CreativeTabs.tabCombat);
    Saphirlegs = new SaphirArmor(EpicMod.enumArmorMaterialSaphir, 7, 2).setUnlocalizedName("Saphirlegs").setCreativeTab(CreativeTabs.tabCombat);
    Saphirboots = new SaphirArmor(EpicMod.enumArmorMaterialSaphir, 7, 3).setUnlocalizedName("Saphirboots").setCreativeTab(CreativeTabs.tabCombat);
    
    Epixhelmet = new EpixArmor(EpicMod.enumArmorMaterialEpix, 8, 0).setUnlocalizedName("Epixhelmet").setCreativeTab(CreativeTabs.tabCombat);
    Epixchestplate = new EpixArmor(EpicMod.enumArmorMaterialEpix, 8, 1).setUnlocalizedName("Epixchestplate").setCreativeTab(CreativeTabs.tabCombat);
    Epixlegs = new EpixArmor(EpicMod.enumArmorMaterialEpix, 8, 2).setUnlocalizedName("Epixlegs").setCreativeTab(CreativeTabs.tabCombat);
    Epixboots = new EpixArmor(EpicMod.enumArmorMaterialEpix, 8, 3).setUnlocalizedName("Epixboots").setCreativeTab(CreativeTabs.tabCombat);
    
    Emeraudeshovel = new EmeraudeShovel(EmeraudeshovelID, EpicMod.enumToolMaterialEmeraude).setUnlocalizedName("EmeraudeShovel").setCreativeTab(CreativeTabs.tabTools);
    Emeraudepickaxe = new EmeraudePickaxe(EmeraudepickaxeID, EpicMod.enumToolMaterialEmeraude).setUnlocalizedName("EmeraudePickaxe").setCreativeTab(CreativeTabs.tabTools);
    Emeraudeaxe = new EmeraudeAxe(EmeraudeaxeID, EpicMod.enumToolMaterialEmeraude).setUnlocalizedName("EmeraudeAxe").setCreativeTab(CreativeTabs.tabTools);
    
    rubisshovel = new RubisShovel(rubisshovelID, EpicMod.enumToolMaterialRubis).setUnlocalizedName("RubisShovel").setCreativeTab(CreativeTabs.tabTools);
    rubispickaxe = new RubisPickaxe(rubispickaxeID, EpicMod.enumToolMaterialRubis).setUnlocalizedName("RubisPickaxe").setCreativeTab(CreativeTabs.tabTools);
    rubisaxe = new RubisAxe(rubisaxeID, EpicMod.enumToolMaterialRubis).setUnlocalizedName("RubisAxe").setCreativeTab(CreativeTabs.tabTools);
    
    Saphirshovel = new SaphirShovel(SaphirshovelID, EpicMod.enumToolMaterialSaphir).setUnlocalizedName("SaphirShovel").setCreativeTab(CreativeTabs.tabTools);
    Saphirpickaxe = new SaphirPickaxe(SaphirpickaxeID, EpicMod.enumToolMaterialSaphir).setUnlocalizedName("SaphirPickaxe").setCreativeTab(CreativeTabs.tabTools);
    Saphiraxe = new SaphirAxe(SaphiraxeID, EpicMod.enumToolMaterialSaphir).setUnlocalizedName("SaphirAxe").setCreativeTab(CreativeTabs.tabTools);
    
    Epixshovel = new EpixShovel(EpixshovelID, EpicMod.enumToolMaterialEpix).setUnlocalizedName("EpixShovel").setCreativeTab(CreativeTabs.tabTools);
    Epixpickaxe = new EpixPickaxe(EpixpickaxeID, EpicMod.enumToolMaterialEpix).setUnlocalizedName("EpixPickaxe").setCreativeTab(CreativeTabs.tabTools);
    Epixaxe = new EpixAxe(EpixaxeID, EpicMod.enumToolMaterialEpix).setUnlocalizedName("EpixAxe").setCreativeTab(CreativeTabs.tabTools);
    
    AppleSaphir = new AppleSaphir(5, 0.4F, false).setUnlocalizedName("AppleSaphir").setCreativeTab(CreativeTabs.tabFood);
    SaphirApple = new SaphirApple(10, 0.4F, false).setUnlocalizedName("SaphirApple").setCreativeTab(CreativeTabs.tabFood);
    Hamburger = new Hamburger(20, 0.4F, false).setUnlocalizedName("Hamburger").setCreativeTab(CreativeTabs.tabFood);
    
    WorldGeneration worldgeneration = new WorldGeneration();
    SaphirGeneration saphirgeneration = new SaphirGeneration();
    EpixGeneration epixgeneration = new EpixGeneration();
    EmeraudeGeneration emeraudegeneration = new EmeraudeGeneration();
    
    GameRegistry.registerBlock(RubisOre, "RubisOre");
    GameRegistry.registerBlock(SaphirOre, "SaphirOre");
    GameRegistry.registerBlock(EpixOre, "EpixOre");
    GameRegistry.registerBlock(LightObsidian, "LightObsidian");
    GameRegistry.registerBlock(RubisBlock, "RubisBlock");
    GameRegistry.registerBlock(SaphirBlock, "SaphirBlock");
    GameRegistry.registerBlock(EpixBlock, "EpixBlock");
    
    GameRegistry.registerItem(Rubis, "Rubis");
    GameRegistry.registerItem(Saphir, "Saphir");
    GameRegistry.registerItem(Epix, "Epix");
    
    GameRegistry.registerItem(Emeraudesword, "EmeraudeSword");
    GameRegistry.registerItem(rubissword, "RubisSword");
    GameRegistry.registerItem(Saphirsword, "SaphirSword");
    GameRegistry.registerItem(Epixsword, "EpixSword");
    
    GameRegistry.registerItem(Emeraudepickaxe, "EmeraudePickaxe");
    GameRegistry.registerItem(Emeraudeaxe, "EmeraudeAxe");
    GameRegistry.registerItem(Emeraudeshovel, "EmeraudeShovel");
    
    GameRegistry.registerItem(rubispickaxe, "RubisPickaxe");
    GameRegistry.registerItem(rubisaxe, "RubisAxe");
    GameRegistry.registerItem(rubisshovel, "RubisShovel");
    
    GameRegistry.registerItem(Saphirpickaxe, "SaphirPickaxe");
    GameRegistry.registerItem(Saphiraxe, "SaphirAxe");
    GameRegistry.registerItem(Saphirshovel, "SaphirShovel");
    
    GameRegistry.registerItem(Epixpickaxe, "EpixPickaxe");
    GameRegistry.registerItem(Epixaxe, "EpixAxe");
    GameRegistry.registerItem(Epixshovel, "EpixShovel");
    
    GameRegistry.registerItem(Emeraudehelmet, "Emeraudehelmet");
    GameRegistry.registerItem(Emeraudechestplate, "Emeraudechestplate");
    GameRegistry.registerItem(Emeraudelegs, "Emeraudelegs");
    GameRegistry.registerItem(Emeraudeboots, "Emeraudeboots");
    
    GameRegistry.registerItem(Rubishelmet, "Rubishelmet");
    GameRegistry.registerItem(Rubischestplate, "Rubischestplate");
    GameRegistry.registerItem(Rubislegs, "Rubislegs");
    GameRegistry.registerItem(Rubisboots, "Rubisboots");
    
    GameRegistry.registerItem(Saphirhelmet, "Saphirhelmet");
    GameRegistry.registerItem(Saphirchestplate, "Saphirchestplate");
    GameRegistry.registerItem(Saphirlegs, "Saphirlegs");
    GameRegistry.registerItem(Saphirboots, "Saphirboots");
    
    GameRegistry.registerItem(Epixhelmet, "Epixhelmet");
    GameRegistry.registerItem(Epixchestplate, "Epixchestplate");
    GameRegistry.registerItem(Epixlegs, "Epixlegs");
    GameRegistry.registerItem(Epixboots, "Epixboots");
    
    GameRegistry.registerItem(SaphirApple, "SaphirApple");
    GameRegistry.registerItem(AppleSaphir, "AppleSaphir");
    GameRegistry.registerItem(Hamburger, "Hamburger");
    
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Emeraudepickaxe), "III", " S ", " S ", 'I', Items.emerald, 'S', Items.stick);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Emeraudesword), "I", "I", "S", 'I', Items.emerald, 'S', Items.stick);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Emeraudeshovel), "I", "S", "S", 'I', Items.emerald, 'S', Items.stick);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Emeraudeaxe), "II ", "IS ", " S ", 'I', Items.emerald, 'S', Items.stick);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Emeraudechestplate), "I I", "III", "III", 'I', Items.emerald);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Emeraudehelmet), "III", "I I", 'I', Items.emerald);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Emeraudeboots), "I I", "I I", 'I', Items.emerald);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Emeraudelegs), "III", "I I", "I I", 'I', Items.emerald);
    
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.rubispickaxe), "III", " S ", " S ", 'I', EpicMod.Rubis, 'S', Items.stick);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.rubissword), "I", "I", "S", 'I', EpicMod.Rubis, 'S', Items.stick);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.rubisshovel), "I", "S", "S", 'I', EpicMod.Rubis, 'S', Items.stick);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.rubisaxe), "II ", "IS ", " S ", 'I', EpicMod.Rubis, 'S', Items.stick);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Rubischestplate), "I I", "III", "III", 'I', EpicMod.Rubis);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Rubishelmet), "III", "I I", 'I', EpicMod.Rubis);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Rubisboots), "I I", "I I", 'I', EpicMod.Rubis);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Rubislegs), "III", "I I", "I I", 'I', EpicMod.Rubis);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.RubisBlock), "III", "III", "III", 'I', EpicMod.Rubis);
    
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Saphirpickaxe), "III", " S ", " S ", 'I', EpicMod.Saphir, 'S', Items.stick);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Saphirsword), "I", "I", "S", 'I', EpicMod.Saphir, 'S', Items.stick);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Saphirshovel), "I", "S", "S", 'I', EpicMod.Saphir, 'S', Items.stick);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Saphiraxe), "II ", "IS ", " S ", 'I', EpicMod.Saphir, 'S', Items.stick);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Saphirchestplate), "I I", "III", "III", 'I', EpicMod.Saphir);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Saphirhelmet), "III", "I I", 'I', EpicMod.Saphir);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Saphirboots), "I I", "I I", 'I', EpicMod.Saphir);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Saphirlegs), "III", "I I", "I I", 'I', EpicMod.Saphir);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.SaphirBlock), "III", "III", "III", 'I', EpicMod.Saphir);
    
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Epixpickaxe), "III", " S ", " S ", 'I', EpicMod.Epix, 'S', Items.stick);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Epixsword), "I", "I", "S", 'I', EpicMod.Epix, 'S', Items.stick);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Epixshovel), "I", "S", "S", 'I', EpicMod.Epix, 'S', Items.stick);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Epixaxe), "II ", "IS ", " S ", 'I', EpicMod.Epix, 'S', Items.stick);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Epixchestplate), "I I", "III", "III", 'I', EpicMod.Epix);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Epixhelmet), "III", "I I", 'I', EpicMod.Epix);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Epixboots), "I I", "I I", 'I', EpicMod.Epix);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Epixlegs), "III", "I I", "I I", 'I', EpicMod.Epix);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.EpixBlock), "III", "III", "III", 'I', EpicMod.Epix);
    
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.LightObsidian, 4), "ISI", "SSS", "ISI", 'I', Blocks.obsidian, 'S', Blocks.glowstone);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.SaphirApple), "III", "ISI", "III", 'I', EpicMod.SaphirBlock, 'S', Items.apple);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.AppleSaphir), "III", "ISI", "III", 'I', EpicMod.Saphir, 'S', Items.apple);
    GameRegistry.addShapedRecipe(new ItemStack(EpicMod.Hamburger, 2), "I", "S", "I", 'I', Items.bread, 'S', Items.cooked_beef);
    
    GameRegistry.addSmelting(EpicMod.SaphirOre, new ItemStack(EpicMod.Saphir, 1), 10.0F);
    GameRegistry.addSmelting(EpicMod.RubisOre, new ItemStack(EpicMod.Rubis, 1), 10.0F);
    GameRegistry.addSmelting(EpicMod.EpixOre, new ItemStack(EpicMod.Epix, 1), 10.0F);
    
    GameRegistry.registerWorldGenerator(emeraudegeneration, 0);
    GameRegistry.registerWorldGenerator(worldgeneration, 0);
    GameRegistry.registerWorldGenerator(saphirgeneration, 0);
    GameRegistry.registerWorldGenerator(epixgeneration, 0);
    
    }
    }
    

  • Moddeurs confirmés Modérateurs

    ok je vient de comprendre d'où ca vient
    enleve le int rubisOreID = 500;



  • de ou mdrr ? (je viens de commencer a code en java)


    a chaque item ?


Log in to reply