MFF

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

    Créer un onglet créatif

    Planifier Épinglé Verrouillé Déplacé Autres
    1.7.10
    42 Messages 14 Publieurs 21.3k Vues 4 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.
    • Phenix246P Hors-ligne
      Phenix246 Rédacteurs
      dernière édition par

      la texture doit s’appelé : «tab_TechnicalEnergy_CreativeTabs»

      J’ai oublié ce petit détail dans le tuto je le rajoute de ce pas

      Pour les livre il suffit de regarder dans la classe CreativeTabs, il y a une méthode pour tous les obtenir je crois

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

        Bonsoir,
        Pour la texture le problème persiste toujours* Mais pour les livres ils s’enlèvent si j’enlève sa

        ​    @Override
        
            public boolean hasSearchBar()
            {
                return true;
            }
        

        Sauf que je voudrai la barre de recherche.
        (je sais pas si on c’est mal compris mais je NE veut PAS les livres) 😄

        1 réponse Dernière réponse Répondre Citer 0
        • Phenix246P Hors-ligne
          Phenix246 Rédacteurs
          dernière édition par

          pour la texture envoie le retour de la console et pour les livres essaie de mettre un item dans ta table car je n’ai pas ce problème chez moi

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

            la console dit sa:

            [15:49:50] [main/INFO] [GradleStart]: username: Archerux
            
            [15:49:50] [main/INFO] [GradleStart]: Extra: []
            [15:49:50] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Dylan/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --username, Archerux]
            [15:49:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
            [15:49:50] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
            [15:49:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
            [15:49:50] [main/INFO] [FML]: Forge Mod Loader version 7.10.18.1180 for Minecraft 1.7.10 loading
            [15:49:50] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_05, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre8
            [15:49:50] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
            [15:49:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
            [15:49:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
            [15:49:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
            [15:49:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
            [15:49:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
            [15:49:51] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
            [15:49:56] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/Dylan/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.10-10.13.0.1180/forgeSrc-1.7.10-10.13.0.1180.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!
            [15:49:56] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!
            [15:49:56] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Dylan/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.10-10.13.0.1180/forgeSrc-1.7.10-10.13.0.1180.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it
            [15:49:56] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
            [15:49:56] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
            [15:49:56] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
            [15:49:57] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
            [15:49:59] [main/INFO]: Setting user: Archerux
            [15:50:02] [Client thread/INFO]: LWJGL Version: 2.9.1
            [15:50:04] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
            [15:50:04] [Client thread/INFO] [FML]: MinecraftForge v10.13.0.1180 Initialized
            [15:50:04] [Client thread/INFO] [FML]: Replaced 182 ore recipies
            [15:50:04] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
            [15:50:04] [Client thread/INFO] [FML]: Searching C:\Users\Dylan\Downloads\Minecraft\Modding\forge-1.7.10-10.13.0.1180-src\eclipse\mods for mods
            [15:50:06] [Client thread/ERROR] [FML]: 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!
            [15:50:10] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
            [15:50:11] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Technical Energy, Ressource pack Archerux.zip
            [15:50:11] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
            [15:50:11] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
            [15:50:11] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
            [15:50:11] [Client thread/INFO] [FML]: Applying holder lookups
            [15:50:11] [Client thread/INFO] [FML]: Holder lookups applied
            
            Starting up SoundSystem…
            Initializing LWJGL OpenAL
                (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
            OpenAL initialized.
            
            [15:50:12] [Sound Library Loader/INFO]: Sound engine started
            [15:50:18] [Client thread/INFO]: Created: 1024x512 textures/blocks-atlas
            [15:50:18] [Client thread/INFO]: Created: 512x512 textures/items-atlas
            méthode côté client
            [15:50:19] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
            [15:50:19] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Technical Energy, Ressource pack Archerux.zip
            [15:50:20] [Client thread/INFO]: Created: 1024x512 textures/blocks-atlas
            [15:50:20] [Client thread/INFO]: Created: 512x512 textures/items-atlas
            
            SoundSystem shutting down…
                Author: Paul Lamb, www.paulscode.com
            
            Starting up SoundSystem...
            Initializing LWJGL OpenAL
                (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
            OpenAL initialized.
            
            [15:50:21] [Sound Library Loader/INFO]: Sound engine started
            [15:50:28] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
            [15:50:28] [Server thread/INFO]: Generating keypair
            [15:50:29] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
            [15:50:29] [Server thread/INFO] [FML]: Applying holder lookups
            [15:50:29] [Server thread/INFO] [FML]: Holder lookups applied
            [15:50:29] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@78484549)
            [15:50:29] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@78484549)
            [15:50:29] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@78484549)
            [15:50:29] [Server thread/INFO]: Preparing start region for level 0
            [15:50:30] [Server thread/INFO]: Preparing spawn area: 20%
            [15:50:31] [Server thread/INFO]: Preparing spawn area: 87%
            [15:50:32] [Server thread/INFO]: Changing view distance to 12, from 10
            [15:50:33] [Netty Client IO #0/INFO] [FML]: Server protocol version 1
            [15:50:33] [Netty IO #1/INFO] [FML]: Client protocol version 1
            [15:50:33] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@7.10.18.1180,Forge@10.13.0.1180,mcp@9.05,technicalenergy@1.0.0
            [15:50:33] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
            [15:50:33] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
            [15:50:33] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
            [15:50:33] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
            [15:50:33] [Server thread/INFO]: Archerux[local:E:5c225814] logged in with entity id 188 at (328.69953495118534, 68.0, 491.356836082073)
            [15:50:33] [Server thread/INFO]: Archerux joined the game
            [15:50:35] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2539ms behind, skipping 50 tick(s)
            [15:50:39 [Client thread/WARN]: Failed to load texture: minecraft:textures/gui/container/creative_inventory/tab_TechnicalEnergy_CreativeTabs
            java.io.FileNotFoundException: minecraft:textures/gui/container/creative_inventory/tab_TechnicalEnergy_CreativeTabs]
            at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
            at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
            at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SimpleTexture.java:35) ~[SimpleTexture.class:?]
            at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
            at net.minecraft.client.renderer.texture.TextureManager.bindTexture(TextureManager.java:45) [TextureManager.class:?]
            at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:810) [GuiContainerCreative.class:?]
            at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:93) [GuiContainer.class:?]
            at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44) [InventoryEffectRenderer.class:?]
            at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:670) [GuiContainerCreative.class:?]
            at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137) [EntityRenderer.class:?]
            at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1056) [Minecraft.class:?]
            at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?]
            at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
            at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
            at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
            at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
            at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
            at GradleStart.bounce(GradleStart.java:107) [start/:?]
            at GradleStart.startClient(GradleStart.java:100) [start/:?]
            at GradleStart.main(GradleStart.java:65) [start/:?]
            

            Le block/item s’ajoute à la CrativeTab normal avec les livres qui ne bougent toujours pas

            1 réponse Dernière réponse Répondre Citer 0
            • isadorI Hors-ligne
              isador Moddeurs confirmés Modérateurs
              dernière édition par robin4002

              tu essaie de load la texture depuis les ressource de minecraft, change ton getTexture.

              Failed to load texture: minecraft:textures/gui/container/creative_inventory/tab_TechnicalEnergy_CreativeTabs

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

                J’ai pas de getTexture mais sa marcherait si je met (“TechnicalEnergy:tab_TechnicalEnergy_CreativeTabs”)?

                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

                  technicalenergy plutôt. Il faut toujours mettre en minuscule.
                  Sinon mets dans le dossier
                  assets/minecraft/textures/gui/container/creative_inventory/tab_TechnicalEnergy_CreativeTabs.png

                  1 réponse Dernière réponse Répondre Citer 0
                  • Phenix246P Hors-ligne
                    Phenix246 Rédacteurs
                    dernière édition par

                    Il ne trouve pas ta texture : minecraft:textures/gui/container/creative_inventory/tab_TechnicalEnergy_CreativeTabs

                    es-tu sûr de l’avoir mis au bon endroit ?

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

                      Le dossier :
                      minecraft:textures/gui/container/creative_inventory/tab_TechnicalEnergy_CreativeTabs
                      Doit se trouver ou?

                      • dans le dossier assets : ça marche pas
                      • Dans le dossier …/creative inventory de mon ressource pack : ça marche pas

                      et pour les livres vous pourriez montrer le code entier de la class CreativeTabs voir ce qui joue pas?probleme avec le mauvais import?

                      Je me demande si c’est pas beuggé

                      1 réponse Dernière réponse Répondre Citer 0
                      • Phenix246P Hors-ligne
                        Phenix246 Rédacteurs
                        dernière édition par

                        c’est le dossier de test ressources, la base est la même que pour tes textures :assets/modid/…

                        https://github.com/Phenix246/Blaze_Land/blob/2.0/common/fr/blaze_empire/phenix246/blaze_land/utils/CTabs.java#L118-L158

                        https://github.com/Phenix246/Blaze_Land/tree/2.0/ressources/assets/minecraft/textures/gui/container/creative_inventory

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

                          C’est bon merci la texture marche.
                          Mais vous avez une idée pour les livres?

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

                            Comment mettre une texture pour l’onglet Creative Tabs ?

                            Developpeur d'Hogsmod, un mod implémentant le Monde d'Harry Potter dans Minecraft!

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

                              C’est normal que chez moi aucun onglet créatif supplémentaire ne se crée?

                              public static CreativeTabs BetterCoalFactoryTab = new CreativeTabs("Better_Coal_Factory")
                              {
                              @Override
                              public Item getTabIconItem()
                              {
                              return Item.getItemFromBlock(BetterCoalFactory.SuperCoalOre);
                              }
                              
                              @SideOnly(Side.CLIENT)
                              public int func_151243_f()
                              {
                              return 0;
                              }
                              };
                              
                              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

                                Salut,
                                Non ce n’est pas normal.
                                Tu peux envoyer ton code complet ? Tu utilises quelle version de Forge ?

                                1 réponse Dernière réponse Répondre Citer 0
                                • N Hors-ligne
                                  natchesprout
                                  dernière édition par robin4002

                                  voila mon code

                                  package com.google.natchesprout.BetterCoalFactory.common;
                                  
                                  import net.minecraft.block.Block;
                                  import net.minecraft.block.material.Material;
                                  import net.minecraft.creativetab.CreativeTabs;
                                  import net.minecraft.item.Item;
                                  import cpw.mods.fml.common.Mod;
                                  import cpw.mods.fml.common.Mod.EventHandler;
                                  import cpw.mods.fml.common.Mod.Instance;
                                  import cpw.mods.fml.common.SidedProxy;
                                  import cpw.mods.fml.common.event.FMLInitializationEvent;
                                  import cpw.mods.fml.common.event.FMLPostInitializationEvent;
                                  import cpw.mods.fml.common.event.FMLPreInitializationEvent;
                                  import cpw.mods.fml.common.registry.GameRegistry;
                                  import cpw.mods.fml.relauncher.Side;
                                  import cpw.mods.fml.relauncher.SideOnly;
                                  
                                  @Mod(modid = "bettercoalfactory" , name ="Better Coal Factory", version = "0.0.1 Alpha" )
                                  
                                  public class BetterCoalFactory
                                  {
                                  @Instance("bettercoalfactory")
                                  public static BetterCoalFactory instance;
                                  @SidedProxy(clientSide = "com.google.natchesprout.BetterCoalFactory.client.ClientProxy", serverSide = "com.google.natchesprout.BetterCoalFactory.common.CommonProxy")
                                  public static CommonProxy proxy;
                                  
                                  public static Block SuperCoalOre;
                                  public static CreativeTabs BetterCoalFactoryTab = new CreativeTabs("Better_Coal_Factory")
                                  {
                                  @Override
                                  public Item getTabIconItem()
                                  {
                                  return Item.getItemFromBlock(BetterCoalFactory.SuperCoalOre);
                                  }
                                  
                                  @SideOnly(Side.CLIENT)
                                  public int func_151243_f()
                                  {
                                  return 0;
                                  }
                                  };
                                  
                                  @EventHandler
                                  public void preInit(FMLPreInitializationEvent event)
                                  {
                                  
                                  SuperCoalOre = new SuperCoalOre(Material.rock).setBlockName("SuperCoalOre").setBlockTextureName("bettercoalfactory:block_supercoalore").setCreativeTab(BetterCoalFactory.BetterCoalFactoryTab);
                                  GameRegistry.registerBlock(SuperCoalOre, "block_supercoalore");
                                  
                                  }
                                  
                                  private void getTabIconItem()
                                  {
                                  // TODO Auto-generated method stub
                                  
                                  }
                                  
                                  @EventHandler
                                  public void init(FMLInitializationEvent event)
                                  {
                                  proxy.registerRender();
                                  
                                  }
                                  
                                  @EventHandler
                                  public void postInit(FMLPostInitializationEvent event)
                                  {
                                  
                                  }
                                  }
                                  
                                  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

                                    Version de Forge ? Tu n’as répondu à cette question.
                                    Sur le code complet je ne vois pas de problème, hormis la convention Java qui n’est pas respecté mais ça n’a pas d’impact sur le fonctionnement du code.

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

                                      dsl version forge-1.7.10-10.13.2.1291

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

                                        qu’elle est la convention java par ailleurs?

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

                                          @‘natchesprout’:

                                          qu’elle est la convention java par ailleurs?

                                          Voici une page qui explique parfaitement ce qu’est la convention Java et comment s’en servir =D
                                          http://openclassrooms.com/forum/sujet/conventions-de-codage-en-java-64171

                                          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

                                            Je viens de regarder le changlog de forge, il n’y a qui parle des onglets créatifs. Je ne vois pas où est le problème, envoie-moi un .zip de ton dossier src.

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

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB