• Récent
  • Mots-clés
  • Populaire
  • Utilisateurs
  • Groupes
  • S'inscrire
  • Se connecter
  • S'inscrire
  • Se connecter
  • Recherche
  • Récent
  • Mots-clés
  • Populaire
  • Utilisateurs
  • Groupes

Résolu Jouer un son en multijoueur

1.7.x
1.7.10
6
44
6.6k
Charger plus de messages
  • Du plus ancien au plus récent
  • Du plus récent au plus ancien
  • Les plus votés
Répondre
  • Répondre à l'aide d'un nouveau sujet
Se connecter pour répondre
Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
  • robin4002
    robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 21 juil. 2015, 12:27

    Oui, si le son est long il faut le signaler. Il me semble qu’il faut ajouter “stream”:“true” ou un truc comme ça : http://minecraft.gamepedia.com/Sounds.json

    1 réponse Dernière réponse Répondre Citer 0
    • Benjamin Loison
      Benjamin Loison dernière édition par 21 juil. 2015, 14:38

      J’ai remplacer par un son court et toujours le même problème…

      >! Développeur de Altis-Life (Arma III) sur Minecraft !
      >! Site web     : https://lemnoslife.com

      1 réponse Dernière réponse Répondre Citer 0
      • robin4002
        robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 21 juil. 2015, 15:13

        Est-ce qu’il y a une erreur dans les logs ?

        1 réponse Dernière réponse Répondre Citer 0
        • Benjamin Loison
          Benjamin Loison dernière édition par 21 juil. 2015, 15:46

          Toujours cette erreur : Unable to play unknown soundEvent: altiscraft:sounds/secrets.ogg

          >! Développeur de Altis-Life (Arma III) sur Minecraft !
          >! Site web     : https://lemnoslife.com

          1 réponse Dernière réponse Répondre Citer 0
          • robin4002
            robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 21 juil. 2015, 16:08

            Essayes avec :
            ​Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation(“altiscraft”, “secrets.ogg”), 1.0F));

            1 réponse Dernière réponse Répondre Citer 0
            • Benjamin Loison
              Benjamin Loison dernière édition par 21 juil. 2015, 17:15

              Toujours le même problème…

              >! Développeur de Altis-Life (Arma III) sur Minecraft !
              >! Site web     : https://lemnoslife.com

              1 réponse Dernière réponse Répondre Citer 0
              • robin4002
                robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 21 juil. 2015, 17:56

                Envoies un zip de tout ton dossier src dans ce cas, je vais regarder de mon côté.

                1 réponse Dernière réponse Répondre Citer 0
                • Benjamin Loison
                  Benjamin Loison dernière édition par 21 juil. 2015, 18:06

                  D’accord merci de ton aide !!!

                  >! Développeur de Altis-Life (Arma III) sur Minecraft !
                  >! Site web     : https://lemnoslife.com

                  1 réponse Dernière réponse Répondre Citer 0
                  • robin4002
                    robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 22 juil. 2015, 09:20

                    Le son test n’existe pas, du-coup ça fait des erreurs dans la console. Par contre le son secrets à l’aire ok. Je me demande juste s’il faut pas changer la catégorie (master au lieu de player)
                    Par contre je n’ai rien pu tester, je l’ai pas trouvé où tu joues le son, ça aurait été bien de le préciser …

                    1 réponse Dernière réponse Répondre Citer 0
                    • Benjamin Loison
                      Benjamin Loison dernière édition par 22 juil. 2015, 10:51

                      Voilà j’ai retiré le son test et sinon j’ai changé en master aucun changement et c’est lorsque je fais “M” que c’est censer jouer le son secrets…

                      >! Développeur de Altis-Life (Arma III) sur Minecraft !
                      >! Site web     : https://lemnoslife.com

                      1 réponse Dernière réponse Répondre Citer 0
                      • robin4002
                        robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 22 juil. 2015, 11:23

                        En fait pas besoin de changer la catégorie, la catégorie est utilisée pour les options de volume.
                        J’ai trouvé le problème, tu avais un .ogg en trop.
                        La bonne fonction est :
                        Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation(“altiscraft”, “secrets”), 1.0F));

                        1 réponse Dernière réponse Répondre Citer 0
                        • Benjamin Loison
                          Benjamin Loison dernière édition par 22 juil. 2015, 19:44

                          Perfect merci mais juste le son fait genre 3 minutes et ça lag un max quand je la met au départ comment faire comme les musiques de Minecraft enfin que ça ne lag pas quoi pas que ça se mette juste comme ça.

                          >! Développeur de Altis-Life (Arma III) sur Minecraft !
                          >! Site web     : https://lemnoslife.com

                          1 réponse Dernière réponse Répondre Citer 0
                          • robin4002
                            robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 22 juil. 2015, 20:28

                            Tu as ajoutés “steam”:“true”, ?

                            1 réponse Dernière réponse Répondre Citer 0
                            • Benjamin Loison
                              Benjamin Loison dernière édition par 22 juil. 2015, 21:44

                              Oui, et d’après ton site c’est bon :

                              {
                              “secrets”: {
                              “category”: “player”,
                              “stream”:“true”,
                              “sounds”: [
                              “secrets”
                              ]
                              }
                              }

                              >! Développeur de Altis-Life (Arma III) sur Minecraft !
                              >! Site web     : https://lemnoslife.com

                              1 réponse Dernière réponse Répondre Citer 0
                              • robin4002
                                robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 22 juil. 2015, 21:49

                                Tu l’as placé au mauvaise endroit :

                                {
                                "secrets": {
                                "category": "player",
                                "sounds": [
                                {
                                "name": "secrets",
                                "stream": true
                                }
                                ]
                                }
                                }
                                1 réponse Dernière réponse Répondre Citer 0
                                • Benjamin Loison
                                  Benjamin Loison dernière édition par 22 juil. 2015, 22:24

                                  Parfait !!! Merci plus qu’un max tu es super j’apprécie énormément ton travail c’est dingue de passer son temps consacrer ce temps précieux à des pures inconnues… Merci ! Du fond du coeur encore une fois 🙂

                                  Juste j’aimerais faire un bouton dans un gui pour jouer donc les musiques 😄 j’ai déjà gui, j’ai déjà essayé de reprendre code de Minecraft de base pour le menu principale etc mais rien à faire… :S

                                  Et juste j’ai un bug avec l’affichage des fps mon serveur ne veut pas se lancer :

                                  ​package fr.altiscraft.altiscraft.common;
                                  import cpw.mods.fml.client.FMLClientHandler;
                                  import cpw.mods.fml.common.eventhandler.SubscribeEvent;
                                  import cpw.mods.fml.relauncher.Side;
                                  import cpw.mods.fml.relauncher.SideOnly;
                                  import net.minecraft.client.Minecraft;
                                  import net.minecraftforge.client.event.RenderGameOverlayEvent;
                                  import net.minecraftforge.client.event.RenderGameOverlayEvent.ElementType;
                                  public class EventManager
                                  {
                                  private String fpsString;
                                  @SideOnly(Side.CLIENT)
                                  private Minecraft mc = Minecraft.getMinecraft();
                                  @SubscribeEvent
                                  public void renderGameOverlay(RenderGameOverlayEvent.Post event)
                                  {
                                  if(event.type != ElementType.EXPERIENCE)
                                  {
                                  return;
                                  }
                                  fpsString = mc.debug.split(",", 2)[0];
                                  FMLClientHandler.instance().getClient().fontRenderer.drawStringWithShadow("FPS : "+fpsString, 3, 3, 0xffffff);
                                  // public ItemStack Argent = Minecraft.getMinecraft().thePlayer.inventory.getStackInSlot(3);
                                  // public int size = 0;
                                  // InventoryPlayer inv = Minecraft.getMinecraft().thePlayer.inventory;
                                  // {
                                  // for (int i = 0; i < inv.getSizeInventory(); i++) {
                                  // if (inv.getStackInSlot(i) != null && inv.getStackInSlot(i).getItem() == Items.emerald) size += inv.getStackInSlot(i).stackSize;
                                  // }
                                  // @SubscribeEvent public void renderArgent(RenderGameOverlayEvent event){if(event.type == ElementType.JUMPBAR || event.type == ElementType.EXPERIENCE){Minecraft.getMinecraft().fontRenderer.drawString("Argent porté : " + Argent, 2, 2, 0xFFFFFF);}}
                                  //}
                                  }
                                  }

                                  Le crash :

                                  http://pastebin.com/Ek2YQfe7

                                  >! Développeur de Altis-Life (Arma III) sur Minecraft !
                                  >! Site web     : https://lemnoslife.com

                                  1 réponse Dernière réponse Répondre Citer 0
                                  • isador
                                    isador Moddeurs confirmés Modérateurs dernière édition par 22 juil. 2015, 22:30

                                    tu essaie de lancer un code client coté serveur normal que ca coince, met ton code du renderGameOverlay avec un world.isRemote()

                                    1 réponse Dernière réponse Répondre Citer 0
                                    • Benjamin Loison
                                      Benjamin Loison dernière édition par 22 juil. 2015, 22:39

                                      J’ai oublié comment on l’utilise tu peux le rappeller s’il te plaît ? 😕

                                      >! Développeur de Altis-Life (Arma III) sur Minecraft !
                                      >! Site web     : https://lemnoslife.com

                                      1 réponse Dernière réponse Répondre Citer 0
                                      • robin4002
                                        robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 22 juil. 2015, 22:39

                                        Non, il manque des @SideOnly(Side.CLIENT). En fait le mieux aurait été d’enregistrer la classe d’event uniquement côté client.

                                        1 réponse Dernière réponse Répondre Citer 0
                                        • Benjamin Loison
                                          Benjamin Loison dernière édition par 23 juil. 2015, 20:24

                                           package fr.altiscraft.altiscraft.common;
                                           import java.io.File;
                                          import com.google.common.base.Throwables;
                                          import cpw.mods.fml.common.FMLCommonHandler;
                                          import cpw.mods.fml.common.Mod;
                                          import cpw.mods.fml.common.SidedProxy;
                                          import cpw.mods.fml.common.event.FMLPostInitializationEvent;
                                          import cpw.mods.fml.common.event.FMLPreInitializationEvent;
                                          import cpw.mods.fml.common.registry.EntityRegistry;
                                          import cpw.mods.fml.common.registry.GameRegistry;
                                          import cpw.mods.fml.relauncher.Side;
                                          import cpw.mods.fml.relauncher.SideOnly;
                                          import fr.altiscraft.altiscraft.client.ModelBlockATM;
                                          import fr.altiscraft.altiscraft.client.ModelBlockBarriereFerme;
                                          import fr.altiscraft.altiscraft.client.ModelBlockBarriereOuverte;
                                          import fr.altiscraft.altiscraft.client.ModelBlockCoco;
                                          import fr.altiscraft.altiscraft.client.ModelBlockLampadaire;
                                          import fr.altiscraft.altiscraft.client.ModelBlockPanneauInterdit;
                                          import fr.altiscraft.altiscraft.client.ModelBlockPanneauSTOP;
                                          import fr.altiscraft.altiscraft.client.ModelBlockPoubelle;
                                          import fr.altiscraft.altiscraft.client.ModelBlockVATM;
                                          import fr.altiscraft.altiscraft.client.ModelBlockVLampadaire;
                                          import fr.altiscraft.altiscraft.proxy.CommonProxy;
                                          import net.minecraft.block.Block;
                                          import net.minecraft.block.material.Material;
                                          import net.minecraft.client.Minecraft;
                                          import net.minecraft.creativetab.CreativeTabs;
                                          import net.minecraft.entity.Entity;
                                          import net.minecraft.entity.player.EntityPlayer;
                                          import net.minecraft.init.Blocks;
                                          import net.minecraft.init.Items;
                                          import net.minecraft.item.Item;
                                          import net.minecraft.item.ItemArmor.ArmorMaterial;
                                          import net.minecraft.item.ItemStack;
                                          import net.minecraft.potion.Potion;
                                          import net.minecraft.potion.PotionEffect;
                                          import net.minecraft.util.ResourceLocation;
                                          import net.minecraftforge.client.event.RenderLivingEvent;
                                          import net.minecraftforge.common.MinecraftForge;
                                          import net.minecraftforge.common.util.EnumHelper;
                                           @Mod(modid="altiscraft.MODID", name="AltisCraft.fr", version="1.0.0")
                                           public class ModAltisCraft
                                           {
                                             public static final Block.SoundType soundTypeWood = new Block.SoundType("wood", 1.0F, 1.0F);
                                             public static final String MODID = "altiscraft";
                                             @Mod.Instance("altiscraft.MODID")
                                             public static ModAltisCraft instance;
                                             public static final int guiIDMenu = 0;
                                             @SidedProxy(clientSide="fr.altiscraft.altiscraft.proxy.ClientProxy", serverSide="fr.altiscraft.altiscraft.proxy.CommonProxy")
                                             public static CommonProxy proxy;
                                             public static Item itemBedo, Eau, Fermer, Retour, PorteHopital, itemDSable, Tortue, itemAltisCraft, itemAncienAltisCraft, itemRestaurant, secrets, Marteau, Coco, pioche, pelle, itemCuivre, itemCiseaux, itemFil, itemLSD, itemFLSD, itemLMeth, itemMeth, itemCannabis, itemCokaine0, itemCokaine1, itemCokaine2, itemMcDoR, itemMcDoV, Icentime, IIcentimes, Vcentimes, Xcentimes, XXcentimes, Lcentimes, Ieuro, IIeuros, Veuros, Xeuros, XXeuros, Leuros, Ceuros, Meuros, XMeuros, itemPeche, itemFCocaine, itemFCannabis, lunettesCivil, lunettesSoleilCivil, helmetRebelle, chestPlateRebelle, leggingsRebelle, bootsRebelle, helmetAdjoint, helmetBrigadier, chestPlateBrigadier, leggingsBrigadier, bootsBrigadier, helmetSergent, chestPlateSergent, leggingsSergent, bootsSergent, helmetMajor, chestPlateMajor, leggingsMajor, bootsMajor, helmetAspirant, chestPlateAspirant, leggingsAspirant, bootsAspirant, helmetAdjudant, chestPlateAdjudant, leggingsAdjudant, bootsAdjudant, helmetLieutenant, chestPlateLieutenant, leggingsLieutenant, bootsLieutenant, helmetCapitaine, chestPlateCapitaine, leggingsCapitaine, bootsCapitaine, helmetCommandant, chestPlateCommandant, leggingsCommandant, bootsCommandant, helmetColonel, chestPlateColonel, leggingsColonel, bootsColonel, helmetGeneral, chestPlateGeneral, leggingsGeneral, bootsGeneral, helmetCivil, chestPlateCivil, leggingsCivil, bootsCivil, CocaCola, CocaColaLight, CocaColaZero, CocaColaLife;
                                             public static Block BlocVATM, BlocPanneauSTOP, BlocPanneauInterdit, BlocBarriereFerme, BlocBarriereOuverte, MineraisCuivre, BlocPoubelle, BlocVLampadaire, SemiBrique, BlocLampadaire, PlastiqueRouge, PlastiqueBlanc, PlastiqueBleu, Cyan, Aluminium, PierreBlanche, BlanchePierre, PierreBlanc, PlancheMarron, Flesh, PlastiqueVert, PlastiqueFlashVert, FerGris, FerPeuGris, Rouge, Blanc, BlocCoco, BlocMetaData, Barriere, blockPeche, blockPomme, blockBrique, blocSemiBrique, blocGrisBrique, blockMcDoR, blockMcDoV, MineraisMeth, CannabisPlante, CocainePlante, BlocATM, BlocRoute1, BlocRoute2, BlocATMTexture, BlocFerMarron, BlocPierreVert;
                                             public static Item.ToolMaterial outils = EnumHelper.addToolMaterial("outils", 3, 1000, 1.0F, 1.0F, 30);
                                             public static CreativeTabs AltisCraft = new CreativeTabs("AltisCraft")
                                             {
                                               public Item getTabIconItem()
                                               {
                                                 return ModAltisCraft.itemAltisCraft;
                                               }
                                             };
                                             public static ArmorMaterial lunettesSoleil = EnumHelper.addArmorMaterial("lunettesSoleilCivil", 1, new int[] { 3 }, 1);
                                             public static ArmorMaterial lunettes = EnumHelper.addArmorMaterial("lunettesCivil", 1, new int[] { 2 }, 1);
                                             public static ArmorMaterial armorAdjoint = EnumHelper.addArmorMaterial("armorAdjoint", 1, new int[] { 1 }, 1);
                                             public static ArmorMaterial armorBrigadier = EnumHelper.addArmorMaterial("armorBrigadier", 1, new int[] { 1, 1, 1, 1 }, 1);
                                             public static ArmorMaterial armorSergent = EnumHelper.addArmorMaterial("armorSergent", 1, new int[] { 1, 2, 2, 1 }, 1);
                                             public static ArmorMaterial armorAdjudant = EnumHelper.addArmorMaterial("armorAdjudant", 1, new int[] { 2, 2, 2, 2 }, 1);
                                             public static ArmorMaterial armorMajor = EnumHelper.addArmorMaterial("armorMajor", 1, new int[] { 2, 3, 3, 2 }, 1);
                                             public static ArmorMaterial armorAspirant = EnumHelper.addArmorMaterial("armorAspirant", 1, new int[] { 3, 3, 3, 3 }, 1);
                                             public static ArmorMaterial armorLieutenant = EnumHelper.addArmorMaterial("armorLieutenant", 1, new int[] { 3, 4, 4, 3 }, 1);
                                             public static ArmorMaterial armorCapitaine = EnumHelper.addArmorMaterial("armorCapitaine", 1, new int[] { 4, 4, 4, 4 }, 1);
                                             public static ArmorMaterial armorCommandant = EnumHelper.addArmorMaterial("armorCommandant", 1, new int[] { 4, 5, 5, 4 }, 1);
                                             public static ArmorMaterial armorColonel = EnumHelper.addArmorMaterial("armorColonel", 1, new int[] { 5, 5, 5, 5 }, 1);
                                             public static ArmorMaterial armorGeneral = EnumHelper.addArmorMaterial("armorGeneral", 1, new int[] { 5, 5, 5, 5 }, 1);
                                             public static ArmorMaterial armorCivil = EnumHelper.addArmorMaterial("armorCivil", 1, new int[] { 1, 2, 2, 1 }, 1);
                                             public static ArmorMaterial armorRebelle = EnumHelper.addArmorMaterial("armorRebelle", 1, new int[] { 2, 3, 3, 2 }, 1);
                                             @Mod.EventHandler
                                             public void preInit(FMLPreInitializationEvent event)
                                             {
                                            if ((event.getSide().isClient()) && (!Minecraft.getMinecraft().mcDataDir.getAbsolutePath().contains("AltisCraft")) && (!Minecraft.getMinecraft().mcDataDir.equals(new File(".")))) { Throwables.propagate(new Exception("Launcher non autorisé"));}
                                               System.out.println("Pré-initialisation !");
                                               ModelBlockBarriereFerme modelsbf = new ModelBlockBarriereFerme();
                                               ResourceLocation texturesbf = new ResourceLocation("altiscraft", "textures/models/blocks/ModelBlockBarriereFerme.png");
                                               ModelBlockBarriereOuverte modelsbo = new ModelBlockBarriereOuverte();
                                               ResourceLocation texturesbo = new ResourceLocation("altiscraft", "textures/models/blocks/ModelBlockBarriereOuverte.png");
                                               ModelBlockPoubelle modelp = new ModelBlockPoubelle();
                                               ResourceLocation texturep = new ResourceLocation("altiscraft", "textures/models/blocks/ModelBlockPoubelle.png");
                                               ModelBlockATM model = new ModelBlockATM();
                                               ResourceLocation texture = new ResourceLocation("altiscraft", "textures/models/blocks/ModelBlockATM.png");
                                               ModelBlockVATM modelva = new ModelBlockVATM();
                                               ResourceLocation textureva = new ResourceLocation("altiscraft", "textures/models/blocks/ModelBlockVATM.png");
                                               ModelBlockCoco models = new ModelBlockCoco();
                                               ResourceLocation textures = new ResourceLocation("altiscraft", "textures/models/blocks/ModelBlockCoco.png");
                                               ModelBlockLampadaire modelsb = new ModelBlockLampadaire();
                                               ResourceLocation texturesb = new ResourceLocation("altiscraft", "textures/models/blocks/ModelBlockLampadaire.png");
                                               ModelBlockVLampadaire modelv = new ModelBlockVLampadaire();
                                               ResourceLocation texturev = new ResourceLocation("altiscraft", "textures/models/blocks/ModelBlockVLampadaire.png");
                                               ModelBlockPanneauSTOP modelps = new ModelBlockPanneauSTOP();
                                               ResourceLocation textureps = new ResourceLocation("altiscraft", "textures/models/blocks/ModelBlockPanneauSTOP.png");
                                               ModelBlockPanneauInterdit modelpi = new ModelBlockPanneauInterdit();
                                               ResourceLocation texturepi = new ResourceLocation("altiscraft", "textures/models/blocks/ModelBlockPanneauInterdit.png");
                                               itemDSable = new ItemDSable().setUnlocalizedName("itemDSable").setTextureName("altiscraft:itemDSable").setCreativeTab(AltisCraft).setMaxStackSize(1);
                                               Fermer = new item().setUnlocalizedName("fermer").setTextureName("altiscraft:fermer").setCreativeTab(AltisCraft).setMaxStackSize(1);
                                               Retour = new item().setUnlocalizedName("retour").setTextureName("altiscraft:retour").setCreativeTab(AltisCraft).setMaxStackSize(1);
                                               itemAltisCraft = new Logo().setUnlocalizedName("AltisCraft").setTextureName("altiscraft:Logo").setCreativeTab(AltisCraft).setMaxStackSize(4);
                                               itemAncienAltisCraft = new Logo().setUnlocalizedName("AncienAltisCraft").setTextureName("altiscraft:AncienLogo").setCreativeTab(AltisCraft).setMaxStackSize(8);
                                               itemRestaurant = new Logo().setUnlocalizedName("Restaurant").setTextureName("altiscraft:Restaurant").setCreativeTab(AltisCraft).setMaxStackSize(4);
                                               Marteau = new Marteau().setUnlocalizedName("Marteau").setTextureName("altiscraft:Marteau").setCreativeTab(AltisCraft).setMaxStackSize(1);
                                               secrets = new secrets().setUnlocalizedName("secrets").setTextureName("altiscraft:secrets").setCreativeTab(AltisCraft).setMaxStackSize(1);
                                               itemCuivre = new item().setUnlocalizedName("Cuivre").setTextureName("altiscraft:Cuivre").setCreativeTab(AltisCraft).setMaxStackSize(4);
                                               itemMcDoV = new Logo().setUnlocalizedName("McDoV").setTextureName("altiscraft:McDoV").setCreativeTab(AltisCraft).setMaxStackSize(4);
                                               itemMcDoR = new Logo().setUnlocalizedName("McDoR").setTextureName("altiscraft:McDoR").setCreativeTab(AltisCraft).setMaxStackSize(4);
                                               itemCiseaux = new item().setUnlocalizedName("Ciseaux").setTextureName("altiscraft:Ciseaux").setCreativeTab(AltisCraft).setMaxStackSize(1);
                                               itemFil = new item().setUnlocalizedName("Fil").setTextureName("altiscraft:Fil").setCreativeTab(AltisCraft).setMaxStackSize(1);
                                               Icentime = new Icent().setUnlocalizedName("1cent").setTextureName("altiscraft:1centime").setCreativeTab(AltisCraft).setMaxStackSize(50);
                                               IIcentimes = new IIcents().setUnlocalizedName("2cents").setTextureName("altiscraft:2centimes").setCreativeTab(AltisCraft).setMaxStackSize(50);
                                               Vcentimes = new Vcents().setUnlocalizedName("5cents").setTextureName("altiscraft:5centimes").setCreativeTab(AltisCraft).setMaxStackSize(50);
                                               Xcentimes = new Xcents().setUnlocalizedName("10cents").setTextureName("altiscraft:10centimes").setCreativeTab(AltisCraft).setMaxStackSize(50);
                                               XXcentimes = new XXcents().setUnlocalizedName("20cents").setTextureName("altiscraft:20centimes").setCreativeTab(AltisCraft).setMaxStackSize(50);
                                               Lcentimes = new Lcents().setUnlocalizedName("50cents").setTextureName("altiscraft:50centimes").setCreativeTab(AltisCraft).setMaxStackSize(50);
                                               Ieuro = new Ieuro().setUnlocalizedName("1euro").setTextureName("altiscraft:1euro").setCreativeTab(AltisCraft).setMaxStackSize(50);
                                               IIeuros = new IIeuros().setUnlocalizedName("2euros").setTextureName("altiscraft:2euros").setCreativeTab(AltisCraft).setMaxStackSize(50);
                                               Veuros = new Veuros().setUnlocalizedName("5euros").setTextureName("altiscraft:5euros").setCreativeTab(AltisCraft).setMaxStackSize(50);
                                               Xeuros = new Xeuros().setUnlocalizedName("10euros").setTextureName("altiscraft:10euros").setCreativeTab(AltisCraft).setMaxStackSize(50);
                                               XXeuros = new XXeuros().setUnlocalizedName("20euros").setTextureName("altiscraft:20euros").setCreativeTab(AltisCraft).setMaxStackSize(50);
                                               Leuros = new Leuros().setUnlocalizedName("50euros").setTextureName("altiscraft:50euros").setCreativeTab(AltisCraft).setMaxStackSize(50);
                                               Ceuros = new Ceuros().setUnlocalizedName("100euros").setTextureName("altiscraft:100euros").setCreativeTab(AltisCraft).setMaxStackSize(50);
                                               Meuros = new Meuros().setUnlocalizedName("1000euros").setTextureName("altiscraft:1000euros").setCreativeTab(AltisCraft).setMaxStackSize(50);
                                               XMeuros = new XMeuros().setUnlocalizedName("10000euros").setTextureName("altiscraft:10000euros").setCreativeTab(AltisCraft).setMaxStackSize(50);
                                               itemCannabis = new Drogue().setUnlocalizedName("Cannabis").setTextureName("altiscraft:Cannabis").setCreativeTab(AltisCraft).setMaxStackSize(16);
                                               itemLMeth = new Drogue().setUnlocalizedName("LMeth").setTextureName("altiscraft:LingotMeth").setCreativeTab(AltisCraft).setMaxStackSize(1);
                                               itemCokaine0 = new Drogue().setUnlocalizedName("Cokaine0").setTextureName("altiscraft:Cokaine0").setCreativeTab(AltisCraft).setMaxStackSize(64);
                                               itemLSD = new Drogue().setUnlocalizedName("LSD").setTextureName("altiscraft:LSD").setCreativeTab(AltisCraft).setMaxStackSize(32);
                                               itemCokaine1 = new Drogue().setUnlocalizedName("Cokaine1").setTextureName("altiscraft:Cokaine1").setCreativeTab(AltisCraft).setMaxStackSize(32);
                                               itemCokaine2 = new Drogue().setUnlocalizedName("Cokaine2").setTextureName("altiscraft:Cokaine2").setCreativeTab(AltisCraft).setMaxStackSize(16);
                                               lunettesSoleilCivil = new lunettesSoleilCivil(lunettesSoleil, 0).setUnlocalizedName("lunettesSoleilCivil").setTextureName("altiscraft:lunettesSoleilCivil").setCreativeTab(AltisCraft);
                                               lunettesCivil = new lunettesCivil(lunettes, 0).setUnlocalizedName("lunettesCivil").setTextureName("altiscraft:lunettesCivil").setCreativeTab(AltisCraft);
                                               helmetAdjoint = new ItemAdjointArmor(armorAdjoint, 0).setUnlocalizedName("helmetAdjoint").setTextureName("altiscraft:Adjoint_Chapeau").setCreativeTab(AltisCraft);
                                               helmetRebelle = new ItemRebelleArmor(armorRebelle, 0).setUnlocalizedName("helmetRebelle").setTextureName("altiscraft:Rebelle_Chapeau").setCreativeTab(AltisCraft);
                                               chestPlateRebelle = new ItemRebelleArmor(armorRebelle, 1).setUnlocalizedName("chestPlateRebelle").setTextureName("altiscraft:Rebelle_Plastron").setCreativeTab(AltisCraft);
                                               leggingsRebelle = new ItemRebelleArmor(armorRebelle, 2).setUnlocalizedName("leggingsRebelle").setTextureName("altiscraft:Rebelle_Pantalon").setCreativeTab(AltisCraft);
                                               bootsRebelle = new ItemRebelleArmor(armorRebelle, 3).setUnlocalizedName("bootsRebelle").setTextureName("altiscraft:Rebelle_Chaussures").setCreativeTab(AltisCraft);
                                               helmetBrigadier = new ItemBrigadierArmor(armorBrigadier, 0).setUnlocalizedName("helmetBrigadier").setTextureName("altiscraft:Brigadier_Chapeau").setCreativeTab(AltisCraft);
                                               chestPlateBrigadier = new ItemBrigadierArmor(armorBrigadier, 1).setUnlocalizedName("chestPlateBrigadier").setTextureName("altiscraft:Brigadier_Plastron").setCreativeTab(AltisCraft);
                                               leggingsBrigadier = new ItemBrigadierArmor(armorBrigadier, 2).setUnlocalizedName("leggingsBrigadier").setTextureName("altiscraft:Brigadier_Pantalon").setCreativeTab(AltisCraft);
                                               bootsBrigadier = new ItemBrigadierArmor(armorBrigadier, 3).setUnlocalizedName("bootsBrigadier").setTextureName("altiscraft:Brigadier_Chaussures").setCreativeTab(AltisCraft);
                                               helmetSergent = new ItemSergentArmor(armorSergent, 0).setUnlocalizedName("helmetSergent").setTextureName("altiscraft:Sergent_Chapeau").setCreativeTab(AltisCraft);
                                               chestPlateSergent = new ItemSergentArmor(armorSergent, 1).setUnlocalizedName("chestPlateSergent").setTextureName("altiscraft:Sergent_Plastron").setCreativeTab(AltisCraft);
                                               leggingsSergent = new ItemSergentArmor(armorSergent, 2).setUnlocalizedName("leggingsSergent").setTextureName("altiscraft:Sergent_Pantalon").setCreativeTab(AltisCraft);
                                               bootsSergent = new ItemSergentArmor(armorSergent, 3).setUnlocalizedName("bootsSergent").setTextureName("altiscraft:Sergent_Chaussures").setCreativeTab(AltisCraft);
                                               helmetAdjudant = new ItemAdjudantArmor(armorAdjudant, 0).setUnlocalizedName("helmetAdjudant").setTextureName("altiscraft:Adjudant_Chapeau").setCreativeTab(AltisCraft);
                                               chestPlateAdjudant = new ItemAdjudantArmor(armorAdjudant, 1).setUnlocalizedName("chestPlateAdjudant").setTextureName("altiscraft:Adjudant_Plastron").setCreativeTab(AltisCraft);
                                               leggingsAdjudant = new ItemAdjudantArmor(armorAdjudant, 2).setUnlocalizedName("leggingsAdjudant").setTextureName("altiscraft:Adjudant_Pantalon").setCreativeTab(AltisCraft);
                                               bootsAdjudant = new ItemAdjudantArmor(armorAdjudant, 3).setUnlocalizedName("bootsAdjudant").setTextureName("altiscraft:Adjudant_Chaussures").setCreativeTab(AltisCraft);
                                               helmetMajor = new ItemMajorArmor(armorMajor, 0).setUnlocalizedName("helmetMajor").setTextureName("altiscraft:Major_Chapeau").setCreativeTab(AltisCraft);
                                               chestPlateMajor = new ItemMajorArmor(armorMajor, 1).setUnlocalizedName("chestPlateMajor").setTextureName("altiscraft:Major_Plastron").setCreativeTab(AltisCraft);
                                               leggingsMajor = new ItemMajorArmor(armorMajor, 2).setUnlocalizedName("leggingsMajor").setTextureName("altiscraft:Major_Pantalon").setCreativeTab(AltisCraft);
                                               bootsMajor = new ItemMajorArmor(armorMajor, 3).setUnlocalizedName("bootsMajor").setTextureName("altiscraft:Major_Chaussures").setCreativeTab(AltisCraft);
                                               helmetAspirant = new ItemAspirantArmor(armorAspirant, 0).setUnlocalizedName("helmetAspirant").setTextureName("altiscraft:Aspirant_Chapeau").setCreativeTab(AltisCraft);
                                               chestPlateAspirant = new ItemAspirantArmor(armorAspirant, 1).setUnlocalizedName("chestPlateAspirant").setTextureName("altiscraft:Aspirant_Plastron").setCreativeTab(AltisCraft);
                                               leggingsAspirant = new ItemAspirantArmor(armorAspirant, 2).setUnlocalizedName("leggingsAspirant").setTextureName("altiscraft:Aspirant_Pantalon").setCreativeTab(AltisCraft);
                                               bootsAspirant = new ItemAspirantArmor(armorAspirant, 3).setUnlocalizedName("bootsAspirant").setTextureName("altiscraft:Aspirant_Chaussures").setCreativeTab(AltisCraft);
                                               helmetLieutenant = new ItemLieutenantArmor(armorLieutenant, 0).setUnlocalizedName("helmetLieutenant").setTextureName("altiscraft:Lieutenant_Chapeau").setCreativeTab(AltisCraft);
                                               chestPlateLieutenant = new ItemLieutenantArmor(armorLieutenant, 1).setUnlocalizedName("chestPlateLieutenant").setTextureName("altiscraft:Lieutenant_Plastron").setCreativeTab(AltisCraft);
                                               leggingsLieutenant = new ItemLieutenantArmor(armorLieutenant, 2).setUnlocalizedName("leggingsLieutenant").setTextureName("altiscraft:Lieutenant_Pantalon").setCreativeTab(AltisCraft);
                                               bootsLieutenant = new ItemLieutenantArmor(armorLieutenant, 3).setUnlocalizedName("bootsLieutenant").setTextureName("altiscraft:Lieutenant_Chaussures").setCreativeTab(AltisCraft);
                                               helmetCapitaine = new ItemCapitaineArmor(armorCapitaine, 0).setUnlocalizedName("helmetCapitaine").setTextureName("altiscraft:Capitaine_Chapeau").setCreativeTab(AltisCraft);
                                               chestPlateCapitaine = new ItemCapitaineArmor(armorCapitaine, 1).setUnlocalizedName("chestPlateCapitaine").setTextureName("altiscraft:Capitaine_Plastron").setCreativeTab(AltisCraft);
                                               leggingsCapitaine = new ItemCapitaineArmor(armorCapitaine, 2).setUnlocalizedName("leggingsCapitaine").setTextureName("altiscraft:Capitaine_Pantalon").setCreativeTab(AltisCraft);
                                               bootsCapitaine = new ItemCapitaineArmor(armorCapitaine, 3).setUnlocalizedName("bootsCapitaine").setTextureName("altiscraft:Capitaine_Chaussures").setCreativeTab(AltisCraft);
                                               helmetCommandant = new ItemCommandantArmor(armorCommandant, 0).setUnlocalizedName("helmetCommandant").setTextureName("altiscraft:Commandant_Chapeau").setCreativeTab(AltisCraft);
                                               chestPlateCommandant = new ItemCommandantArmor(armorCommandant, 1).setUnlocalizedName("chestPlateCommandant").setTextureName("altiscraft:Commandant_Plastron").setCreativeTab(AltisCraft);
                                               leggingsCommandant = new ItemCommandantArmor(armorCommandant, 2).setUnlocalizedName("leggingsCommandant").setTextureName("altiscraft:Commandant_Pantalon").setCreativeTab(AltisCraft);
                                               bootsCommandant = new ItemCommandantArmor(armorCommandant, 3).setUnlocalizedName("bootsCommandant").setTextureName("altiscraft:Commandant_Chaussures").setCreativeTab(AltisCraft);
                                               helmetColonel = new ItemColonelArmor(armorColonel, 0).setUnlocalizedName("helmetColonel").setTextureName("altiscraft:Colonel_Chapeau").setCreativeTab(AltisCraft);
                                               chestPlateColonel = new ItemColonelArmor(armorColonel, 1).setUnlocalizedName("chestPlateColonel").setTextureName("altiscraft:Colonel_Plastron").setCreativeTab(AltisCraft);
                                               leggingsColonel = new ItemColonelArmor(armorColonel, 2).setUnlocalizedName("leggingsColonel").setTextureName("altiscraft:Colonel_Pantalon").setCreativeTab(AltisCraft);
                                               bootsColonel = new ItemColonelArmor(armorColonel, 3).setUnlocalizedName("bootsColonel").setTextureName("altiscraft:Colonel_Chaussures").setCreativeTab(AltisCraft);
                                               helmetGeneral = new ItemGeneralArmor(armorGeneral, 0).setUnlocalizedName("helmetGeneral").setTextureName("altiscraft:General_Chapeau").setCreativeTab(AltisCraft);
                                               chestPlateGeneral = new ItemGeneralArmor(armorGeneral, 1).setUnlocalizedName("chestPlateGeneral").setTextureName("altiscraft:General_Plastron").setCreativeTab(AltisCraft);
                                               leggingsGeneral = new ItemGeneralArmor(armorGeneral, 2).setUnlocalizedName("leggingsGeneral").setTextureName("altiscraft:General_Pantalon").setCreativeTab(AltisCraft);
                                               bootsGeneral = new ItemGeneralArmor(armorGeneral, 3).setUnlocalizedName("bootsGeneral").setTextureName("altiscraft:General_Chaussures").setCreativeTab(AltisCraft);
                                               helmetCivil = new ItemCivilArmor(armorCivil, 0).setUnlocalizedName("helmetCivil").setTextureName("altiscraft:Civil_Chapeau").setCreativeTab(AltisCraft);
                                               chestPlateCivil = new ItemCivilArmor(armorCivil, 1).setUnlocalizedName("chestPlateCivil").setTextureName("altiscraft:Civil_Plastron").setCreativeTab(AltisCraft);
                                               leggingsCivil = new ItemCivilArmor(armorCivil, 2).setUnlocalizedName("leggingsCivil").setTextureName("altiscraft:Civil_Pantalon").setCreativeTab(AltisCraft);
                                               bootsCivil = new ItemCivilArmor(armorCivil, 3).setUnlocalizedName("bootsCivil").setTextureName("altiscraft:Civil_Chaussures").setCreativeTab(AltisCraft);
                                               GameRegistry.registerItem(pioche = new ItemPioche("pioche", outils).setCreativeTab(AltisCraft), "pioche");
                                               GameRegistry.registerItem(pelle = new ItemPelle("pelle", outils).setCreativeTab(AltisCraft), "pelle");
                                               GameRegistry.registerItem(Tortue = new NourritureDrogue("Tortue", 5, 1.0F, false).setAlwaysEdible().setCreativeTab(AltisCraft).setMaxStackSize(12), "Tortue");
                                               GameRegistry.registerItem(Retour, "retour");
                                               GameRegistry.registerItem(Fermer, "fermer");
                                               GameRegistry.registerItem(itemAltisCraft, "item_altiscraft");
                                               GameRegistry.registerItem(itemAncienAltisCraft, "item_ancienaltiscraft");
                                               GameRegistry.registerItem(itemRestaurant, "item_restaurant");
                                               GameRegistry.registerItem(Marteau, "marteau");
                                               GameRegistry.registerItem(itemDSable, "itemdsable");
                                               GameRegistry.registerItem(secrets, "secrets");
                                               GameRegistry.registerItem(itemCuivre, "item_cuivre");
                                               GameRegistry.registerItem(itemMcDoV, "item_mcdov");
                                               GameRegistry.registerItem(itemMcDoR, "item_mcdor");
                                               GameRegistry.registerItem(itemFil, "item_fil");
                                               GameRegistry.registerItem(itemCiseaux, "item_ciseaux");
                                               GameRegistry.registerItem(itemLMeth, "item_lmeth");
                                               GameRegistry.registerItem(itemLSD, "item_lsd");
                                               GameRegistry.registerItem(itemFLSD = new BoissonDrogue("itemFLSD", 12, 0.5F, false).addPotionEffect(new PotionEffect(Potion.confusion.id, 200, 1), 0.5D).addPotionEffect(new PotionEffect(Potion.jump.id, 100, 1), 0.5D).addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 250, 1), 0.5D).setAlwaysEdible().setCreativeTab(AltisCraft).setMaxStackSize(16), "itemFLSD");
                                               GameRegistry.registerItem(itemMeth = new NourritureDrogue("itemMeth", 8, 0.5F, false).addPotionEffect(new PotionEffect(Potion.jump.id, 400, 3), 0.5D).addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 450, 2), 0.5D).addPotionEffect(new PotionEffect(Potion.regeneration.id, 150, 3), 0.5D).setAlwaysEdible().setCreativeTab(AltisCraft).setMaxStackSize(2), "itemMeth");
                                               GameRegistry.registerItem(itemFCannabis = new NourritureDrogue("itemFCannabis", 12, 0.5F, false).addPotionEffect(new PotionEffect(Potion.confusion.id, 600, 3), 0.5D).addPotionEffect(new PotionEffect(Potion.jump.id, 200, 1), 0.5D).addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 450, 1), 0.5D).setAlwaysEdible().setCreativeTab(AltisCraft).setMaxStackSize(8), "itemFCannabis");
                                               GameRegistry.registerItem(itemBedo = new NourritureDrogue("itemBedo", 10, 0.5F, false).addPotionEffect(new PotionEffect(Potion.confusion.id, 500, 3), 0.5D).addPotionEffect(new PotionEffect(Potion.jump.id, 400, 1), 0.5D).addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 550, 1), 0.5D).setAlwaysEdible().setCreativeTab(AltisCraft).setMaxStackSize(4), "itemBedo");
                                               GameRegistry.registerItem(itemFCocaine = new NourritureDrogue("itemFCocaine", 18, 1.0F, false).addPotionEffect(new PotionEffect(Potion.confusion.id, 1200, 3), 0.5D).addPotionEffect(new PotionEffect(Potion.jump.id, 600, 3), 0.5D).addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 1800, 2), 0.5D).setAlwaysEdible().setCreativeTab(AltisCraft).setMaxStackSize(8), "itemFCocaine");
                                               GameRegistry.registerItem(itemPeche = new Nourriture("peche", 1, 0.2F, false).setAlwaysEdible().setCreativeTab(AltisCraft).setMaxStackSize(16), "peche");
                                               GameRegistry.registerItem(Coco = new Nourriture("Coco", 3, 0.2F, false).setAlwaysEdible().setCreativeTab(AltisCraft).setMaxStackSize(8), "Coco");
                                               GameRegistry.registerItem(Eau = new Boisson("eau", 0, 0.2F, false, new PotionEffect[0]).setAlwaysEdible().setCreativeTab(AltisCraft).setMaxStackSize(8), "eau");
                                               GameRegistry.registerItem(CocaCola = new Boisson("coca_cola", 0, 0.2F, false, new PotionEffect[0]).setAlwaysEdible().setCreativeTab(AltisCraft).setMaxStackSize(4), "coca_cola");
                                               GameRegistry.registerItem(CocaColaLife = new Boisson("coca_cola_life", 0, 0.2F, false, new PotionEffect[0]).setAlwaysEdible().setCreativeTab(AltisCraft).setMaxStackSize(4), "coca_cola_life");
                                               GameRegistry.registerItem(CocaColaZero = new Boisson("coca_cola_zero", 0, 0.2F, false, new PotionEffect[0]).setAlwaysEdible().setCreativeTab(AltisCraft).setMaxStackSize(4), "coca_cola_zero");
                                               GameRegistry.registerItem(CocaColaLight = new Boisson("coca_cola_light", 0, 0.2F, false, new PotionEffect[0]).setAlwaysEdible().setCreativeTab(AltisCraft).setMaxStackSize(4), "coca_cola_light");
                                               GameRegistry.registerItem(Icentime, "item_1centime");
                                               GameRegistry.registerItem(IIcentimes, "item_2centimes");
                                               GameRegistry.registerItem(Vcentimes, "item_5centimes");
                                               GameRegistry.registerItem(Xcentimes, "item_10centimes");
                                               GameRegistry.registerItem(XXcentimes, "item_20centimes");
                                               GameRegistry.registerItem(Lcentimes, "item_50centimes");
                                               GameRegistry.registerItem(Ieuro, "item_1euro");
                                               GameRegistry.registerItem(IIeuros, "item_2euros");
                                               GameRegistry.registerItem(Veuros, "item_5euros");
                                               GameRegistry.registerItem(Xeuros, "item_10euros");
                                               GameRegistry.registerItem(XXeuros, "item_20euros");
                                               GameRegistry.registerItem(Leuros, "item_50euros");
                                               GameRegistry.registerItem(Ceuros, "item_100euros");
                                               GameRegistry.registerItem(Meuros, "item_1000euros");
                                               GameRegistry.registerItem(XMeuros, "item_10000euros");
                                               GameRegistry.registerItem(itemCannabis, "item_cannabis");
                                               GameRegistry.registerItem(itemCokaine0, "item_cokaine0");
                                               GameRegistry.registerItem(itemCokaine1, "item_cokaine1");
                                               GameRegistry.registerItem(itemCokaine2, "item_cokaine2");
                                               GameRegistry.registerItem(lunettesSoleilCivil, "lunettessoleilcivil");
                                               GameRegistry.registerItem(lunettesCivil, "lunettescivil");
                                               GameRegistry.registerItem(helmetAdjoint, "item_adjoint_helmet");
                                               GameRegistry.registerItem(helmetRebelle, "item_rebelle_helmet");
                                               GameRegistry.registerItem(chestPlateRebelle, "item_rebelle_chestplate");
                                               GameRegistry.registerItem(leggingsRebelle, "item_rebelle_leggings");
                                               GameRegistry.registerItem(bootsRebelle, "item_rebelle_boots");
                                               GameRegistry.registerItem(helmetBrigadier, "item_brigadier_helmet");
                                               GameRegistry.registerItem(chestPlateBrigadier, "item_brigadier_chestplate");
                                               GameRegistry.registerItem(leggingsBrigadier, "item_brigadier_leggings");
                                               GameRegistry.registerItem(bootsBrigadier, "item_brigadier_boots");
                                               GameRegistry.registerItem(helmetSergent, "item_sergent_helmet");
                                               GameRegistry.registerItem(chestPlateSergent, "item_sergent_chestplate");
                                               GameRegistry.registerItem(leggingsSergent, "item_sergent_leggings");
                                               GameRegistry.registerItem(bootsSergent, "item_sergent_boots");
                                               GameRegistry.registerItem(helmetAdjudant, "item_adjudant_helmet");
                                               GameRegistry.registerItem(chestPlateAdjudant, "item_adjudant_chestplate");
                                               GameRegistry.registerItem(leggingsAdjudant, "item_adjudant_leggings");
                                               GameRegistry.registerItem(bootsAdjudant, "item_adjudant_boots");
                                               GameRegistry.registerItem(helmetMajor, "item_major_helmet");
                                               GameRegistry.registerItem(chestPlateMajor, "item_major_chestplate");
                                               GameRegistry.registerItem(leggingsMajor, "item_major_leggings");
                                               GameRegistry.registerItem(bootsMajor, "item_major_boots");
                                               GameRegistry.registerItem(helmetAspirant, "item_aspirant_helmet");
                                               GameRegistry.registerItem(chestPlateAspirant, "item_aspirant_chestplate");
                                               GameRegistry.registerItem(leggingsAspirant, "item_aspirant_leggings");
                                               GameRegistry.registerItem(bootsAspirant, "item_aspirant_boots");
                                               GameRegistry.registerItem(helmetLieutenant, "item_lieutenant_helmet");
                                               GameRegistry.registerItem(chestPlateLieutenant, "item_lieutenant_chestplate");
                                               GameRegistry.registerItem(leggingsLieutenant, "item_lieutenant_leggings");
                                               GameRegistry.registerItem(bootsLieutenant, "item_lieutenant_boots");
                                               GameRegistry.registerItem(helmetCapitaine, "item_capitaine_helmet");
                                               GameRegistry.registerItem(chestPlateCapitaine, "item_capitaine_chestplate");
                                               GameRegistry.registerItem(leggingsCapitaine, "item_capitaine_leggings");
                                               GameRegistry.registerItem(bootsCapitaine, "item_capitaine_boots");
                                               GameRegistry.registerItem(helmetCommandant, "item_commandant_helmet");
                                               GameRegistry.registerItem(chestPlateCommandant, "item_commandant_chestplate");
                                               GameRegistry.registerItem(leggingsCommandant, "item_commandant_leggings");
                                               GameRegistry.registerItem(bootsCommandant, "item_commandant_boots");
                                               GameRegistry.registerItem(helmetColonel, "item_colonel_helmet");
                                               GameRegistry.registerItem(chestPlateColonel, "item_colonel_chestplate");
                                               GameRegistry.registerItem(leggingsColonel, "item_colonel_leggings");
                                               GameRegistry.registerItem(bootsColonel, "item_colonel_boots");
                                               GameRegistry.registerItem(helmetGeneral, "item_general_helmet");
                                               GameRegistry.registerItem(chestPlateGeneral, "item_general_chestplate");
                                               GameRegistry.registerItem(leggingsGeneral, "item_general_leggings");
                                               GameRegistry.registerItem(bootsGeneral, "item_general_boots");
                                               GameRegistry.registerItem(helmetCivil, "item_civil_helmet");
                                               GameRegistry.registerItem(chestPlateCivil, "item_civil_chestplate");
                                               GameRegistry.registerItem(leggingsCivil, "item_civil_leggings");
                                               GameRegistry.registerItem(bootsCivil, "item_civil_boots");
                                               SemiBrique = new BlocS(Material.ground).setBlockName("blocsb").setCreativeTab(AltisCraft);
                                               blockPeche = new BlockPeche().setBlockName("blocpeche").setBlockTextureName("altiscraft:BlocPeche").setCreativeTab(AltisCraft).setHardness(7.5F);
                                               blockPomme = new BlockPomme().setBlockName("blocpomme").setBlockTextureName("altiscraft:BlocPomme").setCreativeTab(AltisCraft).setHardness(7.5F);
                                               MineraisCuivre = new MineraisCuivre().setBlockName("bloccuivre").setBlockTextureName("altiscraft:BlocCuivre").setCreativeTab(AltisCraft).setHardness(7.5F);
                                               MineraisMeth = new MineraisMeth().setBlockName("blocmeth").setBlockTextureName("altiscraft:BlocMeth").setCreativeTab(AltisCraft).setHardness(25.5F);
                                               blockBrique = new Bloc().setBlockName("blocbrique").setBlockTextureName("altiscraft:BlocBrique").setCreativeTab(AltisCraft);
                                               Blanc = new Bloc().setBlockName("blanc").setBlockTextureName("altiscraft:Blanc").setCreativeTab(AltisCraft);
                                               blocSemiBrique = new Bloc().setBlockName("blocsemibrique").setCreativeTab(AltisCraft);
                                               blocGrisBrique = new Bloc().setBlockName("blocgrisbrique").setBlockTextureName("altiscraft:BlocGrisBrique").setCreativeTab(AltisCraft);
                                               CocainePlante = new CocainePlante().setBlockName("plantecocaine").setBlockTextureName("altiscraft:Cocaine").setCreativeTab(AltisCraft).setHardness(1.5F);
                                               CannabisPlante = new CannabisPlante().setBlockName("plantecannabis").setBlockTextureName("altiscraft:Cannabis").setCreativeTab(AltisCraft).setHardness(1.0F);
                                               blockMcDoV = new Bloc().setBlockName("blocmcdov").setBlockTextureName("altiscraft:McDoV").setCreativeTab(AltisCraft);
                                               blockMcDoR = new Bloc().setBlockName("blocmcdor").setBlockTextureName("altiscraft:McDoR").setCreativeTab(AltisCraft);
                                               BlocVATM = new BlocVATM().setBlockName("blocvatm").setCreativeTab(AltisCraft).setBlockTextureName("altiscraft:VATM");
                                               BlocATM = new BlocATM().setBlockName("blocatm").setCreativeTab(AltisCraft).setBlockTextureName("altiscraft:ATM");
                                               BlocCoco = new BlocCoco().setBlockName("bloccoco").setCreativeTab(AltisCraft).setHardness(7.5F).setBlockTextureName("altiscraft:Coco");
                                               BlocRoute1 = new Bloc().setBlockName("blocroute1").setBlockTextureName("altiscraft:BlocRoute1").setCreativeTab(AltisCraft);
                                               BlocRoute2 = new Bloc().setBlockName("blocroute2").setBlockTextureName("altiscraft:BlocRoute2").setCreativeTab(AltisCraft);
                                               BlocATMTexture = new Bloc().setBlockName("blocatmtexture").setBlockTextureName("altiscraft:BlocATMTexture").setCreativeTab(AltisCraft);
                                               BlocPierreVert = new Bloc().setBlockName("blocpierrevert").setBlockTextureName("altiscraft:BlocPierreVert").setCreativeTab(AltisCraft);
                                               BlocFerMarron = new Bloc().setBlockName("blocfermarron").setBlockTextureName("altiscraft:BlocFerMarron").setCreativeTab(AltisCraft);
                                               BlocMetaData = new BlocMetaData().setBlockName("blocmetadata").setCreativeTab(AltisCraft);
                                               Blanc = new Bloc().setBlockName("blanc").setBlockTextureName("altiscraft:Blanc").setCreativeTab(AltisCraft);
                                               FerPeuGris = new Bloc().setBlockName("ferpeugris").setBlockTextureName("altiscraft:FerPeuGris").setCreativeTab(AltisCraft);
                                               PierreBlanc = new Bloc().setBlockName("pierreblanc").setBlockTextureName("altiscraft:PierreBlanc").setCreativeTab(AltisCraft);
                                               FerGris = new Bloc().setBlockName("fergris").setBlockTextureName("altiscraft:FerGris").setCreativeTab(AltisCraft);
                                               PlastiqueFlashVert = new Bloc().setBlockName("plastiqueflashvert").setBlockTextureName("altiscraft:PlastiqueFlashVert").setCreativeTab(AltisCraft);
                                               Cyan = new Bloc().setBlockName("cyan").setBlockTextureName("altiscraft:Cyan").setCreativeTab(AltisCraft);
                                               Aluminium = new Bloc().setBlockName("aluminium").setBlockTextureName("altiscraft:Aluminium").setCreativeTab(AltisCraft);
                                               BlanchePierre = new Bloc().setBlockName("blanchepierre").setBlockTextureName("altiscraft:BlanchePierre").setCreativeTab(AltisCraft);
                                               PierreBlanche = new Bloc().setBlockName("pierreblanche").setBlockTextureName("altiscraft:PierreBlanche").setCreativeTab(AltisCraft);
                                               PlastiqueVert = new Bloc().setBlockName("plastiquevert").setBlockTextureName("altiscraft:PlastiqueVert").setCreativeTab(AltisCraft);
                                               Flesh = new Bloc().setBlockName("flesh").setBlockTextureName("altiscraft:Flesh").setCreativeTab(AltisCraft);
                                               PlancheMarron = new Bloc().setBlockName("planchemarron").setBlockTextureName("altiscraft:PlancheMarron").setCreativeTab(AltisCraft);
                                               Rouge = new Bloc().setBlockName("rouge").setBlockTextureName("altiscraft:Rouge").setCreativeTab(AltisCraft);
                                               PlastiqueRouge = new Bloc().setBlockName("plastiquerouge").setBlockTextureName("altiscraft:PlastiqueRouge").setCreativeTab(AltisCraft);
                                               PlastiqueBlanc = new Bloc().setBlockName("plastiqueblanc").setBlockTextureName("altiscraft:PlastiqueBlanc").setCreativeTab(AltisCraft);
                                               PlastiqueBleu = new Bloc().setBlockName("plastiquebleu").setBlockTextureName("altiscraft:PlastiqueBleu").setCreativeTab(AltisCraft);
                                               BlocLampadaire = new BlocLampadaire().setBlockName("bloclampadaire").setCreativeTab(AltisCraft).setBlockTextureName("altiscraft:Lampadaire");
                                               BlocVLampadaire = new BlocVLampadaire().setBlockName("blocvlampadaire").setCreativeTab(AltisCraft).setBlockTextureName("altiscraft:VLampadaire");
                                               BlocPanneauInterdit = new BlocPanneauInterdit().setBlockName("blocpanneauinterdit").setCreativeTab(AltisCraft).setBlockTextureName("altiscraft:PanneauInterdit");
                                               BlocPanneauSTOP = new BlocPanneauSTOP().setBlockName("blocpanneaustop").setCreativeTab(AltisCraft).setBlockTextureName("altiscraft:PanneauSTOP");
                                               BlocPoubelle = new BlocPoubelle().setBlockName("blocpoubelle").setCreativeTab(AltisCraft).setBlockTextureName("altiscraft:Poubelle");
                                               BlocBarriereFerme = new BlocBarriereFerme().setBlockName("blocbarriereferme").setCreativeTab(AltisCraft).setBlockTextureName("altiscraft:BarriereFerme");
                                               BlocBarriereOuverte = new BlocBarriereOuverte().setBlockName("blocbarriereouverte").setCreativeTab(AltisCraft).setBlockTextureName("altiscraft:BarriereOuverte");
                                               PorteHopital = new PorteHopital(Material.ground).setUnlocalizedName("portehopital").setTextureName("altiscraft:PorteHopital");
                                               GameRegistry.registerItem(PorteHopital, "portehopital");
                                               GameRegistry.registerBlock(SemiBrique, "blocsb");
                                               GameRegistry.registerBlock(PlastiqueRouge, "plastiquerouge");
                                               GameRegistry.registerBlock(PlastiqueBlanc, "plastiqueblanc");
                                               GameRegistry.registerBlock(PlastiqueBleu, "plastiquebleu");
                                               GameRegistry.registerBlock(Blanc, "blanc");
                                               GameRegistry.registerBlock(FerPeuGris, "ferpeugris");
                                               GameRegistry.registerBlock(PierreBlanc, "pierreblanc");
                                               GameRegistry.registerBlock(FerGris, "fergris");
                                               GameRegistry.registerBlock(PlastiqueFlashVert, "plastiqueflashvert");
                                               GameRegistry.registerBlock(Cyan, "cyan");
                                               GameRegistry.registerBlock(Aluminium, "aluminium");
                                               GameRegistry.registerBlock(BlanchePierre, "blanchepierre");
                                               GameRegistry.registerBlock(PierreBlanche, "pierreblanche");
                                               GameRegistry.registerBlock(PlastiqueVert, "plastiquevert");
                                               GameRegistry.registerBlock(Flesh, "flesh");
                                               GameRegistry.registerBlock(PlancheMarron, "planchemarron");
                                               GameRegistry.registerBlock(Rouge, "rouge");
                                               GameRegistry.registerBlock(blockPeche, "block_peche");
                                               GameRegistry.registerBlock(blockPomme, "block_pomme");
                                               GameRegistry.registerBlock(blockBrique, "block_brick");
                                               GameRegistry.registerBlock(blocSemiBrique, "block_semibrick");
                                               GameRegistry.registerBlock(blocGrisBrique, "block_grisbrick");
                                               GameRegistry.registerBlock(MineraisCuivre, "bloc_cuivre");
                                               GameRegistry.registerBlock(CannabisPlante, "plante_cannabis");
                                               GameRegistry.registerBlock(CocainePlante, "plante_cocaine");
                                               GameRegistry.registerBlock(blockMcDoV, "block_mcdov");
                                               GameRegistry.registerBlock(blockMcDoR, "block_mcdor");
                                               GameRegistry.registerBlock(BlocRoute1, "bloc_route1");
                                               GameRegistry.registerBlock(BlocRoute2, "bloc_route2");
                                               GameRegistry.registerBlock(BlocATMTexture, "bloc_atmtexture");
                                               GameRegistry.registerBlock(BlocATM, "blocatm");
                                               GameRegistry.registerBlock(BlocVATM, "blocvatm");
                                               GameRegistry.registerBlock(BlocLampadaire, "bloclampadaire");
                                               GameRegistry.registerBlock(BlocVLampadaire, "blocvlampadaire");
                                               GameRegistry.registerBlock(BlocPanneauInterdit, "blocpanneauinterdit");
                                               GameRegistry.registerBlock(BlocPanneauSTOP, "blocpanneaustop");
                                               GameRegistry.registerBlock(BlocCoco, "bloccoco");
                                               GameRegistry.registerBlock(BlocBarriereOuverte, "blocbarriereouverte");
                                               GameRegistry.registerBlock(BlocBarriereFerme, "blocbarriereferme");
                                               GameRegistry.registerBlock(BlocPoubelle, "blocpoubelle");
                                               GameRegistry.registerBlock(MineraisMeth, "mineraismeth");
                                               GameRegistry.registerBlock(BlocPierreVert, "blocpierrevert");
                                               GameRegistry.registerBlock(BlocFerMarron, "blocfermarron");
                                               GameRegistry.registerBlock(BlocMetaData, ItemBlocMetaData.class, "bloc_metadata");
                                               GameRegistry.registerTileEntity(TileEntityATM.class, "modid:atm");
                                               GameRegistry.registerTileEntity(TileEntityVATM.class, "modid:vatm");
                                               GameRegistry.registerTileEntity(TileEntityVLampadaire.class, "modid:vlampadaire");
                                               GameRegistry.registerTileEntity(TileEntityPoubelle.class, "modid:poubelle");
                                               GameRegistry.registerTileEntity(TileEntityBarriereOuverte.class, "modid:barriereouverte");
                                               GameRegistry.registerTileEntity(TileEntityBarriereFerme.class, "modid:barriereferme");
                                               GameRegistry.registerTileEntity(TileEntityPanneauSTOP.class, "modid:panneaustop");
                                               GameRegistry.registerTileEntity(TileEntityPanneauInterdit.class, "modid:panneauinterdit");
                                               GameRegistry.addRecipe(new ItemStack(itemFCocaine, 1), new Object[] { "#X#", "%Y%", "VHV", Character.valueOf('#'), itemCokaine0, Character.valueOf('X'), Items.string, Character.valueOf('%'), Items.paper, Character.valueOf('Y'), Items.slime_ball, Character.valueOf('V'), itemCokaine1, Character.valueOf('H'), itemCokaine2});
                                               GameRegistry.addRecipe(new ItemStack(itemFCannabis, 1), new Object[] { "#X#", "%Y%", "###", Character.valueOf('#'), itemCannabis, Character.valueOf('X'), Items.string, Character.valueOf('%'), Items.paper, Character.valueOf('Y'), Items.slime_ball});
                                               GameRegistry.addRecipe(new ItemStack(itemBedo, 1), new Object[] { "%%%", "#Y#", "%%%", Character.valueOf('#'), itemCannabis, Character.valueOf('X'), Items.string, Character.valueOf('%'), Items.paper, Character.valueOf('Y'), ModAltisCraft.itemFCannabis});
                                               GameRegistry.addRecipe(new ItemStack(itemFLSD, 1), new Object[] { "#X#", "#Y#", "###", Character.valueOf('#'), Blocks.glass, Character.valueOf('X'), Blocks.log, Character.valueOf('Y'), itemLSD});
                                               GameRegistry.addRecipe(new ItemStack(IIcentimes, 1), new Object[] { "##", Character.valueOf('#'), Icentime });
                                               GameRegistry.addRecipe(new ItemStack(IIcentimes, 1), new Object[] { "#", "#", Character.valueOf('#'), Icentime });
                                               GameRegistry.addRecipe(new ItemStack(Vcentimes, 1), new Object[] { "#", "I", "#", Character.valueOf('#'), IIcentimes, Character.valueOf('I'), Icentime });
                                               GameRegistry.addRecipe(new ItemStack(Vcentimes, 1), new Object[] { "#I#", Character.valueOf('#'), IIcentimes, Character.valueOf('I'), Icentime });
                                               GameRegistry.addRecipe(new ItemStack(Xcentimes, 1), new Object[] { "##", Character.valueOf('#'), Vcentimes });
                                               GameRegistry.addRecipe(new ItemStack(Xcentimes, 1), new Object[] { "#", "#", Character.valueOf('#'), Vcentimes });
                                               GameRegistry.addRecipe(new ItemStack(XXcentimes, 1), new Object[] { "##", Character.valueOf('#'), Xcentimes });
                                               GameRegistry.addRecipe(new ItemStack(XXcentimes, 1), new Object[] { "#", "#", Character.valueOf('#'), Xcentimes });
                                               GameRegistry.addRecipe(new ItemStack(Lcentimes, 1), new Object[] { "#", "I", "#", Character.valueOf('#'), XXcentimes, Character.valueOf('I'), Xcentimes });
                                               GameRegistry.addRecipe(new ItemStack(Lcentimes, 1), new Object[] { "#I#", Character.valueOf('#'), XXcentimes, Character.valueOf('I'), Xcentimes });
                                               GameRegistry.addRecipe(new ItemStack(Ieuro, 1), new Object[] { "##", Character.valueOf('#'), Lcentimes });
                                               GameRegistry.addRecipe(new ItemStack(Ieuro, 1), new Object[] { "#", "#", Character.valueOf('#'), Lcentimes });
                                               GameRegistry.addRecipe(new ItemStack(IIeuros, 1), new Object[] { "##", Character.valueOf('#'), Ieuro });
                                               GameRegistry.addRecipe(new ItemStack(IIeuros, 1), new Object[] { "#", "#", Character.valueOf('#'), Ieuro });
                                               GameRegistry.addRecipe(new ItemStack(Veuros, 1), new Object[] { "#", "I", "#", Character.valueOf('#'), IIeuros, Character.valueOf('I'), Ieuro });
                                               GameRegistry.addRecipe(new ItemStack(Veuros, 1), new Object[] { "#I#", Character.valueOf('#'), IIeuros, Character.valueOf('I'), Ieuro });
                                               GameRegistry.addRecipe(new ItemStack(Xeuros, 1), new Object[] { "##", Character.valueOf('#'), Veuros });
                                               GameRegistry.addRecipe(new ItemStack(Xeuros, 1), new Object[] { "#", "#", Character.valueOf('#'), Veuros });
                                               GameRegistry.addRecipe(new ItemStack(XXeuros, 1), new Object[] { "##", Character.valueOf('#'), Xeuros });
                                               GameRegistry.addRecipe(new ItemStack(XXeuros, 1), new Object[] { "#", "#", Character.valueOf('#'), Xeuros });
                                               GameRegistry.addRecipe(new ItemStack(Leuros, 1), new Object[] { "#", "I", "#", Character.valueOf('#'), XXeuros, Character.valueOf('I'), Xeuros });
                                               GameRegistry.addRecipe(new ItemStack(Leuros, 1), new Object[] { "#I#", Character.valueOf('#'), XXeuros, Character.valueOf('I'), Xeuros });
                                               GameRegistry.addRecipe(new ItemStack(Ceuros, 1), new Object[] { "##", Character.valueOf('#'), Leuros });
                                               GameRegistry.addRecipe(new ItemStack(Ceuros, 1), new Object[] { "#", "#", Character.valueOf('#'), Leuros });
                                               GameRegistry.addRecipe(new ItemStack(Icentime, 2), new Object[] { "#", Character.valueOf('#'), IIcentimes });
                                               GameRegistry.addRecipe(new ItemStack(Icentime, 5), new Object[] { "#", Character.valueOf('#'), Vcentimes });
                                               GameRegistry.addRecipe(new ItemStack(Vcentimes, 2), new Object[] { "#", Character.valueOf('#'), Xcentimes });
                                               GameRegistry.addRecipe(new ItemStack(Xcentimes, 2), new Object[] { "#", Character.valueOf('#'), XXcentimes });
                                               GameRegistry.addRecipe(new ItemStack(Xcentimes, 5), new Object[] { "#", Character.valueOf('#'), Lcentimes });
                                               GameRegistry.addRecipe(new ItemStack(Lcentimes, 2), new Object[] { "#", Character.valueOf('#'), Ieuro });
                                               GameRegistry.addRecipe(new ItemStack(Ieuro, 2), new Object[] { "#", Character.valueOf('#'), IIeuros });
                                               GameRegistry.addRecipe(new ItemStack(Ieuro, 5), new Object[] { "#", Character.valueOf('#'), Veuros });
                                               GameRegistry.addRecipe(new ItemStack(Veuros, 2), new Object[] { "#", Character.valueOf('#'), Xeuros });
                                               GameRegistry.addRecipe(new ItemStack(Xeuros, 2), new Object[] { "#", Character.valueOf('#'), XXeuros });
                                               GameRegistry.addRecipe(new ItemStack(Xeuros, 5), new Object[] { "#", Character.valueOf('#'), Leuros });
                                               GameRegistry.addRecipe(new ItemStack(Leuros, 2), new Object[] { "#", Character.valueOf('#'), Ceuros });
                                               GameRegistry.addSmelting(MineraisCuivre, new ItemStack(itemCuivre), 1.0F);
                                             }
                                             @SideOnly(Side.CLIENT)
                                             public void Events()
                                             {
                                          MinecraftForge.EVENT_BUS.register(new Events());
                                             }
                                             @Mod.EventHandler
                                             public void Init(FMLPreInitializationEvent event)
                                             {
                                          MinecraftForge.EVENT_BUS.register(new EventManager());
                                               System.out.println("Initialisation !");
                                             }
                                            @SideOnly(Side.CLIENT)
                                            public void onRenderLabel(RenderLivingEvent.Specials.Pre event)
                                            {
                                            if(event.entity instanceof EntityPlayer)
                                            {
                                            event.setCanceled(true);
                                            }
                                             }
                                             @Mod.EventHandler
                                             public void postInit(FMLPostInitializationEvent event) {
                                               System.out.println("Post-initialisation !");
                                               addEntity(EntityMobBenjaminLoison.class, "BenjaminLoison", 420, 0, 0);
                                               proxy.registerRender();
                                             }
                                             public void addEntity(Class entityClass, String name, int id, int backgroundColor, int foregroundColor)
                                             {
                                               EntityRegistry.registerGlobalEntityID(entityClass, name, EntityRegistry.findGlobalUniqueEntityId(), backgroundColor, foregroundColor);
                                               EntityRegistry.registerModEntity(entityClass, name, id, this, 40, 1, true);
                                             }
                                           }
                                          ​package fr.altiscraft.altiscraft.common;
                                          import cpw.mods.fml.client.FMLClientHandler;
                                          import cpw.mods.fml.common.eventhandler.SubscribeEvent;
                                          import cpw.mods.fml.relauncher.Side;
                                          import cpw.mods.fml.relauncher.SideOnly;
                                          import net.minecraft.client.Minecraft;
                                          import net.minecraftforge.client.event.RenderGameOverlayEvent;
                                          import net.minecraftforge.client.event.RenderGameOverlayEvent.ElementType;
                                          public class EventManager
                                          {
                                          private String fpsString;
                                          @SideOnly(Side.CLIENT)
                                          private Minecraft mc = Minecraft.getMinecraft();
                                          @SideOnly(Side.CLIENT)
                                          @SubscribeEvent
                                          public void renderGameOverlay(RenderGameOverlayEvent.Post event)
                                          {
                                          if(event.type != ElementType.EXPERIENCE)
                                          {
                                          return;
                                          }
                                          fpsString = mc.debug.split(",", 2)[0];
                                          FMLClientHandler.instance().getClient().fontRenderer.drawStringWithShadow("FPS : "+fpsString, 3, 3, 0xffffff);
                                          // public ItemStack Argent = Minecraft.getMinecraft().thePlayer.inventory.getStackInSlot(3);
                                          // public int size = 0;
                                          // InventoryPlayer inv = Minecraft.getMinecraft().thePlayer.inventory;
                                          // {
                                          // for (int i = 0; i < inv.getSizeInventory(); i++) {
                                          // if (inv.getStackInSlot(i) != null && inv.getStackInSlot(i).getItem() == Items.emerald) size += inv.getStackInSlot(i).stackSize;
                                          // }
                                          // @SubscribeEvent public void renderArgent(RenderGameOverlayEvent event){if(event.type == ElementType.JUMPBAR || event.type == ElementType.EXPERIENCE){Minecraft.getMinecraft().fontRenderer.drawString("Argent porté : " + Argent, 2, 2, 0xFFFFFF);}}
                                          //}
                                          }
                                          }

                                          Et ça ne marche pas toujours la même erreur…

                                          >! Développeur de Altis-Life (Arma III) sur Minecraft !
                                          >! Site web     : https://lemnoslife.com

                                          1 réponse Dernière réponse Répondre Citer 0
                                          • 1
                                          • 2
                                          • 3
                                          • 2 / 3
                                          38 sur 44
                                          • Premier message
                                            38/44
                                            Dernier message
                                          Design by Woryk
                                          Contact / Mentions Légales

                                          MINECRAFT FORGE FRANCE © 2018

                                          Powered by NodeBB