Compiler son mod



  • merci beaucoup



  • Bonjour,

    Après avoir abandonné mon projet, j'ai décidé de le reprendre avec détermination mais ayant un peu oublié le peu que j'avais appris, je me retrouve bloquer pour la compilation... Ici l'invité de commande "PowerShell" (qui m'est proposé avec "Shift + clic droit" ne permet pas l'exécution des commandes gradlew et du coup je bloque totalement... Merci d'avance !


  • Administrateurs

    Salut,
    Il faut faire .\gradlew sous powershell.



  • @robin4002 Une aide indirecte, 16 petites minutes pour m'en sortir. Merci beaucoup, j'apprendrai bien mieux comme ça !

    Bonne soirée 😉



  • La compilation a donc bien fonctionnée comme je le disais ci-dessus mais un problème persiste et je ne comprends pas pourquoi..Il fonctionne parfaitement avant compilation, le build 'Successful' mais avec un warning durant l'opération (voir plus bas)
    1) Crash report
    2) Code class BlockMod
    3) Code class TrilliumMod
    4) Screen du warning

    Rapport de crash: crash-2019-01-12_00.48.08-client.txt

    Class BlockMod:

    package com.mod.trillium.init;
    
    import com.mod.trillium.Reference;
    import com.mod.trillium.TrilliumMod;
    import com.mod.trillium.blocks.BlockBasic;
    import com.mod.trillium.blocks.BlockFenceMod;
    import com.mod.trillium.blocks.BlockSlabMod;
    import com.mod.trillium.blocks.BlockStairsMod;
    import com.mod.trillium.blocks.BlockTutorielMetadata;
    import com.mod.trillium.blocks.BlockWallMod;
    import com.mod.trillium.blocks.ItemBlockMetadataTutoriel;
    
    import cpw.mods.fml.common.registry.GameRegistry;
    import net.minecraft.block.Block;
    import net.minecraft.block.BlockFalling;
    import net.minecraft.block.material.Material;
    
    public class BlockMod
    {
        public static Block block_smallstonebrick, block_netherbrickks, block_nocobble, block_sbedrock, block_slight, block_brbasalt, block_brlgrey, block_brsu, block_brssm, block_brsss, block_brws,
        block_brsc, block_brscd, block_brscm, block_brscmu, block_brscn, block_su, block_sst, block_faintlightgreystone, block_daubwattlewhiteframe, block_smallstonebrickstairs, block_faintlightgreystonewall,
        block_faintlightgreystonefence, block_ssbedrock, block_smallstonebrickwall, block_nocobblestairs, block_sbedrockstairs, block_slightstairs, block_brbasaltstairs, block_brlgreystairs, block_brsustairs,
        block_brssmstairs, block_brwsstairs, block_brscstairs, block_brscdstairs, block_brscmstairs, block_brscmustairs, block_brscnstairs, block_sustairs, block_sststairs, block_faintlightgreystonestairs,
        block_daubwattlewhiteframestairs, block_multi, block_lan, block_rlp, block_brp, block_stl, block_sts, block_crp, block_cwh, block_cst, block_csd, block_stm, block_smb, block_sme, block_smh, block_sla,
        block_slb, block_slc, block_sld, block_sle, block_slf, block_slg, block_slh, block_sli, block_slj, block_slk, block_sll, block_slm, block_sln, block_staba, block_stabb, block_stabc, block_stabd, block_stabe,
        block_stabf, block_aaa, block_aab, block_aac, block_aad, block_aae, block_aaf, block_aag, block_aah, block_aai, block_aaj, block_bedz, block_ncbz, block_aadz, block_aaez, block_aagz, block_brbasaltz,
        block_brlgreyz, block_brpz, block_brscz, block_brscmuz, block_brscnz, block_brssmz, block_brsssz, block_brsuz, block_brwsz, block_crpz, block_csdz, block_cstz, block_cwhz, block_dwwz, block_lanz, block_ntbrkz,
        block_rlpz, block_sstz, block_stabaz, block_stabbz, block_stabcz, block_stabdz, block_stabez, block_stabfz, block_stlz, block_stmz, block_stsz, block_suz, block_logbirch, block_logoak, block_logspruce, block_logjungle,
        block_woodbirch, block_woodoak, block_woodspruce, block_woodjungle, block_maa, block_mab, block_mac, block_mad, block_mae, block_saaa, block_saab, block_saac, block_saad, block_saae, block_saaf, block_saag, block_saah,
        block_waaa, block_waab, block_waac, block_waad, block_waae, block_waaf, block_waag, block_waah, block_waai, block_waaj, block_waak, block_waal, block_waam, block_waan, block_waao, block_waap, block_lanss, block_rlps,
        block_brps, block_stls, block_stss, block_crps, block_cwhs, block_csts, block_csds, block_stms, block_smbs, block_smes, block_smhs, block_slas, block_slbs, block_slcs, block_slds, block_sles, block_slfs, block_slgs,
        block_slhs, block_slis, block_sljs, block_slks, block_slls, block_slms, block_slns, block_stabas, block_stabbs, block_stabcs, block_stabds, block_stabes, block_stabfs, block_aaas, block_aabs, block_aacs, block_aads, 
        block_aaes, block_aafs, block_aags, block_aahs, block_aais, block_aajs;
        
        
        public static void init()
        {
           // Pierres
            block_netherbrickks = new BlockBasic(Material.rock, 2).setBlockName("block_netherbrickks") .setBlockTextureName(Reference.MOD_ID + ":block_netherbrickks").setHardness(3.0F);
            block_nocobble = new BlockBasic(Material.rock, 2).setBlockName("block_nocobble") .setBlockTextureName(Reference.MOD_ID + ":block_nocobble").setHardness(3.0F);
            block_sbedrock = new BlockBasic(Material.rock, 2).setBlockName("block_sbedrock") .setBlockTextureName(Reference.MOD_ID + ":block_sbedrock").setHardness(3.0F);
            block_slight = new BlockBasic(Material.rock, 2).setBlockName("block_slight") .setBlockTextureName(Reference.MOD_ID + ":block_slight").setHardness(3.0F);
            block_brbasalt = new BlockBasic(Material.rock, 2).setBlockName("block_brbasalt") .setBlockTextureName(Reference.MOD_ID + ":block_brbasalt").setHardness(3.0F);
            block_brlgrey = new BlockBasic(Material.rock, 2).setBlockName("block_brlgrey") .setBlockTextureName(Reference.MOD_ID + ":block_brlgrey").setHardness(3.0F);
            block_brsu = new BlockBasic(Material.rock, 2).setBlockName("block_brsu") .setBlockTextureName(Reference.MOD_ID + ":block_brsu").setHardness(3.0F);
            block_brssm = new BlockBasic(Material.rock, 2).setBlockName("block_brssm") .setBlockTextureName(Reference.MOD_ID + ":block_brssm").setHardness(3.0F);
            block_brsss = new BlockBasic(Material.rock, 2).setBlockName("block_brsss") .setBlockTextureName(Reference.MOD_ID + ":block_brsss").setHardness(3.0F);
            block_brws = new BlockBasic(Material.rock, 2).setBlockName("block_brws") .setBlockTextureName(Reference.MOD_ID + ":block_brws").setHardness(3.0F);
            block_brsc = new BlockBasic(Material.rock, 2).setBlockName("block_brsc") .setBlockTextureName(Reference.MOD_ID + ":block_brsc").setHardness(3.0F);
            block_brscd = new BlockBasic(Material.rock, 2).setBlockName("block_brscd") .setBlockTextureName(Reference.MOD_ID + ":block_brscd").setHardness(3.0F);
            block_brscm = new BlockBasic(Material.rock, 2).setBlockName("block_brscm") .setBlockTextureName(Reference.MOD_ID + ":block_brscm").setHardness(3.0F);
            block_brscmu = new BlockBasic(Material.rock, 2).setBlockName("block_brscmu") .setBlockTextureName(Reference.MOD_ID + ":block_brscmu").setHardness(3.0F);
            block_brscn = new BlockBasic(Material.rock, 2).setBlockName("block_brscn") .setBlockTextureName(Reference.MOD_ID + ":block_brscn").setHardness(3.0F);
            block_su = new BlockBasic(Material.rock, 2).setBlockName("block_su") .setBlockTextureName(Reference.MOD_ID + ":block_su").setHardness(3.0F);
            block_sst = new BlockBasic(Material.rock, 2).setBlockName("block_sst") .setBlockTextureName(Reference.MOD_ID + ":block_sst").setHardness(3.0F);
            block_faintlightgreystone = new BlockBasic(Material.rock, 2).setBlockName("block_faintlightgreystone") .setBlockTextureName(Reference.MOD_ID + ":block_faintlightgreystone").setHardness(3.0F);
            block_daubwattlewhiteframe = new BlockBasic(Material.rock, 1).setBlockName("block_daubwattlewhiteframe") .setBlockTextureName(Reference.MOD_ID + ":block_daubwattlewhiteframe").setHardness(2.0F);
            block_lan = new BlockBasic(Material.rock, 2).setBlockName("block_lan") .setBlockTextureName(Reference.MOD_ID + ":block_lan").setHardness(3.0F);
            block_rlp = new BlockBasic(Material.rock, 2).setBlockName("block_rlp") .setBlockTextureName(Reference.MOD_ID + ":block_rlp").setHardness(3.0F);
            block_brp = new BlockBasic(Material.rock, 2).setBlockName("block_brp") .setBlockTextureName(Reference.MOD_ID + ":block_brp").setHardness(3.0F);
            block_stl = new BlockBasic(Material.rock, 2).setBlockName("block_stl") .setBlockTextureName(Reference.MOD_ID + ":block_stl").setHardness(3.0F);
            block_sts = new BlockBasic(Material.rock, 2).setBlockName("block_sts") .setBlockTextureName(Reference.MOD_ID + ":block_sts").setHardness(3.0F);
            block_crp = new BlockBasic(Material.rock, 2).setBlockName("block_crp") .setBlockTextureName(Reference.MOD_ID + ":block_crp").setHardness(3.0F);
            block_cwh = new BlockBasic(Material.rock, 2).setBlockName("block_cwh") .setBlockTextureName(Reference.MOD_ID + ":block_cwh").setHardness(3.0F);
            block_cst = new BlockBasic(Material.rock, 2).setBlockName("block_cst") .setBlockTextureName(Reference.MOD_ID + ":block_cst").setHardness(3.0F);
            block_csd = new BlockBasic(Material.rock, 2).setBlockName("block_csd") .setBlockTextureName(Reference.MOD_ID + ":block_csd").setHardness(3.0F);
            block_stm = new BlockBasic(Material.rock, 2).setBlockName("block_stm") .setBlockTextureName(Reference.MOD_ID + ":block_stm").setHardness(3.0F);
            block_smb = new BlockBasic(Material.rock, 1).setBlockName("block_smb") .setBlockTextureName(Reference.MOD_ID + ":block_smb").setHardness(2.0F);
            block_sme = new BlockBasic(Material.rock, 1).setBlockName("block_sme") .setBlockTextureName(Reference.MOD_ID + ":block_sme").setHardness(2.0F);
            block_smh = new BlockBasic(Material.rock, 1).setBlockName("block_smh") .setBlockTextureName(Reference.MOD_ID + ":block_smh").setHardness(2.0F);
            block_sla = new BlockBasic(Material.rock, 1).setBlockName("block_sla") .setBlockTextureName(Reference.MOD_ID + ":block_sla").setHardness(2.0F);
            block_slb = new BlockBasic(Material.rock, 1).setBlockName("block_slb") .setBlockTextureName(Reference.MOD_ID + ":block_slb").setHardness(2.0F);
            block_slc = new BlockBasic(Material.rock, 1).setBlockName("block_slc") .setBlockTextureName(Reference.MOD_ID + ":block_slc").setHardness(2.0F);
            block_sld = new BlockBasic(Material.rock, 1).setBlockName("block_sld") .setBlockTextureName(Reference.MOD_ID + ":block_sld").setHardness(2.0F);
            block_sle = new BlockBasic(Material.rock, 1).setBlockName("block_sle") .setBlockTextureName(Reference.MOD_ID + ":block_sle").setHardness(2.0F);
            block_slf = new BlockBasic(Material.rock, 1).setBlockName("block_slf") .setBlockTextureName(Reference.MOD_ID + ":block_slf").setHardness(2.0F);
            block_slg = new BlockBasic(Material.rock, 1).setBlockName("block_slg") .setBlockTextureName(Reference.MOD_ID + ":block_slg").setHardness(2.0F);
            block_slh = new BlockBasic(Material.rock, 1).setBlockName("block_slh") .setBlockTextureName(Reference.MOD_ID + ":block_slh").setHardness(2.0F);
            block_sli = new BlockBasic(Material.rock, 1).setBlockName("block_sli") .setBlockTextureName(Reference.MOD_ID + ":block_sli").setHardness(2.0F);
            block_slj = new BlockBasic(Material.rock, 1).setBlockName("block_slj") .setBlockTextureName(Reference.MOD_ID + ":block_slj").setHardness(2.0F);
            block_slk = new BlockBasic(Material.rock, 1).setBlockName("block_slk") .setBlockTextureName(Reference.MOD_ID + ":block_slk").setHardness(2.0F);
            block_sll = new BlockBasic(Material.rock, 1).setBlockName("block_sll") .setBlockTextureName(Reference.MOD_ID + ":block_sll").setHardness(2.0F);
            block_slm = new BlockBasic(Material.rock, 1).setBlockName("block_slm") .setBlockTextureName(Reference.MOD_ID + ":block_slm").setHardness(2.0F);
            block_sln = new BlockBasic(Material.rock, 1).setBlockName("block_sln") .setBlockTextureName(Reference.MOD_ID + ":block_sln").setHardness(2.0F);
            block_staba = new BlockBasic(Material.rock, 2).setBlockName("block_staba") .setBlockTextureName(Reference.MOD_ID + ":block_staba").setHardness(2.3F);
            block_stabb = new BlockBasic(Material.rock, 2).setBlockName("block_stabb") .setBlockTextureName(Reference.MOD_ID + ":block_stabb").setHardness(2.3F);
            block_stabc = new BlockBasic(Material.rock, 2).setBlockName("block_stabc") .setBlockTextureName(Reference.MOD_ID + ":block_stabc").setHardness(2.3F);
            block_stabd = new BlockBasic(Material.rock, 2).setBlockName("block_stabd") .setBlockTextureName(Reference.MOD_ID + ":block_stabd").setHardness(2.3F);
            block_stabe = new BlockBasic(Material.rock, 2).setBlockName("block_stabe") .setBlockTextureName(Reference.MOD_ID + ":block_stabe").setHardness(2.3F);
            block_stabf = new BlockBasic(Material.rock, 2).setBlockName("block_stabf") .setBlockTextureName(Reference.MOD_ID + ":block_stabf").setHardness(2.3F);
            block_aaa = new BlockBasic(Material.rock, 1).setBlockName("block_aaa") .setBlockTextureName(Reference.MOD_ID + ":block_aaa").setHardness(2.0F);
            block_aab = new BlockBasic(Material.rock, 1).setBlockName("block_aab") .setBlockTextureName(Reference.MOD_ID + ":block_aab").setHardness(2.0F);
            block_aac = new BlockBasic(Material.rock, 1).setBlockName("block_aac") .setBlockTextureName(Reference.MOD_ID + ":block_aac").setHardness(2.0F);
            block_aad = new BlockBasic(Material.rock, 2).setBlockName("block_aad") .setBlockTextureName(Reference.MOD_ID + ":block_aad").setHardness(3.0F);
            block_aae = new BlockBasic(Material.rock, 2).setBlockName("block_aae") .setBlockTextureName(Reference.MOD_ID + ":block_aae").setHardness(3.0F);
            block_aaf = new BlockBasic(Material.rock, 1).setBlockName("block_aaf") .setBlockTextureName(Reference.MOD_ID + ":block_aaf").setHardness(2.0F);
            block_aag = new BlockBasic(Material.rock, 2).setBlockName("block_aag") .setBlockTextureName(Reference.MOD_ID + ":block_aag").setHardness(3.0F);
            block_aah = new BlockBasic(Material.rock, 1).setBlockName("block_aah") .setBlockTextureName(Reference.MOD_ID + ":block_aah").setHardness(2.0F);
            block_aai = new BlockBasic(Material.rock, 1).setBlockName("block_aai") .setBlockTextureName(Reference.MOD_ID + ":block_aai").setHardness(2.0F);
            block_aaj = new BlockBasic(Material.rock, 1).setBlockName("block_aaj") .setBlockTextureName(Reference.MOD_ID + ":block_aaj").setHardness(2.0F);
            //Sable, terre
            block_saaa = new BlockFalling(Material.sand).setBlockName("block_saaa") .setBlockTextureName(Reference.MOD_ID + ":block_saaa").setHardness(1.0F);
            block_saab = new BlockFalling(Material.sand).setBlockName("block_saab") .setBlockTextureName(Reference.MOD_ID + ":block_saab").setHardness(1.0F);
            block_saac = new BlockFalling(Material.sand).setBlockName("block_saac") .setBlockTextureName(Reference.MOD_ID + ":block_saac").setHardness(1.0F);
            block_saad = new BlockFalling(Material.sand).setBlockName("block_saad") .setBlockTextureName(Reference.MOD_ID + ":block_saad").setHardness(1.0F);
            block_saae = new BlockFalling(Material.sand).setBlockName("block_saae") .setBlockTextureName(Reference.MOD_ID + ":block_saae").setHardness(1.0F);
            block_saaf = new BlockFalling(Material.sand).setBlockName("block_saaf") .setBlockTextureName(Reference.MOD_ID + ":block_saaf").setHardness(1.0F);
            block_saag = new BlockFalling(Material.sand).setBlockName("block_saag") .setBlockTextureName(Reference.MOD_ID + ":block_saag").setHardness(1.0F);
            block_saah = new BlockFalling(Material.sand).setBlockName("block_saah") .setBlockTextureName(Reference.MOD_ID + ":block_saah").setHardness(1.0F);
            // Bois
            block_logbirch = new BlockBasic(Material.wood, 1).setBlockName("block_logbirch").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_logbirch").setHardness(2.0F);
            block_logoak = new BlockBasic(Material.wood, 1).setBlockName("block_logoak").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_logoak").setHardness(2.0F);
            block_logspruce = new BlockBasic(Material.wood, 1).setBlockName("block_logspruce").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_logspruce").setHardness(2.0F);
            block_logjungle = new BlockBasic(Material.wood, 1).setBlockName("block_logjungle").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_logjungle").setHardness(2.0F);
            block_woodbirch = new BlockBasic(Material.wood, 1).setBlockName("block_woodbirch").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_woodbirch").setHardness(1.0F);
            block_woodoak = new BlockBasic(Material.wood, 1).setBlockName("block_woodoak").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_woodoak").setHardness(1.0F);
            block_woodspruce = new BlockBasic(Material.wood, 1).setBlockName("block_woodspruce").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_woodspruce").setHardness(1.0F);
            block_woodjungle = new BlockBasic(Material.wood, 1).setBlockName("block_woodjungle").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_woodjungle").setHardness(1.0F);
            //Laines
            block_waaa = new BlockBasic(Material.cloth, 1).setBlockName("block_waaa").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_waaa").setHardness(1.0F);
            block_waab = new BlockBasic(Material.cloth, 1).setBlockName("block_waab").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_waab").setHardness(1.0F);
            block_waac = new BlockBasic(Material.cloth, 1).setBlockName("block_waac").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_waac").setHardness(1.0F);
            block_waad = new BlockBasic(Material.cloth, 1).setBlockName("block_waad").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_waad").setHardness(1.0F);
            block_waae = new BlockBasic(Material.cloth, 1).setBlockName("block_waae").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_waae").setHardness(1.0F);
            block_waaf = new BlockBasic(Material.cloth, 1).setBlockName("block_waaf").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_waaf").setHardness(1.0F);
            block_waag = new BlockBasic(Material.cloth, 1).setBlockName("block_waag").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_waag").setHardness(1.0F);
            block_waah = new BlockBasic(Material.cloth, 1).setBlockName("block_waah").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_waah").setHardness(1.0F);
            block_waai = new BlockBasic(Material.cloth, 1).setBlockName("block_waai").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_waai").setHardness(1.0F);
            block_waaj = new BlockBasic(Material.cloth, 1).setBlockName("block_waaj").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_waaj").setHardness(1.0F);
            block_waak = new BlockBasic(Material.cloth, 1).setBlockName("block_waak").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_waak").setHardness(1.0F);
            block_waal = new BlockBasic(Material.cloth, 1).setBlockName("block_waal").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_waal").setHardness(1.0F);
            block_waam = new BlockBasic(Material.cloth, 1).setBlockName("block_waam").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_waam").setHardness(1.0F);
            block_waan = new BlockBasic(Material.cloth, 1).setBlockName("block_waan").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_waan").setHardness(1.0F);
            block_waao = new BlockBasic(Material.cloth, 1).setBlockName("block_waao").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_waao").setHardness(1.0F);
            block_waap = new BlockBasic(Material.cloth, 1).setBlockName("block_waap").setCreativeTab(TrilliumMod.tabWood).setBlockTextureName(Reference.MOD_ID +":block_waap").setHardness(1.0F);
            // Metaux
            block_maa = new BlockBasic(Material.iron, 1).setBlockName("block_maa").setCreativeTab(TrilliumMod.tabMetal).setBlockTextureName(Reference.MOD_ID +":block_maa").setHardness(3.0F);
            block_mab = new BlockBasic(Material.iron, 1).setBlockName("block_mab").setCreativeTab(TrilliumMod.tabMetal).setBlockTextureName(Reference.MOD_ID +":block_mab").setHardness(3.0F);
            block_mac = new BlockBasic(Material.iron, 1).setBlockName("block_mac").setCreativeTab(TrilliumMod.tabMetal).setBlockTextureName(Reference.MOD_ID +":block_mac").setHardness(3.0F);
            block_mad = new BlockBasic(Material.iron, 1).setBlockName("block_mad").setCreativeTab(TrilliumMod.tabMetal).setBlockTextureName(Reference.MOD_ID +":block_mad").setHardness(3.0F);
            block_mae = new BlockBasic(Material.iron, 1).setBlockName("block_mae").setCreativeTab(TrilliumMod.tabMetal).setBlockTextureName(Reference.MOD_ID +":block_mae").setHardness(3.0F);
            // Escaliers en pierre
            block_nocobblestairs = new BlockStairsMod(BlockMod.block_nocobble, 2).setBlockName("block_nocobblestairs").setCreativeTab(TrilliumMod.tabStairs);
            block_smallstonebrickstairs = new BlockStairsMod(BlockMod.block_smallstonebrick, 2).setBlockName("block_smallstonebrickstairs").setCreativeTab(TrilliumMod.tabStairs);
            block_sbedrockstairs = new BlockStairsMod(BlockMod.block_sbedrock, 2).setBlockName("block_sbedrockstairs").setCreativeTab(TrilliumMod.tabStairs);
            block_slightstairs = new BlockStairsMod(BlockMod.block_slight, 2).setBlockName("block_slightstairs").setCreativeTab(TrilliumMod.tabStairs);
            block_brbasaltstairs = new BlockStairsMod(BlockMod.block_brbasalt, 2).setBlockName("block_brbasaltstairs").setCreativeTab(TrilliumMod.tabStairs);
            block_brlgreystairs = new BlockStairsMod(BlockMod.block_brlgrey, 2).setBlockName("block_brlgreystairs").setCreativeTab(TrilliumMod.tabStairs);
            block_brsustairs = new BlockStairsMod(BlockMod.block_brsu, 2).setBlockName("block_brsustairs").setCreativeTab(TrilliumMod.tabStairs);
            block_brssmstairs = new BlockStairsMod(BlockMod.block_brssm, 2).setBlockName("block_brssmstairs").setCreativeTab(TrilliumMod.tabStairs);
            block_brwsstairs = new BlockStairsMod(BlockMod.block_brws, 2).setBlockName("block_brwsstairs").setCreativeTab(TrilliumMod.tabStairs);
            block_brscstairs = new BlockStairsMod(BlockMod.block_brsc, 2).setBlockName("block_brscstairs").setCreativeTab(TrilliumMod.tabStairs);
            block_brscdstairs = new BlockStairsMod(BlockMod.block_brscd, 2).setBlockName("block_brscdstairs").setCreativeTab(TrilliumMod.tabStairs);
            block_brscmstairs = new BlockStairsMod(BlockMod.block_brscm, 2).setBlockName("block_brscmstairs").setCreativeTab(TrilliumMod.tabStairs);
            block_brscmustairs = new BlockStairsMod(BlockMod.block_brscmu, 2).setBlockName("block_brscmustairs").setCreativeTab(TrilliumMod.tabStairs);
            block_brscnstairs = new BlockStairsMod(BlockMod.block_brscn, 2).setBlockName("block_brscnstairs").setCreativeTab(TrilliumMod.tabStairs);
            block_sustairs = new BlockStairsMod(BlockMod.block_su, 2).setBlockName("block_sustairs").setCreativeTab(TrilliumMod.tabStairs);
            block_sststairs = new BlockStairsMod(BlockMod.block_sst, 2).setBlockName("block_sststairs").setCreativeTab(TrilliumMod.tabStairs);
            block_faintlightgreystonestairs = new BlockStairsMod(BlockMod.block_faintlightgreystone, 2).setBlockName("block_faintlightgreystonestairs").setCreativeTab(TrilliumMod.tabStairs);
            block_daubwattlewhiteframestairs = new BlockStairsMod(BlockMod.block_daubwattlewhiteframe, 2).setBlockName("block_daubwattlewhiteframestairs").setCreativeTab(TrilliumMod.tabStairs);
            // escaliers suite
            block_lanss = new BlockStairsMod(BlockMod.block_lan, 2).setBlockName("block_lanss").setCreativeTab(TrilliumMod.tabStairs);
            block_rlps = new BlockStairsMod(BlockMod.block_rlp, 2).setBlockName("block_rlps").setCreativeTab(TrilliumMod.tabStairs);
            block_brps = new BlockStairsMod(BlockMod.block_brp, 2).setBlockName("block_brps").setCreativeTab(TrilliumMod.tabStairs);
            block_stls = new BlockStairsMod(BlockMod.block_stl, 2).setBlockName("block_stls").setCreativeTab(TrilliumMod.tabStairs);
            block_stss = new BlockStairsMod(BlockMod.block_sts, 2).setBlockName("block_stss").setCreativeTab(TrilliumMod.tabStairs);
            block_crps = new BlockStairsMod(BlockMod.block_crp, 2).setBlockName("block_crps").setCreativeTab(TrilliumMod.tabStairs);
            block_cwhs = new BlockStairsMod(BlockMod.block_cwh, 2).setBlockName("block_cwhs").setCreativeTab(TrilliumMod.tabStairs);
            block_csts = new BlockStairsMod(BlockMod.block_cst, 2).setBlockName("block_csts").setCreativeTab(TrilliumMod.tabStairs);
            block_csds = new BlockStairsMod(BlockMod.block_csd, 2).setBlockName("block_csds").setCreativeTab(TrilliumMod.tabStairs);
            block_stms = new BlockStairsMod(BlockMod.block_stm, 2).setBlockName("block_stms").setCreativeTab(TrilliumMod.tabStairs);
            block_smbs = new BlockStairsMod(BlockMod.block_smb, 2).setBlockName("block_smbs").setCreativeTab(TrilliumMod.tabStairs);
            block_smes = new BlockStairsMod(BlockMod.block_sme, 2).setBlockName("block_smes").setCreativeTab(TrilliumMod.tabStairs);
            block_smhs = new BlockStairsMod(BlockMod.block_smh, 2).setBlockName("block_smhs").setCreativeTab(TrilliumMod.tabStairs);
            block_slas = new BlockStairsMod(BlockMod.block_sla, 2).setBlockName("block_slas").setCreativeTab(TrilliumMod.tabStairs);
            block_slbs = new BlockStairsMod(BlockMod.block_slb, 2).setBlockName("block_slbs").setCreativeTab(TrilliumMod.tabStairs);
            block_slcs = new BlockStairsMod(BlockMod.block_slc, 2).setBlockName("block_slcs").setCreativeTab(TrilliumMod.tabStairs);
            block_slds = new BlockStairsMod(BlockMod.block_sld, 2).setBlockName("block_slds").setCreativeTab(TrilliumMod.tabStairs);
            block_sles = new BlockStairsMod(BlockMod.block_sle, 2).setBlockName("block_sles").setCreativeTab(TrilliumMod.tabStairs);
            block_slfs = new BlockStairsMod(BlockMod.block_slf, 2).setBlockName("block_slfs").setCreativeTab(TrilliumMod.tabStairs);
            block_slgs = new BlockStairsMod(BlockMod.block_slg, 2).setBlockName("block_slgs").setCreativeTab(TrilliumMod.tabStairs);
            block_slhs = new BlockStairsMod(BlockMod.block_slh, 2).setBlockName("block_slhs").setCreativeTab(TrilliumMod.tabStairs);
            block_slis = new BlockStairsMod(BlockMod.block_sli, 2).setBlockName("block_slis").setCreativeTab(TrilliumMod.tabStairs);
            block_sljs = new BlockStairsMod(BlockMod.block_slj, 2).setBlockName("block_sljs").setCreativeTab(TrilliumMod.tabStairs);
            block_slks = new BlockStairsMod(BlockMod.block_slk, 2).setBlockName("block_slks").setCreativeTab(TrilliumMod.tabStairs);
            block_slms = new BlockStairsMod(BlockMod.block_slm, 2).setBlockName("block_slms").setCreativeTab(TrilliumMod.tabStairs);
            block_slns = new BlockStairsMod(BlockMod.block_sln, 2).setBlockName("block_slns").setCreativeTab(TrilliumMod.tabStairs);
            block_stabas = new BlockStairsMod(BlockMod.block_staba, 2).setBlockName("block_stabas").setCreativeTab(TrilliumMod.tabStairs);
            block_stabbs = new BlockStairsMod(BlockMod.block_stabb, 2).setBlockName("block_stabbs").setCreativeTab(TrilliumMod.tabStairs);
            block_stabcs = new BlockStairsMod(BlockMod.block_stabc, 2).setBlockName("block_stabcs").setCreativeTab(TrilliumMod.tabStairs);
            block_stabds = new BlockStairsMod(BlockMod.block_stabd, 2).setBlockName("block_stabds").setCreativeTab(TrilliumMod.tabStairs);
            block_stabes = new BlockStairsMod(BlockMod.block_stabe, 2).setBlockName("block_stabes").setCreativeTab(TrilliumMod.tabStairs);
            block_stabfs = new BlockStairsMod(BlockMod.block_stabf, 2).setBlockName("block_stabfs").setCreativeTab(TrilliumMod.tabStairs);
            block_aaas = new BlockStairsMod(BlockMod.block_aaa, 2).setBlockName("block_aaas").setCreativeTab(TrilliumMod.tabStairs);
            block_aabs = new BlockStairsMod(BlockMod.block_aab, 2).setBlockName("block_aabs").setCreativeTab(TrilliumMod.tabStairs);
            block_aacs = new BlockStairsMod(BlockMod.block_aac, 2).setBlockName("block_aacs").setCreativeTab(TrilliumMod.tabStairs);
            block_aads = new BlockStairsMod(BlockMod.block_aad, 2).setBlockName("block_aads").setCreativeTab(TrilliumMod.tabStairs);
            block_aaes = new BlockStairsMod(BlockMod.block_aae, 2).setBlockName("block_aaes").setCreativeTab(TrilliumMod.tabStairs);
            block_aafs = new BlockStairsMod(BlockMod.block_aaf, 2).setBlockName("block_aafs").setCreativeTab(TrilliumMod.tabStairs);
            block_aags = new BlockStairsMod(BlockMod.block_aag, 2).setBlockName("block_aags").setCreativeTab(TrilliumMod.tabStairs);
            block_aahs = new BlockStairsMod(BlockMod.block_aah, 2).setBlockName("block_aahs").setCreativeTab(TrilliumMod.tabStairs);
            block_aais = new BlockStairsMod(BlockMod.block_aai, 2).setBlockName("block_aais").setCreativeTab(TrilliumMod.tabStairs);
            block_aajs = new BlockStairsMod(BlockMod.block_aaj, 2).setBlockName("block_aajs").setCreativeTab(TrilliumMod.tabStairs);
            // Murets 
            block_smallstonebrickwall = new BlockWallMod(block_smallstonebrick).setBlockName("block_smallstonebrickwall").setCreativeTab(TrilliumMod.tabWalls);
            block_faintlightgreystonewall = new BlockWallMod(block_faintlightgreystone).setBlockName("block_faintlightgreystonewall").setCreativeTab(TrilliumMod.tabWalls);
            block_bedz = new BlockWallMod(block_sbedrock).setBlockName("block_bedz").setCreativeTab(TrilliumMod.tabWalls);
            block_ncbz = new BlockWallMod(block_nocobble).setBlockName("block_ncbz").setCreativeTab(TrilliumMod.tabWalls);
            block_aadz = new BlockWallMod(block_aad).setBlockName("block_aadz").setCreativeTab(TrilliumMod.tabWalls);
            block_aaez = new BlockWallMod(block_aae).setBlockName("block_aaez").setCreativeTab(TrilliumMod.tabWalls);
            block_aagz = new BlockWallMod(block_aag).setBlockName("block_aagz").setCreativeTab(TrilliumMod.tabWalls);
            block_brbasaltz = new BlockWallMod(block_brbasalt).setBlockName("block_brbasaltz").setCreativeTab(TrilliumMod.tabWalls);
            block_brlgreyz = new BlockWallMod(block_brlgrey).setBlockName("block_brlgreyz").setCreativeTab(TrilliumMod.tabWalls);
            block_brpz = new BlockWallMod(block_brp).setBlockName("block_brpz").setCreativeTab(TrilliumMod.tabWalls);
            block_brscz = new BlockWallMod(block_brsc).setBlockName("block_brscz").setCreativeTab(TrilliumMod.tabWalls);
            block_brscmuz = new BlockWallMod(block_brscmu).setBlockName("block_brscmuz").setCreativeTab(TrilliumMod.tabWalls);
            block_brscnz = new BlockWallMod(block_brscn).setBlockName("block_brscnz").setCreativeTab(TrilliumMod.tabWalls);
            block_brssmz = new BlockWallMod(block_brssm).setBlockName("block_brssmz").setCreativeTab(TrilliumMod.tabWalls);
            block_brsssz = new BlockWallMod(block_brsss).setBlockName("block_brsssz").setCreativeTab(TrilliumMod.tabWalls);
            block_brsuz = new BlockWallMod(block_brsu).setBlockName("block_brsuz").setCreativeTab(TrilliumMod.tabWalls);
            block_brwsz = new BlockWallMod(block_brws).setBlockName("block_brwsz").setCreativeTab(TrilliumMod.tabWalls);
            block_crpz = new BlockWallMod(block_crp).setBlockName("block_crpz").setCreativeTab(TrilliumMod.tabWalls);
            block_csdz = new BlockWallMod(block_csd).setBlockName("block_csdz").setCreativeTab(TrilliumMod.tabWalls);
            block_cstz = new BlockWallMod(block_cst).setBlockName("block_cstz").setCreativeTab(TrilliumMod.tabWalls);
            block_cwhz = new BlockWallMod(block_cwh).setBlockName("block_cwhz").setCreativeTab(TrilliumMod.tabWalls);
            block_dwwz = new BlockWallMod(block_daubwattlewhiteframe).setBlockName("block_dwwz").setCreativeTab(TrilliumMod.tabWalls);
            block_lanz = new BlockWallMod(block_lan).setBlockName("block_lanz").setCreativeTab(TrilliumMod.tabWalls);
            block_ntbrkz = new BlockWallMod(block_netherbrickks).setBlockName("block_ntbrkz").setCreativeTab(TrilliumMod.tabWalls);
            block_rlpz = new BlockWallMod(block_rlp).setBlockName("block_rlpz").setCreativeTab(TrilliumMod.tabWalls);
            block_sstz = new BlockWallMod(block_sst).setBlockName("block_sstz").setCreativeTab(TrilliumMod.tabWalls);
            block_stabaz = new BlockWallMod(block_staba).setBlockName("block_stabaz").setCreativeTab(TrilliumMod.tabWalls);
            block_stabbz = new BlockWallMod(block_stabb).setBlockName("block_stabbz").setCreativeTab(TrilliumMod.tabWalls);
            block_stabcz = new BlockWallMod(block_stabc).setBlockName("block_stabcz").setCreativeTab(TrilliumMod.tabWalls);
            block_stabdz = new BlockWallMod(block_stabd).setBlockName("block_stabdz").setCreativeTab(TrilliumMod.tabWalls);
            block_stabez = new BlockWallMod(block_stabe).setBlockName("block_stabez").setCreativeTab(TrilliumMod.tabWalls);
            block_stabfz = new BlockWallMod(block_stabf).setBlockName("block_stabfz").setCreativeTab(TrilliumMod.tabWalls);
            block_stlz = new BlockWallMod(block_stl).setBlockName("block_stlz").setCreativeTab(TrilliumMod.tabWalls);
            block_stmz = new BlockWallMod(block_stm).setBlockName("block_stmz").setCreativeTab(TrilliumMod.tabWalls);
            block_stsz = new BlockWallMod(block_sts).setBlockName("block_stsz").setCreativeTab(TrilliumMod.tabWalls);
            block_suz = new BlockWallMod(block_su).setBlockName("block_suz").setCreativeTab(TrilliumMod.tabWalls);
            //Barrière en pierre
            block_faintlightgreystonefence = new BlockFenceMod(Reference.MOD_ID + ":block_faintlightgreystone", Material.rock).setBlockName("block_faintlightgreystonefence").setCreativeTab(TrilliumMod.tabFences);
            //Dalle en pierre
            block_ssbedrock = new BlockSlabMod(false, Material.rock).setBlockName("block_ssbedrock").setBlockTextureName(Reference.MOD_ID + ":block_ssbedrock").setCreativeTab(TrilliumMod.tabPierres);
            //Multi-textured
            block_multi = new BlockTutorielMetadata().setBlockName("block_multi").setCreativeTab(TrilliumMod.tabPierres).setHardness(2.0F);
        }
        
      
        
        
        public static void register()
        {
            GameRegistry.registerBlock(block_smallstonebrick, block_smallstonebrick.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_netherbrickks, block_netherbrickks.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_nocobble, block_nocobble.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_sbedrock, block_sbedrock.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_slight, block_slight.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brbasalt, block_brbasalt.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brlgrey, block_brlgrey.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brsu, block_brsu.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brssm, block_brssm.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brsss, block_brsss.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brws, block_brws.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brsc, block_brsc.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brscd, block_brscd.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brscm, block_brscm.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brscmu, block_brscmu.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brscn, block_brscn.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_su, block_su.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_sst, block_sst.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_faintlightgreystone, block_faintlightgreystone.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_daubwattlewhiteframe, block_daubwattlewhiteframe.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_smallstonebrickstairs, block_smallstonebrickstairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_faintlightgreystonewall, block_faintlightgreystonewall.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_faintlightgreystonefence, block_faintlightgreystonefence.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_ssbedrock, block_ssbedrock.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_smallstonebrickwall, block_smallstonebrickwall.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_sbedrockstairs, block_sbedrockstairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_nocobblestairs, block_nocobblestairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_slightstairs, block_slightstairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brbasaltstairs, block_brbasaltstairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brlgreystairs, block_brlgreystairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brsustairs, block_brsustairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brssmstairs, block_brssmstairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brwsstairs, block_brwsstairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brscstairs, block_brscstairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brscdstairs, block_brscdstairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brscmstairs, block_brscmstairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brscmustairs, block_brscmustairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_brscnstairs, block_brscnstairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_sustairs, block_sustairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_sststairs, block_sststairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_faintlightgreystonestairs, block_faintlightgreystonestairs.getUnlocalizedName().substring(5));
            GameRegistry.registerBlock(block_daubwattlewhiteframestairs, block_daubwattlewhiteframestairs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_multi, ItemBlockMetadataTutoriel.class, "block_multi", new Object[]{BlockTutorielMetadata.subBlock});
    		GameRegistry.registerBlock(block_lan, block_lan.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_rlp, block_rlp.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_brp, block_brp.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stl, block_stl.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_sts, block_sts.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_crp, block_crp.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_cwh, block_cwh.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_cst, block_cst.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_csd, block_csd.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stm, block_stm.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_smb, block_smb.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_sme, block_sme.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_smh, block_smh.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_sla, block_sla.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slb, block_slb.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slc, block_slc.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_sld, block_sld.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_sle, block_sle.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slf, block_slf.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slg, block_slg.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slh, block_slh.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_sli, block_sli.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slj, block_slj.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slk, block_slk.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_sll, block_sll.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slm, block_slm.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_sln, block_sln.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_staba, block_staba.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabb, block_stabb.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabc, block_stabc.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabd, block_stabd.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabe, block_stabe.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabf, block_stabf.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aaa, block_aaa.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aab, block_aab.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aac, block_aac.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aad, block_aad.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aae, block_aae.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aaf, block_aaf.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aag, block_aag.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aah, block_aah.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aai, block_aai.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aaj, block_aaj.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_bedz, block_bedz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_ncbz, block_ncbz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aadz, block_aadz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aaez, block_aaez.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aagz, block_aagz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_brbasaltz, block_brbasaltz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_brlgreyz, block_brlgreyz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_brpz, block_brpz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_brscz, block_brscz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_brscmuz, block_brscmuz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_brscnz, block_brscnz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_brssmz, block_brssmz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_brsssz, block_brsssz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_brsuz, block_brsuz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_brwsz, block_brwsz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_crpz, block_crpz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_csdz, block_csdz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_cstz, block_cstz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_cwhz, block_cwhz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_dwwz, block_dwwz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_lanz, block_lanz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_ntbrkz, block_ntbrkz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_rlpz, block_rlpz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_sstz, block_sstz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabaz, block_stabaz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabbz, block_stabbz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabcz, block_stabcz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabdz, block_stabdz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabez, block_stabez.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabfz, block_stabfz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stlz, block_stlz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stmz, block_stmz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stsz, block_stsz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_suz, block_suz.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_logbirch, block_logbirch.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_logoak, block_logoak.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_logspruce, block_logspruce.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_logjungle, block_logjungle.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_maa, block_maa.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_mab, block_mab.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_mac, block_mac.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_mad, block_mad.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_mae, block_mae.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_saaa, block_saaa.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_saab, block_saab.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_saac, block_saac.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_saad, block_saad.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_saae, block_saae.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_saaf, block_saaf.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_saag, block_saag.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_saah, block_saah.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_waaa, block_waaa.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_waab, block_waab.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_waac, block_waac.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_waad, block_waad.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_waae, block_waae.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_waaf, block_waaf.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_waag, block_waag.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_waah, block_waah.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_waai, block_waai.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_waaj, block_waaj.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_waak, block_waak.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_waal, block_waal.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_waam, block_waam.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_waan, block_waan.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_waao, block_waao.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_waap, block_waap.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_lanss, block_lanss.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_rlps, block_rlps.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_brps, block_brps.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stls, block_stls.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stss, block_stss.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_crps, block_crps.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_cwhs, block_cwhs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_csts, block_csts.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_csds, block_csds.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stms, block_stms.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_smbs, block_smbs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_smes, block_smes.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_smhs, block_smhs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slas, block_slas.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slbs, block_slbs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slcs, block_slcs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slds, block_slds.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_sles, block_sles.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slfs, block_slfs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slgs, block_slgs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slhs, block_slhs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slis, block_slis.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_sljs, block_sljs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slks, block_slks.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slms, block_slms.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_slns, block_slns.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabas, block_stabas.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabbs, block_stabbs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabcs, block_stabcs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabds, block_stabds.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabes, block_stabes.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_stabfs, block_stabfs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aaas, block_aaas.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aabs, block_aabs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aacs, block_aacs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aads, block_aads.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aaes, block_aaes.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aafs, block_aafs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aags, block_aags.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aahs, block_aahs.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aais, block_aais.getUnlocalizedName().substring(5));
    		GameRegistry.registerBlock(block_aajs, block_aajs.getUnlocalizedName().substring(5));		
        } 
    

    Class TrilliumMod:

    package com.mod.trillium;
    
    import com.mod.trillium.init.BlockMod;
    import com.mod.trillium.init.FuelHndlerMod;
    import com.mod.trillium.init.RemoveMod;
    import com.mod.trillium.proxy.CommonProxy;
    
    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 cpw.mods.fml.relauncher.SideOnly;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.item.Item;
    
    @Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION)
    
    public class TrilliumMod
    {
        @Instance(Reference.MOD_ID)
        public static TrilliumMod instance;
        
        @SidedProxy(clientSide = Reference.CLIENT_PROXY, serverSide = Reference.SERVER_PROXY)
        public static CommonProxy proxy;
        
        public static CreativeTabs tabPierres = new CreativeTabs("Pierres")
    
        {
            @SideOnly(Side.CLIENT)
            public Item getTabIconItem()
            {
                return Item.getItemFromBlock(BlockMod.block_smallstonebrick);
            }
        };
        public static CreativeTabs tabWood = new CreativeTabs("Wood")
    
        {
            @SideOnly(Side.CLIENT)
            public Item getTabIconItem()
            {
                return Item.getItemFromBlock(BlockMod.block_logbirch);
            }
        };
        public static CreativeTabs tabMetal = new CreativeTabs("Metal")
    
        {
            @SideOnly(Side.CLIENT)
            public Item getTabIconItem()
            {
                return Item.getItemFromBlock(BlockMod.block_mae);
            }
        };
        public static CreativeTabs tabFences = new CreativeTabs("Fences")
    
        {
            @SideOnly(Side.CLIENT)
            public Item getTabIconItem()
            {
                return Item.getItemFromBlock(BlockMod.block_faintlightgreystonefence);
            }
        };
        public static CreativeTabs tabWalls = new CreativeTabs("Walls")
    
        {
            @SideOnly(Side.CLIENT)
            public Item getTabIconItem()
            {
                return Item.getItemFromBlock(BlockMod.block_faintlightgreystonewall);
            }
        };
        public static CreativeTabs tabStairs = new CreativeTabs("Stairs")
    
        {
            @SideOnly(Side.CLIENT)
            public Item getTabIconItem()
            {
                return Item.getItemFromBlock(BlockMod.block_smallstonebrickstairs);
            }
        };
    
        
        @EventHandler
        public void preInit(FMLPreInitializationEvent event)
        {
            BlockMod.init();
            BlockMod.register();
            RemoveMod.init();
        }
        
        @EventHandler
        public void init(FMLInitializationEvent event)
        {
            proxy.registerRenders();
            GameRegistry.registerFuelHandler(new FuelHndlerMod());
        }
        
        @EventHandler
        public void postInit(FMLPostInitializationEvent event)
        {
            
        }
    }
    

    Concrètement, avant la compilation tout fonctionne parfaitement

    WarningBuild.png

    Voilà voilà, merci à vous !


  • Administrateurs

    C'est .\gradlew build qu'il faut faire, pas .\gradlew jar.

    Là tu as généré un jar qui n'a pas été reobfusqué, ce n'est pour ça que cela ne fonctionne pas ...



  • @robin4002 Super, merci!


Log in to reply