MFF

    Minecraft Forge France
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes
    • Forge Events
      • Automatique
      • Foncé
      • Clair
    • S'inscrire
    • Se connecter

    Un bloc basique

    Planifier Épinglé Verrouillé Déplacé Les blocs
    1.6.x
    70 Messages 19 Publieurs 32.1k Vues 1 Watching
    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.
    • robin4002R Hors-ligne
      robin4002 Moddeurs confirmés Rédacteurs Administrateurs
      dernière édition par

      public boolean isBeaconBase(World worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ)
      {
      return true;
      }
      

      Pourtant elle existe aussi en 1.6.4.
      Oui, il y une discussion pour les demandes de tuto, mais je vais pas faire un tutoriel pour une fonction …

      1 réponse Dernière réponse Répondre Citer 0
      • garganG Hors-ligne
        gargan
        dernière édition par

        donne ton code en entier!

        1 réponse Dernière réponse Répondre Citer 0
        • RexysFRR Hors-ligne
          RexysFR
          dernière édition par

          C’est bon sa marche avec le second code que robin4002 ma fournis :

          public boolean isBeaconBase(World worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ)
          {
          return true;
          }
          
          

          L’autre ne marche pas :

          public boolean isBeaconBase(IBlockAccess worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ)
          {
          return true;
          }
          
          

          Merci et bye !


          Nouveau problème : C’est possible de pouvoir faire que notre items qu’on vien de créer peut être utiliser dans le beacon ?!

          PS: Désolé si je suis énervant en posant plein de questions x)
          PS²: Désolé des fautes d’orthographes !

          Bye !

          
          ~~~~~~~~/ Novice dans le modding forge !…
          1 réponse Dernière réponse Répondre Citer 0
          • S Hors-ligne
            Sayac12
            dernière édition par robin4002

            Bonjour,
            Je suis actuellement en train (d’essayer :@) de créer un mod rajoutant des TNT et je n’y arrive pas ! Peut-être que je me suis trompé de sujet désolé. En fait j’ai voulu créer une nouvelle base de TNT pour faciliter la création de nouvelle. Puis j’ai aussi créer une nouvelle base d’ EntityTNTPrimed pour customiser la puissance et le fuse. Ensuite j’ai créer une première TNT à laquelle j’ai doublé la puissance, un onglet et j’ai mis la texture. La texture et l’onglet marchent mais ma TNT explose comme la TNT de base(à moins que j’ai buggé la TNT de base) et lorsqu’on l’allume, elle a la texture de la TNT de base.
            0_1537561811402_2014-03-22_16.32.55.png
            Avant
            0_1537561831318_2014-03-22_16.33.02.png
            Après
            0_1537561847742_2014-03-22_16.32.22.png
            À gauche, TNT normale; à droite TNT doublée.
            Plus de screens en pièces jointes.
            Pourriez-vous m’expliquer ce que je dois faire ? Merci

            PS : Sur les screens , il n’y a qu’une couche d’herbe, c’est parce que je testais sur un ordinateur sous-performant.

            Crée le mod TNT++ 1.6.4

            1 réponse Dernière réponse Répondre Citer 0
            • jglrxavpokJ Hors-ligne
              jglrxavpok Modérateurs
              dernière édition par

              Sans les codes, on ne peut pas t’aider

              Modérateur sur MFF. 
              Mon Github: http://github.com/jglrxavpok
              Mon compte Steam si vous voulez jouer à CS:GO ou TF2 avec moi: https://steamcommunity.com/id/jglrxavpok/

              1 réponse Dernière réponse Répondre Citer 0
              • robin4002R Hors-ligne
                robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                dernière édition par

                Ton problème ne concerne pas un bloc basique, il serait mieux de faire une demande d’aide ici :
                http://www.minecraftforgefrance.fr/forumdisplay.php?fid=34
                De plus, comme jglrxavpok l’a dit, il nous faut tes codes.

                1 réponse Dernière réponse Répondre Citer 0
                • S Hors-ligne
                  Sayac12
                  dernière édition par

                  @‘robin4002’:

                  Ton problème ne concerne pas un bloc basique, il serait mieux de faire une demande d’aide ici :
                  http://www.minecraftforgefrance.fr/forumdisplay.php?fid=34
                  De plus, comme jglrxavpok l’a dit, il nous faut tes codes.

                  OK merci. Je vais le faire.

                  Crée le mod TNT++ 1.6.4

                  1 réponse Dernière réponse Répondre Citer 0
                  • V Hors-ligne
                    Volario
                    dernière édition par

                    Bonjour, voila je voudrait creer un bloc mais cependant lorsque je creer le bloc j’ai une erreur :

                    Voici les logs :

                    août 08, 2014 12:31:10 PM net.minecraft.launchwrapper.LogWrapper log
                    INFOS: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                    août 08, 2014 12:31:11 PM net.minecraft.launchwrapper.LogWrapper log
                    INFOS: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                    août 08, 2014 12:31:11 PM net.minecraft.launchwrapper.LogWrapper log
                    INFOS: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
                    2014-08-08 12:31:11 [INFOS] [ForgeModLoader] Forge Mod Loader version 6.99.19.964 for Minecraft 1.6.4 loading
                    2014-08-08 12:31:11 [INFOS] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_65, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jre7
                    2014-08-08 12:31:11 [INFOS] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                    2014-08-08 12:31:11 [INFOS] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                    2014-08-08 12:31:11 [INFOS] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
                    2014-08-08 12:31:11 [INFOS] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                    2014-08-08 12:31:11 [INFOS] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                    2014-08-08 12:31:11 [INFOS] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                    2014-08-08 12:31:11 [INFOS] [STDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg
                    2014-08-08 12:31:11 [GRAVE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                    2014-08-08 12:31:14 [GRAVE] [ForgeModLoader] The minecraft jar file:/C:/Users/Valentin/.gradle/caches/minecraft/net/minecraftforge/forge/1.6.4-9.11.1.964/forge-1.6.4-9.11.1.964-mcp.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!
                    2014-08-08 12:31:14 [GRAVE] [ForgeModLoader] FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!
                    2014-08-08 12:31:14 [GRAVE] [ForgeModLoader] Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Valentin/.gradle/caches/minecraft/net/minecraftforge/forge/1.6.4-9.11.1.964/forge-1.6.4-9.11.1.964-mcp.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it
                    2014-08-08 12:31:14 [GRAVE] [ForgeModLoader] FML appears to be missing any signature data. This is not a good thing
                    2014-08-08 12:31:14 [INFOS] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                    2014-08-08 12:31:14 [INFOS] [STDOUT] Loaded 110 rules from AccessTransformer config file forge_at.cfg
                    2014-08-08 12:31:14 [INFOS] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
                    2014-08-08 12:31:15 [INFOS] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main}
                    2014-08-08 12:31:17 [INFOS] [Minecraft-Client] Setting user: Player687
                    2014-08-08 12:31:20 [INFOS] [Minecraft-Client] LWJGL Version: 2.9.0
                    2014-08-08 12:31:22 [INFOS] [Minecraft-Client] Reloading ResourceManager: Default
                    2014-08-08 12:31:24 [INFOS] [MinecraftForge] Attempting early MinecraftForge initialization
                    2014-08-08 12:31:24 [INFOS] [STDOUT] MinecraftForge v9.11.1.964 Initialized
                    2014-08-08 12:31:24 [INFOS] [ForgeModLoader] MinecraftForge v9.11.1.964 Initialized
                    2014-08-08 12:31:24 [INFOS] [STDOUT] Replaced 112 ore recipies
                    2014-08-08 12:31:24 [INFOS] [MinecraftForge] Completed early MinecraftForge initialization
                    2014-08-08 12:31:24 [INFOS] [ForgeModLoader] Reading custom logging properties from C:\Users\Valentin\Downloads\forge-1.6.4-9.11.1.964-src\eclipse\config\logging.properties
                    2014-08-08 12:31:24 [DÉSACTIVÉ] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
                    2014-08-08 12:31:24 [INFOS] [ForgeModLoader] Searching C:\Users\Valentin\Downloads\forge-1.6.4-9.11.1.964-src\eclipse\mods for mods
                    2014-08-08 12:31:31 [GRAVE] [ForgeModLoader] FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.Start. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!
                    2014-08-08 12:31:31 [GRAVE] [ForgeModLoader] FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!
                    2014-08-08 12:31:32 [INFOS] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
                    2014-08-08 12:31:32 [INFOS] [mcp] Activating mod mcp
                    2014-08-08 12:31:32 [INFOS] [FML] Activating mod FML
                    2014-08-08 12:31:32 [INFOS] [Forge] Activating mod Forge
                    2014-08-08 12:31:32 [INFOS] [modemerald] Activating mod modemerald
                    2014-08-08 12:31:32 [AVERTISSEMENT] [ModEmerald] Mod ModEmerald is missing a pack.mcmeta file, things may not work well
                    2014-08-08 12:31:32 [INFOS] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ModEmerald
                    2014-08-08 12:31:32 [INFOS] [ForgeModLoader] Registering Forge Packet Handler
                    2014-08-08 12:31:32 [INFOS] [ForgeModLoader] Succeeded registering Forge Packet Handler
                    2014-08-08 12:31:32 [INFOS] [ForgeModLoader] Configured a dormant chunk cache size of 0
                    2014-08-08 12:31:32 [INFOS] [STDOUT] méthode côté client
                    2014-08-08 12:31:34 [GRAVE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
                    2014-08-08 12:31:34 [GRAVE] [ForgeModLoader]
                    mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
                    FML{6.99.19.964} [Forge Mod Loader] (forge-1.6.4-9.11.1.964-mcp.jar) Unloaded->Constructed->Pre-initialized->Initialized
                    Forge{9.11.1.964} [Minecraft Forge] (forge-1.6.4-9.11.1.964-mcp.jar) Unloaded->Constructed->Pre-initialized->Initialized
                    modemerald{1.0.0} [ModEmerald] (bin) Unloaded->Constructed->Pre-initialized->Errored
                    2014-08-08 12:31:34 [GRAVE] [ForgeModLoader] The following problems were captured during this phase
                    2014-08-08 12:31:34 [GRAVE] [ForgeModLoader] Caught exception from modemerald
                    java.lang.ArrayIndexOutOfBoundsException: 4500
                    at net.minecraft.block.Block.<init>(Block.java:347)
                    at fr.volario.mod.common.RubyOre.<init>(RubyOre.java:11)
                    at fr.volario.mod.common.ModEmerald.init(ModEmerald.java:94)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    at java.lang.reflect.Method.invoke(Unknown Source)
                    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:523)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    at java.lang.reflect.Method.invoke(Unknown Source)
                    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
                    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
                    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
                    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
                    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
                    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:197)
                    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:177)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    at java.lang.reflect.Method.invoke(Unknown Source)
                    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
                    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
                    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
                    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
                    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
                    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:108)
                    at cpw.mods.fml.common.Loader.initializeMods(Loader.java:670)
                    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:241)
                    at net.minecraft.client.Minecraft.startGame(Minecraft.java:509)
                    at net.minecraft.client.Minecraft.run(Minecraft.java:808)
                    at net.minecraft.client.main.Main.main(Main.java:101)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    at java.lang.reflect.Method.invoke(Unknown Source)
                    at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
                    at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] –-- Minecraft Crash Report ----
                    2014-08-08 12:31:34 [INFOS] [STDOUT] // I just don't know what went wrong :(
                    2014-08-08 12:31:34 [INFOS] [STDOUT]
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Time: 08/08/14 12:31
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Description: Initializing game
                    2014-08-08 12:31:34 [INFOS] [STDOUT]
                    2014-08-08 12:31:34 [INFOS] [STDOUT] java.lang.ArrayIndexOutOfBoundsException: 4500
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at net.minecraft.block.Block.<init>(Block.java:347)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at fr.volario.mod.common.RubyOre.<init>(RubyOre.java:11)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at fr.volario.mod.common.ModEmerald.init(ModEmerald.java:94)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:523)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:197)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:177)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:108)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:670)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:241)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:509)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:808)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:101)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
                    2014-08-08 12:31:34 [INFOS] [STDOUT]
                    2014-08-08 12:31:34 [INFOS] [STDOUT]
                    2014-08-08 12:31:34 [INFOS] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
                    2014-08-08 12:31:34 [INFOS] [STDOUT] –-------------------------------------------------------------------------------------
                    2014-08-08 12:31:34 [INFOS] [STDOUT]
                    2014-08-08 12:31:34 [INFOS] [STDOUT] – Head --
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Stacktrace:
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at net.minecraft.block.Block.<init>(Block.java:347)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at fr.volario.mod.common.RubyOre.<init>(RubyOre.java:11)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at fr.volario.mod.common.ModEmerald.init(ModEmerald.java:94)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:523)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:197)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:177)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:108)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:670)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:241)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:509)
                    2014-08-08 12:31:34 [INFOS] [STDOUT]
                    2014-08-08 12:31:34 [INFOS] [STDOUT] – Initialization --
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Details:
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Stacktrace:
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:808)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:101)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
                    2014-08-08 12:31:34 [INFOS] [STDOUT]
                    2014-08-08 12:31:34 [INFOS] [STDOUT] – System Details --
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Details:
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Minecraft Version: 1.6.4
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Operating System: Windows 8 (amd64) version 6.2
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Java Version: 1.7.0_65, Oracle Corporation
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Memory: 803931496 bytes (766 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                    2014-08-08 12:31:34 [INFOS] [STDOUT] AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Suspicious classes: FML and Forge are installed
                    2014-08-08 12:31:34 [INFOS] [STDOUT] IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
                    2014-08-08 12:31:34 [INFOS] [STDOUT] FML: MCP v8.11 FML v6.99.19.964 Minecraft Forge 9.11.1.964 4 mods loaded, 4 mods active
                    2014-08-08 12:31:34 [INFOS] [STDOUT] mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
                    2014-08-08 12:31:34 [INFOS] [STDOUT] FML{6.99.19.964} [Forge Mod Loader] (forge-1.6.4-9.11.1.964-mcp.jar) Unloaded->Constructed->Pre-initialized->Initialized
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Forge{9.11.1.964} [Minecraft Forge] (forge-1.6.4-9.11.1.964-mcp.jar) Unloaded->Constructed->Pre-initialized->Initialized
                    2014-08-08 12:31:34 [INFOS] [STDOUT] modemerald{1.0.0} [ModEmerald] (bin) Unloaded->Constructed->Pre-initialized->Errored
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Launched Version: 1.6
                    2014-08-08 12:31:34 [INFOS] [STDOUT] LWJGL: 2.9.0
                    2014-08-08 12:31:34 [INFOS] [STDOUT] OpenGL: Intel(R) HD Graphics 4000 GL version 4.0.0 - Build 9.17.10.2857, Intel
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge'
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Type: Client (map_client.txt)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Resource Pack: Default
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Current Language: English (US)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Profiler Position: N/A (disabled)
                    2014-08-08 12:31:34 [INFOS] [STDOUT] Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
                    2014-08-08 12:31:34 [INFOS] [STDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Valentin\Downloads\forge-1.6.4-9.11.1.964-src\eclipse\.\crash-reports\crash-2014-08-08_12.31.34-client.txt
                    
                    

                    Voici ma classe principale :

                    package fr.volario.mod.common;
                    
                    import net.minecraft.creativetab.CreativeTabs;
                    import net.minecraft.item.EnumArmorMaterial;
                    import net.minecraft.item.EnumToolMaterial;
                    import net.minecraft.item.Item;
                    import net.minecraft.item.ItemStack;
                    import net.minecraftforge.common.EnumHelper;
                    import cpw.mods.fml.common.Mod;
                    import cpw.mods.fml.common.Mod.EventHandler;
                    import cpw.mods.fml.common.Mod.Instance;
                    import cpw.mods.fml.common.SidedProxy;
                    import cpw.mods.fml.common.event.FMLInitializationEvent;
                    import cpw.mods.fml.common.event.FMLPostInitializationEvent;
                    import cpw.mods.fml.common.event.FMLPreInitializationEvent;
                    import cpw.mods.fml.common.registry.GameRegistry;
                    import fr.volario.mod.proxy.CommonProxy;
                    import net.minecraftforge.common.MinecraftForge;
                    import net.minecraft.block.Block;
                    import cpw.mods.fml.common.registry.GameRegistry;
                    
                    @Mod(modid = "modemerald", name = "ModEmerald", version = "1.0.0")
                    
                    public class ModEmerald
                    {
                    
                    @Instance("ModEmerald")
                    public static ModEmerald Instance;
                    public static final String MODID = "ModEmerald";
                    
                    @SidedProxy(clientSide = "fr.volario.mod.proxy.ClientProxy", serverSide = "fr.volario.mod.proxy.CommonProxy")
                    public static CommonProxy proxy;
                    
                    public static Block RubyOre;
                    
                    public static Item Sapphire, Ruby, helmetEmerald, chestPlateEmerald, leggingsEmerald, bootsEmerald, helmetRuby, chestPlateRuby, leggingsRuby, bootsRuby, helmetSapphire, chestPlateSapphire, bootsSapphire, leggingsSapphire;
                    
                    public static Item HoeRuby, HoeSapphire, HoeEmerald;
                    
                    public static Item ShovelRuby, ShovelSapphire, ShovelEmerald;
                    
                    public static Item AxeRuby, AxeSapphire, AxeEmerald;
                    
                    public static Item PickAxeRuby, PickAxeSapphire, PickAxeEmerald;
                    
                    public static Item SwordRuby, SwordSapphire, SwordEmerald;
                    
                    public static EnumToolMaterial toolEmerald = EnumHelper.addToolMaterial("toolEmerald", 3, 2000, 13.0F, 4.0F, 15);
                    
                    public static EnumToolMaterial toolRuby = EnumHelper.addToolMaterial("toolRuby", 3, 2500, 18.0F, 6.0F, 15);
                    
                    public static EnumToolMaterial toolSapphire = EnumHelper.addToolMaterial("toolSapphire", 3, 3000, 23.0F, 8.0F, 15);
                    
                    public static EnumArmorMaterial ItemEmeraldArmor = EnumHelper.addArmorMaterial("armorEmerald", 35, new int[] {4, 9, 7, 4}, 10);
                    
                    public static EnumArmorMaterial ItemRubyArmor = EnumHelper.addArmorMaterial("armorRuby", 35, new int[] {5, 10, 8, 5}, 10);
                    
                    public static EnumArmorMaterial ItemSapphireArmor = EnumHelper.addArmorMaterial("armorSapphire", 35, new int[] {6, 11, 9, 6}, 10);
                    
                    @EventHandler
                    public void preInit(FMLPreInitializationEvent event)
                    {
                    proxy.registerRender();
                    
                    }
                    
                    @EventHandler
                    public void init(FMLInitializationEvent event)
                    {
                    
                    RubyOre = new RubyOre(4500)
                    .setHardness(1.0F)
                    .setResistance(5.0F)
                    .setUnlocalizedName("RubyOre")
                    .setTextureName(ModEmerald.MODID + ":RubyOre");
                    
                    Sapphire = new Sapphire(10015)
                    .setUnlocalizedName("Sapphire")
                    .setTextureName(ModEmerald.MODID + ":Sapphire")
                    .setCreativeTab(CreativeTabs.tabMaterials);
                    
                    Ruby = new Ruby(10014)
                    .setUnlocalizedName("Ruby")
                    .setTextureName(ModEmerald.MODID + ":Ruby")
                    .setCreativeTab(CreativeTabs.tabMaterials);
                    
                    HoeRuby = new HoeRuby(10016, toolRuby)
                    .setUnlocalizedName("HoeRuby")
                    .setTextureName(ModEmerald.MODID + ":HoeRuby")
                    .setCreativeTab(CreativeTabs.tabTools);
                    
                    HoeEmerald = new HoeEmerald(10017, toolEmerald)
                    .setUnlocalizedName("HoeEmerald")
                    .setTextureName(ModEmerald.MODID + ":HoeEmerald")
                    .setCreativeTab(CreativeTabs.tabTools);
                    
                    HoeSapphire = new HoeSapphire(10018, toolSapphire)
                    .setUnlocalizedName("HoeSapphire")
                    .setTextureName(ModEmerald.MODID + ":HoeSapphire")
                    .setCreativeTab(CreativeTabs.tabTools);
                    
                    AxeRuby = new AxeRuby(10019, toolRuby)
                    .setUnlocalizedName("AxeRuby")
                    .setTextureName(ModEmerald.MODID + ":AxeRuby")
                    .setCreativeTab(CreativeTabs.tabTools);
                    
                    AxeEmerald = new AxeEmerald(10020, toolEmerald)
                    .setUnlocalizedName("AxeEmerald")
                    .setTextureName(ModEmerald.MODID + ":AxeEmerald")
                    .setCreativeTab(CreativeTabs.tabTools);
                    
                    AxeSapphire = new AxeSapphire(10021, toolSapphire)
                    .setUnlocalizedName("AxeSapphire")
                    .setTextureName(ModEmerald.MODID + ":AxeSapphire")
                    .setCreativeTab(CreativeTabs.tabTools);
                    
                    ShovelRuby = new ShovelRuby(10022, toolRuby)
                    .setUnlocalizedName("ShovelRuby")
                    .setTextureName(ModEmerald.MODID + ":ShovelRuby")
                    .setCreativeTab(CreativeTabs.tabTools);
                    
                    ShovelEmerald = new ShovelEmerald(10023, toolEmerald)
                    .setUnlocalizedName("ShovelEmerald")
                    .setTextureName(ModEmerald.MODID + ":ShovelEmerald")
                    .setCreativeTab(CreativeTabs.tabTools);
                    
                    ShovelSapphire = new ShovelSapphire(10024, toolSapphire)
                    .setUnlocalizedName("ShovelSapphire")
                    .setTextureName(ModEmerald.MODID + ":ShovelSapphire")
                    .setCreativeTab(CreativeTabs.tabTools);
                    
                    PickAxeRuby = new PickAxeRuby(10025, toolRuby)
                    .setUnlocalizedName("PickAxeRuby")
                    .setTextureName(ModEmerald.MODID + ":PickAxeRuby")
                    .setCreativeTab(CreativeTabs.tabTools);
                    
                    PickAxeEmerald = new PickAxeEmerald(10026, toolEmerald)
                    .setUnlocalizedName("PickAxeEmerald")
                    .setTextureName(ModEmerald.MODID + ":PickAxeEmerald")
                    .setCreativeTab(CreativeTabs.tabTools);
                    
                    PickAxeSapphire = new PickAxeSapphire(10027, toolSapphire)
                    .setUnlocalizedName("PickAxeSapphire")
                    .setTextureName(ModEmerald.MODID + ":PickAxeSapphire")
                    .setCreativeTab(CreativeTabs.tabTools);
                    
                    SwordRuby = new SwordRuby(10028, toolRuby)
                    .setUnlocalizedName("SwordRuby")
                    .setTextureName(ModEmerald.MODID + ":SwordRuby")
                    .setCreativeTab(CreativeTabs.tabCombat);
                    
                    SwordEmerald = new SwordEmerald(10029, toolEmerald)
                    .setUnlocalizedName("SwordEmerald")
                    .setTextureName(ModEmerald.MODID + ":SwordEmerald")
                    .setCreativeTab(CreativeTabs.tabCombat);
                    
                    SwordSapphire = new SwordSapphire(10030, toolSapphire)
                    .setUnlocalizedName("SwordSapphire")
                    .setTextureName(ModEmerald.MODID + ":SwordSapphire")
                    .setCreativeTab(CreativeTabs.tabCombat);
                    
                    helmetEmerald = new EmeraldArmor(12002, ItemEmeraldArmor, 0,0)
                    .setUnlocalizedName("EmeraldHelmet")
                    .setTextureName("modemerald:EmeraldHelmet");
                    
                    chestPlateEmerald = new EmeraldArmor(12003, ItemEmeraldArmor, 0, 1)
                    .setUnlocalizedName("EmeraldChestPlate")
                    .setTextureName("modemerald:EmeraldChestplate");
                    
                    leggingsEmerald = new EmeraldArmor(12004, ItemEmeraldArmor, 0, 2)
                    .setUnlocalizedName("EmeraldLeggings")
                    .setTextureName("modemerald:EmeraldLeggings");
                    
                    bootsEmerald = new EmeraldArmor(12005, ItemEmeraldArmor, 0, 3)
                    .setUnlocalizedName("EmeraldBoots")
                    .setTextureName("modemerald:EmeraldBoots");
                    
                    helmetRuby = new RubyArmor(12006, ItemRubyArmor, 0,0)
                    .setUnlocalizedName("RubyHelmet")
                    .setTextureName("modemerald:RubyHelmet");
                    
                    chestPlateRuby = new RubyArmor(12007, ItemRubyArmor, 0, 1)
                    .setUnlocalizedName("RubyChestPlate")
                    .setTextureName("modemerald:RubyChestplate");
                    
                    leggingsRuby = new RubyArmor(12008, ItemRubyArmor, 0, 2)
                    .setUnlocalizedName("RubyLeggings")
                    .setTextureName("modemerald:RubyLeggings");
                    
                    bootsRuby = new RubyArmor(12009, ItemRubyArmor, 0, 3)
                    .setUnlocalizedName("RubyBoots")
                    .setTextureName("modemerald:RubyBoots");
                    
                    helmetSapphire = new SapphireArmor(12010, ItemSapphireArmor, 0,0)
                    .setUnlocalizedName("SapphireHelmet")
                    .setTextureName("modemerald:SapphireHelmet");
                    
                    chestPlateSapphire = new SapphireArmor(12011, ItemSapphireArmor, 0, 1)
                    .setUnlocalizedName("SapphireChestPlate")
                    .setTextureName("modemerald:SapphireChestplate");
                    
                    leggingsSapphire = new SapphireArmor(12012, ItemSapphireArmor, 0, 2)
                    .setUnlocalizedName("SapphireLeggings")
                    .setTextureName("modemerald:SapphireLeggings");
                    
                    bootsSapphire = new SapphireArmor(12013, ItemSapphireArmor, 0, 3)
                    .setUnlocalizedName("SapphireBoots")
                    .setTextureName("modemerald:SapphireBoots");
                    
                    GameRegistry.registerBlock(RubyOre, "RubyOre");
                    
                    GameRegistry.registerItem(AxeEmerald, "AxeEmerald");
                    GameRegistry.registerItem(AxeRuby, "AxeRuby");
                    GameRegistry.registerItem(AxeSapphire, "AxeSapphire");
                    
                    GameRegistry.registerItem(ShovelEmerald, "ShovelEmerald");
                    GameRegistry.registerItem(ShovelRuby, "ShovelRuby");
                    GameRegistry.registerItem(ShovelSapphire, "ShovelSapphire");
                    
                    GameRegistry.registerItem(PickAxeEmerald, "PickAxeEmerald");
                    GameRegistry.registerItem(PickAxeRuby, "PickAxeRuby");
                    GameRegistry.registerItem(PickAxeSapphire, "PickAxeSapphire");
                    
                    GameRegistry.registerItem(HoeEmerald, "HoeEmerald");
                    GameRegistry.registerItem(HoeRuby, "HoeRuby");
                    GameRegistry.registerItem(HoeSapphire, "HoeSapphire");
                    
                    GameRegistry.registerItem(Ruby, "Ruby");
                    
                    GameRegistry.registerItem(Sapphire, "Sapphire");
                    
                    GameRegistry.addRecipe(new ItemStack(helmetEmerald), new Object[]{"XXX", "X X", 'X', Item.emerald,
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(chestPlateEmerald), new Object[]{"X X", "XXX", "XXX", 'X', Item.emerald,
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(leggingsEmerald), new Object[]{"XXX", "X X", "X X", 'X', Item.emerald,
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(bootsEmerald), new Object[]{"X X", "X X", 'X', Item.emerald,
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(PickAxeEmerald), new Object[]{"XXX", " S ", " S ", 'X', Item.emerald, 'S', Item.stick
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(SwordEmerald), new Object[]{"X", "X", "S", 'X', Item.emerald, 'S', Item.stick
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(HoeEmerald), new Object[]{"XX", " #", " #", 'X', Item.emerald, '#', Item.stick
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(ShovelEmerald), new Object[]{"X", "#", "#", 'X', Item.emerald, '#', Item.stick
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(AxeEmerald), new Object[]{"XX", "X#", " #", 'X', Item.emerald, '#', Item.stick
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(helmetRuby), new Object[]{"XXX", "X X", 'X', Ruby,
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(chestPlateRuby), new Object[]{"X X", "XXX", "XXX", 'X', Ruby,
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(leggingsRuby), new Object[]{"XXX", "X X", "X X", 'X', Ruby,
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(bootsRuby), new Object[]{"X X", "X X", 'X', Ruby,
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(PickAxeRuby), new Object[]{"XXX", " S ", " S ", 'X', Ruby, 'S', Item.stick
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(SwordRuby), new Object[]{"X", "X", "S", 'X', Ruby, 'S', Item.stick
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(HoeRuby), new Object[]{"XX", " #", " #", 'X', Ruby, '#', Item.stick
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(ShovelRuby), new Object[]{"X", "#", "#", 'X', Ruby, '#', Item.stick
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(AxeRuby), new Object[]{"XX", "X#", " #", 'X', Ruby, '#', Item.stick
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(helmetSapphire), new Object[]{"XXX", "X X", 'X', Sapphire,
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(chestPlateSapphire), new Object[]{"X X", "XXX", "XXX", 'X', Sapphire,
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(leggingsSapphire), new Object[]{"XXX", "X X", "X X", 'X', Sapphire,
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(bootsSapphire), new Object[]{"X X", "X X", 'X', Sapphire,
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(PickAxeSapphire), new Object[]{"XXX", " S ", " S ", 'X', Sapphire, 'S', Item.stick
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(SwordSapphire), new Object[]{"X", "X", "S", 'X', Sapphire, 'S', Item.stick
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(HoeSapphire), new Object[]{"XX", " #", " #", 'X', Sapphire, '#', Item.stick
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(ShovelSapphire), new Object[]{"X", "#", "#", 'X', Sapphire, '#', Item.stick
                    });
                    
                    GameRegistry.addRecipe(new ItemStack(AxeSapphire), new Object[]{"XX", "X#", " #", 'X', Sapphire, '#', Item.stick
                    });
                    
                    }
                    
                    private void setCreativeTab(CreativeTabs tabcombat) {
                    // TODO Auto-generated method stub
                    
                    }
                    
                    @EventHandler
                    public void postInit(FMLPostInitializationEvent event)
                    {
                    
                    }
                    
                    }
                    
                    

                    Et ma classe du bloc :

                    
                    package fr.volario.mod.common;
                    
                    import net.minecraft.block.Block;
                    import net.minecraft.block.material.Material;
                    import net.minecraft.creativetab.CreativeTabs;
                    
                    public class RubyOre extends Block
                    {
                    public RubyOre(int id)
                    {
                    super(id, Material.rock);
                    this.setCreativeTab(CreativeTabs.tabBlock);
                    }
                    }
                    
                    ```</init></init></init></init></init></init>
                    1 réponse Dernière réponse Répondre Citer 0
                    • robin4002R Hors-ligne
                      robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                      dernière édition par

                      @‘Tutoriel’:

                      2000 est l’id du bloc (les ids de bloc vont de 0 à 4095, les ids de 0 à 600 sont à éviter pour ne pas avoir de conflit avec les id de minecraft)

                      Merci de lire le tutoriel en entier …

                      1 réponse Dernière réponse Répondre Citer 0
                      • A Hors-ligne
                        anguelwyvern
                        dernière édition par

                        je suis pas un pro et je peux me tromper

                        mais comme ça je dirais

                        qu’il faut tu change

                        public RubyOre(int id)
                        {
                        
                        super(id, Material.rock);
                        this.setCreativeTab(CreativeTabs.tabBlock);
                        
                        }
                        

                        par

                        public RubyOre(Material material)
                        {
                        super(Material);
                        this.setCreativeTab(CreativeTabs.tabBlock);
                        }
                        

                        en tous cas c’est comme cela qu’es ma classe 😉

                        si tu veux un exemple

                        package fr.celestiafrance.c_drone.common;
                        
                        import java.util.Random;
                        
                        import net.minecraft.block.Block;
                        import net.minecraft.block.material.Material;
                        import net.minecraft.item.Item;
                        
                        public class BlockPlatinium extends Block
                        {
                        
                        protected BlockPlatinium(Material material)
                        {
                        super(material);
                        
                        }
                        
                        public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_)
                        {
                        return c_drone.itemPlatinium;
                        }
                        }
                        
                        
                        1 réponse Dernière réponse Répondre Citer 0
                        • DiangleD Hors-ligne
                          Diangle
                          dernière édition par

                          @‘anguelwyvern’:

                          je suis pas un pro et je peux me tromper

                          mais comme ça je dirais

                          qu’il faut tu change

                          public RubyOre(int id)
                          {
                          
                          super(id, Material.rock);
                          this.setCreativeTab(CreativeTabs.tabBlock);
                          
                          }
                          

                          par

                          public RubyOre(Material material)
                          {
                          super(Material);
                          this.setCreativeTab(CreativeTabs.tabBlock);
                          }
                          

                          en tous cas c’est comme cela qu’es ma classe 😉

                          si tu veux un exemple

                          package fr.celestiafrance.c_drone.common;
                          
                          import java.util.Random;
                          
                          import net.minecraft.block.Block;
                          import net.minecraft.block.material.Material;
                          import net.minecraft.item.Item;
                          
                          public class BlockPlatinium extends Block
                          {
                          
                          protected BlockPlatinium(Material material)
                          {
                          super(material);
                          
                          }
                          
                          public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_)
                          {
                          return c_drone.itemPlatinium;
                          }
                          }
                          
                          

                          Le tuto est en 1.6 :D.

                          1 réponse Dernière réponse Répondre Citer 0
                          • A Hors-ligne
                            anguelwyvern
                            dernière édition par

                            aaah mince autant pour moi xD suis en 1.7.2 de mon coté peut être pour cela ^^

                            1 réponse Dernière réponse Répondre Citer 0
                            • 1
                            • 2
                            • 3
                            • 4
                            • 1 / 4
                            • Premier message
                              Dernier message
                            Design by Woryk
                            ContactMentions Légales

                            MINECRAFT FORGE FRANCE © 2024

                            Powered by NodeBB