MFF

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

    Créer un bloc basique

    Planifier Épinglé Verrouillé Déplacé Les blocs
    1.7.x
    104 Messages 27 Publieurs 39.4k Vues 3 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.
    • S Hors-ligne
      sventus
      dernière édition par

      salut, essaye de poster sur pastebin, ou de mettre des balises quand tu mets des logs ou autre, car la, c’est ***** de lire 😕

      et oui  package sans majuscule,  class avec,    package en lien avec ton url   genre la fr.minecraftforgefrance. ……

      c’est important pour les autres, et toi tu arriveras à te retrouver plus facilement

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

        [font=Ubuntu, sans-serifBonjour j’ai un problème avec ma texture voila mon chemin d’accé “C:\Users\T-o\Desktop\Personnel\Archive Forge\src\main\resources\assets\modtem\textures\blocks\brique.png”]
        [font=Ubuntu, sans-serifC’est du 32 x 32 ]
        [font=Ubuntu, sans-serifet voilà ma class =]

        [font=Ubuntu, sans-serifpackage com.google.commando24.common;]
        
        [font=Ubuntu, sans-serifimport com.google.commando24.proxy.CommonProxy;]
        
        [font=Ubuntu, sans-serifimport cpw.mods.fml.common.Mod;]
        [font=Ubuntu, sans-serifimport cpw.mods.fml.common.Mod.EventHandler;]
        [font=Ubuntu, sans-serifimport cpw.mods.fml.common.Mod.Instance;]
        [font=Ubuntu, sans-serifimport cpw.mods.fml.common.SidedProxy;]
        [font=Ubuntu, sans-serifimport cpw.mods.fml.common.event.FMLInitializationEvent;]
        [font=Ubuntu, sans-serifimport cpw.mods.fml.common.event.FMLPostInitializationEvent;]
        [font=Ubuntu, sans-serifimport cpw.mods.fml.common.event.FMLPreInitializationEvent;]
        [font=Ubuntu, sans-serifimport cpw.mods.fml.common.registry.GameRegistry;]
        [font=Ubuntu, sans-serifimport net.minecraft.block.Block;]
        [font=Ubuntu, sans-serifimport net.minecraft.block.material.Material;]
        [font=Ubuntu, sans-serifimport net.minecraft.creativetab.CreativeTabs;]
        [font=Ubuntu, sans-serifimport net.minecraft.item.Item;]
        
        [font=Ubuntu, sans-serif@Mod(modid = "ModTEM", name = "The Evolution Of McDonald", version = "1.0.0") ]
        
        [font=Ubuntu, sans-serifpublic class ModTEM]
        [font=Ubuntu, sans-serif{]
        [font=Ubuntu, sans-serif    ]private static final Block ModTEM = null;
        [font=Ubuntu, sans-serif    ]@Instance("ModTEM")
        [font=Ubuntu, sans-serif    ]public static ModTEM instance;
        [font=Ubuntu, sans-serif    ]public static Block Barre, Brique, Route;
        
        [font=Ubuntu, sans-serif    ]@SidedProxy(clientSide = "com.google.commando24.proxy.ClientProxy", serverSide = "com.google.commando24.proxy.CommonProxy")
        [font=Ubuntu, sans-serif    ]public static CommonProxy proxy;
        
        [font=Ubuntu, sans-serif    ]@EventHandler
        [font=Ubuntu, sans-serif    ]public void preInit(FMLPreInitializationEvent event)
        [font=Ubuntu, sans-serif    ]{
        [font=Ubuntu, sans-serif        ]Barre = new Barre(Material.rock).setBlockName("Barre").setBlockTextureName(ModTEM + ":barre").setCreativeTab(CreativeTabs.tabFood);
        [font=Ubuntu, sans-serif        ]Brique = new Brique(Material.rock).setBlockName("Brique").setBlockTextureName(ModTEM + ":brique").setCreativeTab(CreativeTabs.tabFood);
        [font=Ubuntu, sans-serif        ]Route = new Route(Material.rock).setBlockName("Route").setBlockTextureName(ModTEM + ":route").setCreativeTab(CreativeTabs.tabFood);
        
        [font=Ubuntu, sans-serif        ]GameRegistry.registerBlock(Barre, "Barre");
        [font=Ubuntu, sans-serif        ]GameRegistry.registerBlock(Brique, "Brique");
        [font=Ubuntu, sans-serif        ]GameRegistry.registerBlock(Route, "Route");
        [font=Ubuntu, sans-serif    ]}
        
        [font=Ubuntu, sans-serif    ]@EventHandler
        [font=Ubuntu, sans-serif    ]public void Init(FMLInitializationEvent event)
        [font=Ubuntu, sans-serif    ]{
        [font=Ubuntu, sans-serif        ]proxy.registerRender();
        [font=Ubuntu, sans-serif    ]}
        
        [font=Ubuntu, sans-serif    @EventHandler]
        [font=Ubuntu, sans-serif    ]public void postInit(FMLPostInitializationEvent event)
        [font=Ubuntu, sans-serif    ]{
        
        [font=Ubuntu, sans-serif    ]}
        [font=Ubuntu, sans-serif}]
        
        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

          .setBlockTextureName(ModTEM + “:barre”).
          devrait être :
          .setBlockTextureName(“modtem:barre”).

          Et cette variable :
          [font=Ubuntu,sans-serifprivate static final Block ModTEM = null;

          ne devrait pas exister.]

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

            Salut ! 
            Désolé de vous déranger mais j’ai un probleme de texture, mon block est bien présent dans le jeu j’ai bien mit la texture dans le dossier blocks mais sur les log il y a écrit missing texture et je ne sais pas pourquoi la texture ne s’affiche pas je l’ai fait pour un item’ cela marche parfaitement mais pas pour le block…

            :::

            [16:41:43] [main/INFO] [GradleStart]: Extra: []
            [16:41:43] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/NicoOo/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
            [16:41:43] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
            [16:41:43] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
            [16:41:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
            [16:41:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
            [16:41:43] [main/INFO] [FML]: Forge Mod Loader version 7.99.36.1558 for Minecraft 1.7.10 loading
            [16:41:43] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_121, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_121
            [16:41:43] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
            [16:41:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
            [16:41:43] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
            [16:41:43] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
            [16:41:43] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
            [16:41:43] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
            [16:41:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
            [16:41:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
            [16:41:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
            [16:41:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
            [16:41:43] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
            [16:41:44] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
            [16:41:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
            [16:41:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
            [16:41:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
            [16:41:44] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
            [16:41:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
            [16:41:44] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
            [16:41:45] [main/INFO]: Setting user: Player696
            [16:41:46] [Client thread/INFO]: LWJGL Version: 2.9.1
            [16:41:47] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ----
            // Who set us up the TNT?
            
            Time: 28/02/17 16:41
            Description: Loading screen debug info
            
            This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
            
            A detailed walkthrough of the error, its code path and all known details is as follows:
            ---------------------------------------------------------------------------------------
            
            -- System Details --
            Details:
            Minecraft Version: 1.7.10
            Operating System: Windows 10 (amd64) version 10.0
            Java Version: 1.8.0_121, Oracle Corporation
            Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
            Memory: 783041968 bytes (746 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
            JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
            AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
            IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
            FML: 
            GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 376.53' Renderer: 'GeForce GTX 1050 Ti/PCIe/SSE2'
            [16:41:47] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
            [16:41:47] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1558 Initialized
            [16:41:47] [Client thread/INFO] [FML]: Replaced 183 ore recipies
            [16:41:47] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
            [16:41:48] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
            [16:41:48] [Client thread/INFO] [FML]: Searching C:\Users\NicoOo\Desktop\Forge\eclipse\mods for mods
            [16:41:53] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
            [16:41:53] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, nicomod] at CLIENT
            [16:41:53] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, nicomod] at SERVER
            [16:41:53] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Nico Mod
            [16:41:54] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
            [16:41:54] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
            [16:41:54] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
            [16:41:54] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
            [16:41:54] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
            [16:41:54] [Client thread/INFO] [FML]: Applying holder lookups
            [16:41:54] [Client thread/INFO] [FML]: Holder lookups applied
            [16:41:54] [Client thread/INFO] [FML]: Injecting itemstacks
            [16:41:54] [Client thread/INFO] [FML]: Itemstack injection complete
            [16:41:54] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
            [16:41:54] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
            [16:41:54] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
            [16:41:54] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
            AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
            [16:41:54] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
            [16:41:54] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
            [16:41:54] [Sound Library Loader/INFO]: Sound engine started
            [16:41:55] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
            [16:41:55] [Client thread/INFO]: Created: 16x16 textures/items-atlas
            [16:41:55] [Client thread/INFO] [FML]: Injecting itemstacks
            [16:41:55] [Client thread/INFO] [FML]: Itemstack injection complete
            [16:41:55] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
            [16:41:55] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Nico Mod
            [16:41:55] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
            [16:41:56] [Client thread/INFO]: Created: 256x256 textures/items-atlas
            [16:41:56] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
            [16:41:56] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
            [16:41:56] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
            [16:41:56] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
            [16:41:56] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
            [16:41:56] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
            [16:41:56] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
            [16:41:56] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
            [16:41:56] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
            [16:41:56] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
            [16:41:56] [Sound Library Loader/INFO]: Sound engine started
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found.
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN minecraft
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: –------------------------------------------------
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]:   domain minecraft is missing 1 texture
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]:     domain minecraft has 3 locations:
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]:       unknown resourcepack type net.minecraft.client.resources.DefaultResourcePack : Default
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]:       mod FML resources at C:\Users\NicoOo\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.4.1558-1.7.10\forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]:       mod Forge resources at C:\Users\NicoOo\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.4.1558-1.7.10\forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain minecraft are:
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/blocks/nicomodnico_block.png
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain minecraft
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN nicomod
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: –------------------------------------------------
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]:   domain nicomod is missing 1 texture
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]:     domain nicomod has 1 location:
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]:       mod nicomod resources at C:\Users\NicoOo\Desktop\Forge\bin
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain nicomod are:
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/item_nico2.png
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain nicomod
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
            [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
            

            :::

            L’item_nico2 je ne lui ai pas mit de texture mais pour le block si et ca m’affiche les meme message pour les deux.

            :::

            package fr.nicobt10.nico.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 fr.nicobt10.nico.proxy.CommonProxy;
            
            @Mod(modid = "nicomod", name = "Nico Mod", version = "1.0.0")
            public class ModNico
            {
                public static final String MODID = "nicomod";
                @Instance(MODID)
                public static ModNico instance;
            
                @SidedProxy(clientSide = "fr.nicobt10.nico.proxy.ClientProxy", serverSide = "fr.nicobt10.nico.proxy.CommonProxy")
                public static CommonProxy proxy;
            
                public static Item itemNico, itemNico2;
                public static Block blockNico;
                @EventHandler
                public void preInit(FMLPreInitializationEvent event)
                {
                    itemNico = new ItemNico().setUnlocalizedName("itemNico").setTextureName(ModNico.MODID + ":item_nico").setCreativeTab(CreativeTabs.tabMaterials);
                    itemNico2 = new ItemNico().setUnlocalizedName("itemNico2").setTextureName(ModNico.MODID + ":item_nico2").setCreativeTab(CreativeTabs.tabMaterials);
            
                    GameRegistry.registerItem(itemNico, "item_nico");
                    GameRegistry.registerItem(itemNico2, "item_nico2");
            
                    blockNico = new BlockNico(Material.rock).setBlockName("Nico").setBlockTextureName(MODID + "nico_block").setCreativeTab(CreativeTabs.tabBlock);
            
                    GameRegistry.registerBlock(blockNico, "block_nico");
                }
            
                @EventHandler
                public void init(FMLInitializationEvent event)
                {
                    proxy.registerRender();
                }
            
                @EventHandler
                public void postInit(FMLPostInitializationEvent event)
                {
            
                }
            }
            

            :::

            :::

            package fr.nicobt10.nico.common;
            
            import net.minecraft.block.Block;
            import net.minecraft.block.material.Material;
            
            public class BlockNico extends Block
            {
            
                protected BlockNico(Material material)
                {
                    super(material);
                }
            
            }
            
            

            :::

            Merci beaucoup d’avance et comme d’habitude super tuto !

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

              Utilise les balises [ java ] pour ton code, même à l’intérieur d’un spoiler. Ça nous permet d’avoir des couleurs, et ton code est nettement plus lisible comme ça.

              Edit : Ce n’est pas très important, mais il n’est pas conseillé d’avoir des noms non-localisés utilisant des majuscules. Donc ton setBlockName(“Nico”) devrait être setBlockName(“nico”)

              Edit 2 : Merci, avec les couleurs, le problème se repère tout de suite :

              .setBlockTextureName(MODID + "nico_block")
              ``` devrait être ```java
              .setBlockTextureName(MODID + ":nico_block")
              

              > *Si vous ne pouvez expliquer un concept à un enfant de six ans, c’est que vous ne le comprenez pas c…

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

                @‘@Pchom’:

                Utilise les balises [ java ] pour ton code, même à l’intérieur d’un spoiler. Ça nous permet d’avoir des couleurs, et ton code est nettement plus lisible comme ça.

                Edit : Ce n’est pas très important, mais il n’est pas conseillé d’avoir des noms non-localisés utilisant des majuscules. Donc ton setBlockName(“Nico”) devrait être setBlockName(“nico”)

                Edit 2 : Merci, avec les couleurs, le problème se repère tout de suite :

                .setBlockTextureName(MODID + "nico_block")
                ``` devrait être ```java
                .setBlockTextureName(MODID + ":nico_block")
                

                Merci beaucoup et je suis plus qu’un débutant dans le modding donc merci beaucoup de votre aide et de vos réponces si rapide à mes questionts !

                Bonne journée !

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

                  Pas de problème, bonne continuation ! :3

                  > *Si vous ne pouvez expliquer un concept à un enfant de six ans, c’est que vous ne le comprenez pas c…

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

                    J’ai une erreur ici que je ne comprend pas :

                    http://www.noelshack.com/2017-12-1490480612-capture.png

                    Pouvez vous m’aider ?

                    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

                      Il faut importer Material. (ctrl + shift + o).

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

                        Je n’arrive pas à insérer une texture

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

                          @‘Freezer’:

                          Je n’arrive pas à insérer une texture

                          Tu es en qu’elle version ?

                          **Je suis un membre apprécié et joueur, j'ai déjà obtenu 1[ point de réputation./…

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

                            1.7.10 j’ai fait la texture du bloc en 16x16 mais je ne sais pas où la mettre pour qu’elle s’importe sur mon bloc

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

                              Normalement tu dois mettre ta texture dans assets/modid/textures/blocks

                              **Je suis un membre apprécié et joueur, j'ai déjà obtenu 1[ point de réputation./…

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

                                ça me met une erreur dans la console :

                                [14:40:47] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
                                [14:40:47] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found.
                                [14:40:47] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
                                [14:40:47] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN compleatcraft
                                [14:40:47] [Client thread/ERROR] [TEXTURE ERRORS]: –------------------------------------------------
                                [14:40:47] [Client thread/ERROR] [TEXTURE ERRORS]:   domain compleatcraft is missing 1 texture
                                [14:40:47] [Client thread/ERROR] [TEXTURE ERRORS]:     domain compleatcraft is missing a resource manager - it is probably a side-effect of automatic texture processing
                                [14:40:47] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
                                [14:40:47] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain compleatcraft are:
                                [14:40:47] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/blocks/minerai_eragium.png
                                [14:40:47] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
                                [14:40:47] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain compleatcraft
                                [14:40:47] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
                                [14:40:47] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
                                
                                1 réponse Dernière réponse Répondre Citer 0
                                • LavaPowerL Hors-ligne
                                  LavaPower
                                  dernière édition par

                                  Il ne trouve pas le fichier minerai_eragium.png qui doit être là : assets/MODID/textures/blocks/minerai_eragium.png

                                  Github : http://github.com/LavaPower

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

                                    @‘LavaPower’:

                                    Il ne trouve pas le fichier minerai_eragium.png qui doit être là : assets/MODID/textures/blocks/minerai_eragium.png

                                    Je n’ai pas le fichier “MODID”  😞

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

                                      C’est normal MODID c’est l’identifiant de ton mod que tu as défini dans ta classe principale

                                      **Je suis un membre apprécié et joueur, j'ai déjà obtenu 1[ point de réputation./…

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

                                        Ah ok mais quel est le chemin pour accéder a assets car moi dans forge/src/main/resources j’ai juste en_US.lang et mcmode.info

                                        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

                                          Dans src/main/resources tu dois créé un dossier assets (s’il n’existe pas déjà) puis un dossier compleatcraft puis un dossier textures et enfin un dossier blocks dans lequel tu dois mettre ta texture.

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

                                            @‘robin4002’:

                                            Dans src/main/resources tu dois créé un dossier assets (s’il n’existe pas déjà) puis un dossier compleatcraft puis un dossier textures et enfin un dossier blocks dans lequel tu dois mettre ta texture.

                                            cela met met toujours une erreur de texture :

                                            [15:55:15] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
                                            [15:55:15] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found.
                                            [15:55:15] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
                                            [15:55:15] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN compleatcraft
                                            [15:55:15] [Client thread/ERROR] [TEXTURE ERRORS]: –------------------------------------------------
                                            [15:55:15] [Client thread/ERROR] [TEXTURE ERRORS]:   domain compleatcraft is missing 1 texture
                                            [15:55:15] [Client thread/ERROR] [TEXTURE ERRORS]:     domain compleatcraft is missing a resource manager - it is probably a side-effect of automatic texture processing
                                            [15:55:15] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
                                            [15:55:15] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain compleatcraft are:
                                            [15:55:15] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/blocks/minerai_eragium.png
                                            [15:55:15] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
                                            [15:55:15] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain compleatcraft
                                            [15:55:15] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
                                            [15:55:15] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
                                            
                                            1 réponse Dernière réponse Répondre Citer 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 2 / 6
                                            • Premier message
                                              Dernier message
                                            Design by Woryk
                                            ContactMentions Légales

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB