Créer un bloc basique



  • Sommaire

    Introduction

    Dans ce tutoriel, nous allons apprendre comment créer un bloc et lui attribuer une texture simplifiée.

    Pré-requis

    Code

    Tout d'abord, faites bien attention aux pré-requis. Vous allez devoir créer un item pour que le bloc soit entièrement créé dans le jeu, alors vous devez savoir créer un item simple !

    La classe des blocs :

    Nous allons créer une classe pour enregistrer tous nos blocs. Elle sera très petite, mais au moins, tout ne sera pas dans la classe principale. Vous devez la créer avec le nom [MODID]Blocks, en remplaçant [MODID] par votre modid, en commençant par une majuscule. Dans mon cas, ce sera TutorialBlocks.
    Voici donc la classe :

    public class TutorialBlocks
    {
        // Nous allons ici créer nos blocs.
    
        public static void setBlockName(Block block, String name)
        {
            // Nous allons ici définir le nom dans le registre du bloc, et son nom non-localisé.
        }
    }
    

    Pour créer un bloc, nous allons procéder de cette manière :

    public static final Block NOM = new ClasseDuBloc(Material);
    

    Il faut remplacer NOM par le nom de votre variable qui, comme pour les items, doit être entièrement en MAJUSCULE et les espaces remplacés par des underscores _.
    ClasseDuBloc est le nom de la classe du bloc, que nous allons créer après, et Material est le matériau que vous souhaitez utiliser. J'utiliserai pour ce tutoriel Material.ROCK.

    Chaque matériau possède ses propres attributs :

    • replaceable - Détermine si le bloc peut être remplacé par d'autres blocs lorsqu'ils sont posés, par exemple, la neige, l'herbe, ...
    • isTranslucent - Détermine si le bloc est translucide.
    • requiresNoTool - Détermine si le bloc peut être cassé sans outil, ou avec le mauvais outil.
    • mobilityFlag - Peut prendre 3 valeurs :
      • 0, qui veut dire que le bloc est normal. (=EnumPushReaction.NORMAL)
      • 1, qui veut dire que le bloc ne peut pas pousser d'autres blocs. (=EnumPushReaction.DESTROY)
      • 2, qui signifie que le bloc ne peut pas être poussé. (=EnumPushReaction.BLOCK)
    • canBurn - Détermine si le bloc peut brûler.

    Vous pouvez créer vos propres matériaux, mais je ne vous apprendrais pas comment le faire dans ce tutoriel. Je vous conseille d'ailleurs d'aller fouiller dans la classe Material, vous pourrez mieux comprendre comment sont faits les matériaux.

    Et donc, le contenu de setBlockName :

    public static void setBlockName(Block block, String name)
    {
        block.setRegistryName(ClassePrincipale.MODID, name).setUnlocalizedName(ClassePrincipale.MODID + "." + name);
    }
    

    N'oubliez pas de remplacer ClassePrincipale par le nom de votre classe principale.

    Voici donc ce que vous devez obtenir (avec des noms probablement différents) :

    public class TutorialBlocks
    {
    
        public static final Block TUTORIAL = new TutorialBlock(Material.ROCK);
    
        public static void setBlockName(Block block, String name)
        {
            block.setRegistryName(ModTutorial.MODID, name).setUnlocalizedName(ModTutorial.MODID + "." + name);
        }
    }
    

    La classe du bloc :

    Maintenant que vous avez fait ce qu'il fallait dans la classe des blocs, nous allons créer la classe du bloc.
    Vous pouvez l'appeler comme vous voulez, personnellement, j'ai opté pour TutorialBlock.

    Nous allons avoir besoin de définir deux choses.

        public static final string NAME = "tutorial_block";
    

    Nous allons utiliser NAME par la suite. "tutorial_block" sera le nom utilisé pour enregistrer le bloc dans le registre mais aussi pour le nom non-localisé, qui sera sous la forme "modid.NAME". N'oubliez pas qu'il est conseillé que la valeur de NAME soit entièrement en minuscules, et que les espaces doivent être remplacés par des underscores.

    Ensuite, nous allons définir le constructeur :

    public TutorialBlock(Material material)
    {
        super(material);
    
        TutorialBlocks.setBlockName(this, NAME);
        setResistance(5.0F);
        setHardness(3.0F);
        setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
    }
    

    La première ligne sert à appeler le constructeur parent, la seconde appelle notre fonction setBlockName que nous avons définie plus haut, avec comme bloc this et comme nom NAME. setResistance définit la résistance du bloc, c'est la résistance aux explosions. setHardness définit la vitesse de minage du bloc et setCreativeTab sert à choisir dans quel onglet on enregistre le bloc. Ici, nous l'enregistrons dans le premier onglet, où tous les blocs de construction sont présents.

    Nous en avons terminé avec le bloc. Bien sûr, vous pouvez lui donner d'autres fonctions, mais le but ici est de faire un bloc basique.

    La classe des items :

    Pour avoir l'objet dans l'inventaire, il faut avoir un Item. Nous allons donc retourner dans la classe où nous enregistrons nos items.
    À la suite de la définition de vos items, ajoutez cette ligne :

    public static final Item BLOCK_NOMDELOBJET_ITEM = new ItemBlock([MODID]Blocks.NOM).setRegistryName([MODID]Blocks.NOM.getRegistryName());
    

    Nous créons un nouvel Item de la classe ItemBlock. C'est la classe utilisée pour définir les items qui correspondent à un bloc. Nous lui donnons comme paramètre le bloc que nous avons précédemment créé, et nous lui donnons comme nom de registre le même nom que celui que nous avons attribué à notre bloc.
    Vous devez remplacer NOMDELOBJET par le nom de votre objet, [MODID] par votre modid, en commençant par une majuscule (c'est la classe où nous avons créé notre bloc) et NOM par le nom que vous avez donné à la variable dans la classe des blocs.

    Voici ce que ça donne, pour moi :

    public static final Item BLOCK_TUTORIAL_ITEM = new ItemBlock(TutorialBlocks.TUTORIAL).setRegistryName(TutorialBlocks.TUTORIAL.getRegistryName());
    

    Ensuite, dans la fonction registerItemModels(), ajoutez cette ligne :

    registerModel(BLOCK_NOMDELOBJET_ITEM, 0);
    

    N'oubliez pas de modifier le nom de la variable.

    Nous en avons terminé avec la création de l'item.

    La classe RegisteringHandler :

    Maintenant que nous en avons terminé avec la création de l'objet et de son item, nous allons devoir les enregistrer.
    Nous allons commencer avec l'enregistrement de l'item. Placez-vous dans la fonction registerItems. Vous devriez avoir cette ligne :

    event.getRegistry.registerAll(TutorialItems.TUTORIAL);
    

    Modifiez-là comme ceci :

    event.getRegistry.registerAll(TutorialItems.TUTORIAL, TutorialItems.BLOCK_TUTORIAL_ITEM);
    

    Si les noms de votre classe et de vos items sont différents, n'oubliez pas de les modifier.

    Nous allons maintenant enregistrer le bloc.

    @SubscribeEvent
    public void registerBlocks(RegistryEvent.Register <block>event)
    {
        event.getRegistry.registerAll(TutorialBlocks.TUTORIAL);
    }
    

    Encore une fois, modifiez les noms que vous avez précédemment définis.
    Dans l'ordre de l'enregistrement, les blocs seront enregistrés avant les items, c'est pourquoi je vous conseille d'écrire cette fonction avant celle pour l'enregistrement des items, comme ceci :

    public class RegisteringHandler
    {
        @SubscribeEvent
        public void registerBlocks(RegistryEvent.Register <block>event)
        {
            event.getRegistry().registerAll(TutorialBlocks.TUTORIAL);
        }
    
        @SubscribeEvent
        public void registerItems(RegistryEvent.Register event)
        {
            event.getRegistry().registerAll(TutorialItems.TUTORIAL, TutorialItems.BLOCK_TUTORIAL_ITEM);        
        }
    }
    

    Vous pouvez ouvrir le jeu, le bloc existe ! Mais... il a quelques bugs, que ça soit au niveau de l'item ou du bloc. Il faut régler ça.

    Le modèle et la texture :

    Vous vous rappelez du contenu de NAME, que nous avons défini dans la classe du bloc ? Notez-le bien, nous allons l'utiliser.
    Vous allez vous placer dans le dossier resources/assets/modid/blockstates. Remplacez modid par votre modid, évidemment.

    Nous allons créer un fichier nomdubloc.json, en remplaçant nomdubloc par le contenu de la variable NAME. Par la suite, à chaque fois que vous voyez nomdubloc, n'oubliez pas de le modifier.

    {
        "variants": {
            "normal": {
                "model": "modid:nomdubloc"
            }
        }
    }
    

    Nous n'avons besoin que de ce code. N'oubliez pas de modifier modid et nomdubloc. Nous allons donc créer le modèle que nous appelons. Il se trouve dans le dossier resources/assets/modid/models/block, et il s'appelle nomdubloc.json, lui aussi.

    {
        "parent": "block/cube_all",
        "textures": {
            "all": "modid:blocks/nomdubloc"
        }
    }
    

    Nous définissons ici la texture, qui devra se trouver dans le dossier resources/assets/modid/textures/blocks.
    Nous devons également définir le modèle de l'item, qui peut être différent de celui du bloc. Il se trouve dans resources/assets/modid/models/item. Définissez-le comme ceci :

    {
        "parent": "modid:block/nomdubloc"
    }
    

    Ici, nous ne faisons qu'utiliser le modèle du bloc, nous n'y apportons aucune modification.

    Dans vos fichiers de langue, ajoutez cette ligne :

    tile.modid.nomdubloc.name=Nom du bloc
    

    Remplacez modid par votre modid et nomdubloc par la valeur de NAME que nousa vons définie dans la classe du bloc.

    Vous pouvez lancer le jeu, en ayant placé la texture dans son dossier, et hop ! Tout est fonctionnel !

    Vous avez donc créé votre premier bloc, un bloc certes, basique, mais un bloc tout de même !

    Bonus

    Pour aller plus loin, car je ne montre ici que des modèles et textures basiques, vous pouvez consulter ce tutoriel.

    Résultat

    0_1529094783954_tutoriel bloc.png

    Crédits

    Rédaction :

    Correction :

    Inspiration :

    Creative Commons
    Ce tutoriel de Minecraft Forge France est mis à disposition selon les termes de la licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International

    retourRetour vers le sommaire des tutoriels



  • Bonjour Pchom,

    Je trouve ton tutoriel très bien fait.
    Je crois juste qu'il y a un petit oubli lors de la création de la classe de ton bloc tu as oublié de dire qu'il fallait que cette classe hérite de la classe minecraft block 😉
    Et j'aimrai savoir que dois-je mettre pour que lorsque le bloc est cassé il drop un minerai (comme avec le diamant ou la redstone par exemple)



  • Salut, tu as juste à rajouter ceci dans la classe de ton bloc

    
       @Override
       public Item getItemDropped(IBlockState state, Random rand, int fortune)
       {
           return taClasseDItem.tonItem
       }
    


  • J'ai pas de texture sur mon block xd Cette partie n'est pas claire dans le tuto



  • Moi aucune texture ne s'affiche sur mes blocs dans l'inventaire
    (J'ai forge 1.12.2-14.23.5.2838)


  • Moddeurs confirmés Rédacteurs Administrateurs

    Bonjour,
    Peux-tu envoyer les logs de ton jeu ?



  • [11:15:49] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [11:15:49] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [11:15:49] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
    [11:15:49] [main/INFO]: Forge Mod Loader version 14.23.5.2838 for Minecraft 1.12.2 loading
    [11:15:49] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 10:amd64:10.0, installed at C:\Users\jorda\Twitch\Minecraft\Install\runtime\jre-x64
    [11:15:50] [main/INFO]: Searching C:\Users\jorda\Twitch\Minecraft\Instances\Compressed\mods for mods
    [11:15:50] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [11:15:50] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [11:15:50] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [11:15:50] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [11:15:50] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [11:15:54] [main/INFO]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557
    [11:15:54] [main/INFO]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc
    [11:15:54] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [11:15:54] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [11:15:55] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
    [11:15:55] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
    [11:15:55] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    [11:15:59] [Client thread/INFO]: Setting user: JohnProgammer71
    [11:16:08] [Client thread/WARN]: Skipping bad option: lastServer:
    [11:16:08] [Client thread/INFO]: LWJGL Version: 2.9.4
    [11:16:11] [Client thread/INFO]: -- System Details --
    Details:
    	Minecraft Version: 1.12.2
    	Operating System: Windows 10 (amd64) version 10.0
    	Java Version: 1.8.0_51, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 862959328 bytes (822 MB) / 1136656384 bytes (1084 MB) up to 6442450944 bytes (6144 MB)
    	JVM Flags: 4 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx6912m -Xms256m -XX:PermSize=256m
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: 
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.14568 Compatibility Profile Context 24.20.12042.2003' Renderer: 'AMD Radeon(TM) R5 Graphics'
    [11:16:11] [Client thread/INFO]: MinecraftForge v14.23.5.2838 Initialized
    [11:16:11] [Client thread/INFO]: Starts to replace vanilla recipe ingredients with ore ingredients.
    [11:16:12] [Client thread/INFO]: Invalid recipe found with multiple oredict ingredients in the same ingredient...
    [11:16:12] [Client thread/INFO]: Replaced 1227 ore ingredients
    [11:16:14] [Client thread/INFO]: Searching C:\Users\jorda\Twitch\Minecraft\Instances\Compressed\mods for mods
    [11:16:18] [Client thread/WARN]: Mod codechickenlib is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 3.2.3.358
    [11:16:19] [Client thread/WARN]: Mod craftingtweaks is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 8.1.9
    [11:16:19] [Client thread/WARN]: Mod realdrops is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 1.2.14
    [11:16:20] [Thread-3/INFO]: Using sync timing. 200 frames of Display.update took 952163700 nanos
    [11:16:21] [Client thread/WARN]: Mod voidislandcontrol is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 1.5.3
    [11:16:21] [Client thread/INFO]: Forge Mod Loader has identified 23 mods to load
    [11:16:22] [Client thread/INFO]: Attempting connection with missing mods [minecraft, mcp, FML, forge, codechickenlib, cofhcore, cofhworld, compressed, controlling, craftingtweaks, fastleafdecay, jei, recipehandler, norecipebook, realdrops, redstoneflux, theoneprobe, thermaldynamics, thermalexpansion, thermalfoundation, tp, ts2k16, voidislandcontrol] at CLIENT
    [11:16:22] [Client thread/INFO]: Attempting connection with missing mods [minecraft, mcp, FML, forge, codechickenlib, cofhcore, cofhworld, compressed, controlling, craftingtweaks, fastleafdecay, jei, recipehandler, norecipebook, realdrops, redstoneflux, theoneprobe, thermaldynamics, thermalexpansion, thermalfoundation, tp, ts2k16, voidislandcontrol] at SERVER
    [11:16:28] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:CodeChicken Lib, FMLFileResourcePack:CoFH Core, FMLFileResourcePack:CoFH World, FMLFileResourcePack:Compressed, FMLFileResourcePack:Controlling, FMLFileResourcePack:Crafting Tweaks, FMLFileResourcePack:Fast Leaf Decay, FMLFileResourcePack:Just Enough Items, FMLFileResourcePack:NoMoreRecipeConflict, FMLFileResourcePack:No Recipe Book, FMLFileResourcePack:Realistic Item Drops, FMLFileResourcePack:Redstone Flux, FMLFileResourcePack:The One Probe, FMLFileResourcePack:Thermal Dynamics, FMLFileResourcePack:Thermal Expansion, FMLFileResourcePack:Thermal Foundation, FMLFileResourcePack:Tiny Progressions, FMLFileResourcePack:Twerk-Sim 2K16, FMLFileResourcePack:Void Island Control, Faithful 1.12.2-rv4.zip
    [11:16:29] [Client thread/INFO]: Processing ObjectHolder annotations
    [11:16:29] [Client thread/INFO]: Found 1169 ObjectHolder annotations
    [11:16:29] [Client thread/INFO]: Identifying ItemStackHolder annotations
    [11:16:29] [Client thread/INFO]: Found 0 ItemStackHolder annotations
    [11:16:30] [Client thread/INFO]: Configured a dormant chunk cache size of 0
    [11:16:30] [Forge Version Check/INFO]: [cofhworld] Starting version check at https://raw.github.com/cofh/version/master/cofhworld_update.json
    [11:16:32] [Forge Version Check/INFO]: [cofhworld] Found status: UP_TO_DATE Target: null
    [11:16:32] [Forge Version Check/INFO]: [thermalfoundation] Starting version check at https://raw.github.com/cofh/version/master/thermalfoundation_update.json
    [11:16:33] [Forge Version Check/INFO]: [thermalfoundation] Found status: UP_TO_DATE Target: null
    [11:16:33] [Forge Version Check/INFO]: [codechickenlib] Starting version check at http://chickenbones.net/Files/notification/version.php?query=forge&version=1.12&file=CodeChickenLib
    [11:16:33] [Client thread/INFO]: Registering default Feature Templates...
    [11:16:33] [Forge Version Check/INFO]: [codechickenlib] Found status: BETA Target: null
    [11:16:33] [Forge Version Check/INFO]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
    [11:16:33] [Client thread/INFO]: Registering default World Generators...
    [11:16:33] [Forge Version Check/INFO]: [forge] Found status: OUTDATED Target: 14.23.5.2847
    [11:16:33] [Forge Version Check/INFO]: [thermalexpansion] Starting version check at https://raw.github.com/cofh/version/master/thermalexpansion_update.json
    [11:16:33] [Client thread/INFO]: Verifying or creating base world generation directory...
    [11:16:33] [Client thread/INFO]: Complete.
    [11:16:34] [Forge Version Check/INFO]: [thermalexpansion] Found status: UP_TO_DATE Target: null
    [11:16:34] [Forge Version Check/INFO]: [fastleafdecay] Starting version check at http://www.olafkeijsers.net/fastleafdecay-update.json
    [11:16:34] [Forge Version Check/INFO]: [fastleafdecay] Found status: UP_TO_DATE Target: null
    [11:16:34] [Forge Version Check/INFO]: [cofhcore] Starting version check at https://raw.github.com/cofh/version/master/cofhcore_update.json
    [11:16:34] [Forge Version Check/INFO]: [cofhcore] Found status: UP_TO_DATE Target: null
    [11:16:34] [Forge Version Check/INFO]: [thermaldynamics] Starting version check at https://raw.github.com/cofh/version/master/thermaldynamics_update.json
    [11:16:34] [Forge Version Check/INFO]: [thermaldynamics] Found status: UP_TO_DATE Target: null
    [11:16:35] [Client thread/INFO]: The One Probe Detected RedstoneFlux: enabling support
    [11:16:41] [Client thread/INFO]: OBJLoader: Domain voidislandcontrol has been added.
    [11:16:41] [Client thread/INFO]: Applying holder lookups
    [11:16:41] [Client thread/INFO]: Holder lookups applied
    [11:16:42] [Client thread/INFO]: Applying holder lookups
    [11:16:42] [Client thread/INFO]: Holder lookups applied
    [11:16:42] [Client thread/INFO]: Applying holder lookups
    [11:16:42] [Client thread/INFO]: Holder lookups applied
    [11:16:42] [Client thread/INFO]: Applying holder lookups
    [11:16:42] [Client thread/INFO]: Holder lookups applied
    [11:16:42] [Client thread/INFO]: Injecting itemstacks
    [11:16:42] [Client thread/INFO]: Itemstack injection complete
    [11:16:46] [Sound Library Loader/INFO]: Starting up SoundSystem...
    [11:16:47] [Thread-5/INFO]: Initializing LWJGL OpenAL
    [11:16:47] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [11:16:50] [Thread-5/INFO]: OpenAL initialized.
    [11:16:50] [Sound Library Loader/INFO]: Sound engine started
    [11:17:03] [Client thread/INFO]: Max texture size: 16384
    [11:17:09] [Client thread/INFO]: Created: 2048x1024 textures-atlas
    [11:17:19] [Client thread/INFO]: Applying holder lookups
    [11:17:19] [Client thread/INFO]: Holder lookups applied
    [11:17:20] [Client thread/INFO]: Created: 256x128 textures-atlas
    [11:17:20] [Client thread/INFO]: Injecting itemstacks
    [11:17:20] [Client thread/INFO]: Itemstack injection complete
    [11:17:21] [Client thread/INFO]: Thermal Expansion: The One Probe Plugin Enabled.
    [11:17:22] [Client thread/INFO]: CoFH Core: Load Complete.
    [11:17:22] [Client thread/INFO]: Accumulating world generation files from: "C:\Users\jorda\Twitch\Minecraft\Instances\Compressed\config\cofh\world"
    [11:17:22] [Client thread/INFO]: Found a total of 3 world generation files.
    [11:17:25] [Client thread/INFO]: Reading world generation info from: "cofh\world\01_thermalfoundation_ores.json":
    [11:17:26] [Client thread/INFO]: Reading world generation info from: "cofh\world\02_thermalfoundation_oil.json":
    [11:17:26] [Client thread/INFO]: Reading world generation info from: "cofh\world\03_thermalfoundation_clathrates.json":
    [11:17:26] [Client thread/INFO]: CoFH World: Load Complete.
    [11:17:26] [Client thread/INFO]: Starting JEI...
    [11:17:26] [Client thread/INFO]: Registering recipe categories...
    [11:17:27] [Client thread/INFO]: Registering recipe categories took 915.7 ms
    [11:17:27] [Client thread/INFO]: Registering mod plugins...
    [11:17:28] [Client thread/INFO]: Registering mod plugins took 1.039 s
    [11:17:28] [Client thread/INFO]: Building recipe registry...
    [11:17:30] [Client thread/INFO]: Building recipe registry took 1.114 s
    [11:17:30] [Client thread/INFO]: Building ingredient list...
    [11:17:30] [Client thread/INFO]: Building ingredient list took 152.1 ms
    [11:17:30] [Client thread/INFO]: Building ingredient filter...
    [11:17:30] [Client thread/INFO]: Building ingredient filter took 603.8 ms
    [11:17:30] [Client thread/INFO]: Building bookmarks...
    [11:17:30] [Client thread/INFO]: Building bookmarks took 5.794 ms
    [11:17:30] [Client thread/INFO]: Building runtime...
    [11:17:31] [Client thread/INFO]: Building runtime took 256.8 ms
    [11:17:31] [Client thread/INFO]: Starting JEI took 5.018 s
    [11:17:31] [Client thread/INFO]: [Whitelist] Reading established Whitelist from file.
    [11:17:31] [Client thread/INFO]: Thermal Foundation: Load Complete.
    [11:17:31] [Client thread/INFO]: Thermal Expansion: Load Complete.
    [11:17:31] [Client thread/INFO]: Thermal Dynamics: Load Complete.
    [11:17:33] [Client thread/INFO]: Forge Mod Loader has successfully loaded 23 mods
    [11:17:33] [Client thread/WARN]: Skipping bad option: lastServer:
    [11:17:33] [Client thread/INFO]: Narrator library for x64 successfully loaded
    [11:17:33] [Client thread/ERROR]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
    [11:17:33] [Client thread/ERROR]: The following texture errors were found.
    [11:17:33] [Client thread/ERROR]: ==================================================
    [11:17:33] [Client thread/ERROR]:   DOMAIN compressed
    [11:17:33] [Client thread/ERROR]: --------------------------------------------------
    [11:17:34] [Client thread/ERROR]:   domain compressed is missing 1 texture
    [11:17:34] [Client thread/ERROR]:     domain compressed has 1 location:
    [11:17:34] [Client thread/ERROR]:       mod compressed resources at C:\Users\jorda\Twitch\Minecraft\Instances\Compressed\mods\Compressed-1.12.2-0.0.0.jar
    [11:17:34] [Client thread/ERROR]: -------------------------
    [11:17:34] [Client thread/ERROR]:     The missing resources for domain compressed are:
    [11:17:34] [Client thread/ERROR]:       textures/blocks/crusher.png
    [11:17:34] [Client thread/ERROR]: -------------------------
    [11:17:34] [Client thread/ERROR]:     No other errors exist for domain compressed
    [11:17:34] [Client thread/ERROR]: ==================================================
    [11:17:34] [Client thread/ERROR]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
    [11:17:41] [Server thread/INFO]: Starting integrated minecraft server version 1.12.2
    [11:17:41] [Server thread/INFO]: Generating keypair
    [11:17:41] [Server thread/INFO]: Injecting existing registry data into this server instance
    [11:17:42] [Server thread/INFO]: Applying holder lookups
    [11:17:42] [Server thread/INFO]: Holder lookups applied
    [11:17:42] [Server thread/INFO]: Loading dimension 0 (modmaker 280919 0931) (net.minecraft.server.integrated.IntegratedServer@78dd8159)
    [11:17:43] [Server thread/INFO]: Loaded 488 advancements
    [11:17:44] [Server thread/INFO]: Loading dimension -1 (modmaker 280919 0931) (net.minecraft.server.integrated.IntegratedServer@78dd8159)
    [11:17:44] [Server thread/INFO]: Loading dimension 1 (modmaker 280919 0931) (net.minecraft.server.integrated.IntegratedServer@78dd8159)
    [11:17:44] [Server thread/INFO]: Preparing start region for level 0
    [11:17:44] [Server thread/INFO]: Registering Void Island Control commands.
    [11:17:44] [Server thread/INFO]: Finished registering Void Island Control commands.
    [11:17:45] [Server thread/INFO]: Unloading dimension -1
    [11:17:45] [Server thread/INFO]: Unloading dimension 1
    [11:17:48] [Netty Local Client IO #0/INFO]: Server protocol version 2
    [11:17:48] [Netty Server IO #1/INFO]: Client protocol version 2
    [11:17:48] [Netty Server IO #1/INFO]: Client attempting to join with 23 mods : minecraft@1.12.2,ts2k16@1.2.10,FML@8.0.99.99,theoneprobe@1.4.28,thermalexpansion@5.5.4,thermaldynamics@2.5.5,realdrops@1.2.14,redstoneflux@2.1.0,norecipebook@1.2.1,cofhworld@1.3.1,recipehandler@0.13,jei@4.15.0.268,voidislandcontrol@1.5.3,cofhcore@4.6.3,forge@14.23.5.2838,thermalfoundation@2.6.3,codechickenlib@3.2.3.358,fastleafdecay@v14,mcp@9.42,compressed@0.0.0,tp@3.2.34,controlling@3.0.7,craftingtweaks@8.1.9
    [11:17:48] [Netty Server IO #1/INFO]: Skipping config sync, No mods have registered a syncable config.
    [11:17:48] [Netty Local Client IO #0/INFO]: [Netty Local Client IO #0] Client side modded connection established
    [11:17:48] [Server thread/INFO]: [Server thread] Server side modded connection established
    [11:17:48] [Server thread/INFO]: JohnProgammer71[local:E:2d432cc8] logged in with entity id 1 at (-9999.62652006483, 8.0, -9998.618086653)
    [11:17:48] [Server thread/INFO]: JohnProgammer71 joined the game
    [11:17:50] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2200ms behind, skipping 44 tick(s)
    [11:17:54] [Server thread/INFO]: Saving and pausing game...
    [11:17:54] [Server thread/INFO]: Saving chunks for level 'modmaker 280919 0931'/overworld
    [11:17:55] [Client thread/INFO]: Loaded 100 advancements
    
    

    Je vois rien de spécial, pourtant aucune texture aux blocs dans l'inventaire


  • Moddeurs confirmés Rédacteurs Administrateurs

    [11:17:34] [Client thread/ERROR]: domain compressed is missing 1 texture
    [11:17:34] [Client thread/ERROR]: domain compressed has 1 location:
    [11:17:34] [Client thread/ERROR]: mod compressed resources at C:\Users\jorda\Twitch\Minecraft\Instances\Compressed\mods\Compressed-1.12.2-0.0.0.jar
    [11:17:34] [Client thread/ERROR]: -------------------------
    [11:17:34] [Client thread/ERROR]: The missing resources for domain compressed are:
    [11:17:34] [Client thread/ERROR]: textures/blocks/crusher.png

    C'est bien celle-ci ta texture ?
    Tu peux montrer le dossier src/main/resources avec la texture visible ?



  • Toujours pas de textures, pourtant j'ai corrigé les problèmes de fichiers manquants/mal orthographiés

    Les logs si besoin:

    [17:03:07] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [17:03:07] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [17:03:07] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
    [17:03:07] [main/INFO]: Forge Mod Loader version 14.23.5.2838 for Minecraft 1.12.2 loading
    [17:03:07] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 10:amd64:10.0, installed at C:\Users\jorda\Twitch\Minecraft\Install\runtime\jre-x64
    [17:03:07] [main/INFO]: Searching C:\Users\jorda\Twitch\Minecraft\Instances\Compressed\mods for mods
    [17:03:07] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [17:03:07] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [17:03:07] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [17:03:07] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [17:03:07] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [17:03:12] [main/INFO]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557
    [17:03:12] [main/INFO]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc
    [17:03:12] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [17:03:12] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [17:03:13] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
    [17:03:13] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
    [17:03:13] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    [17:03:16] [Client thread/INFO]: Setting user: JohnProgammer71
    [17:03:24] [Client thread/WARN]: Skipping bad option: lastServer:
    [17:03:24] [Client thread/INFO]: LWJGL Version: 2.9.4
    [17:03:26] [Client thread/INFO]: -- System Details --
    Details:
    	Minecraft Version: 1.12.2
    	Operating System: Windows 10 (amd64) version 10.0
    	Java Version: 1.8.0_51, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 542476336 bytes (517 MB) / 795869184 bytes (759 MB) up to 6442450944 bytes (6144 MB)
    	JVM Flags: 4 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx6912m -Xms256m -XX:PermSize=256m
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: 
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.14568 Compatibility Profile Context 24.20.12042.2003' Renderer: 'AMD Radeon(TM) R5 Graphics'
    [17:03:26] [Client thread/INFO]: MinecraftForge v14.23.5.2838 Initialized
    [17:03:26] [Client thread/INFO]: Starts to replace vanilla recipe ingredients with ore ingredients.
    [17:03:26] [Client thread/INFO]: Invalid recipe found with multiple oredict ingredients in the same ingredient...
    [17:03:26] [Client thread/INFO]: Replaced 1227 ore ingredients
    [17:03:28] [Client thread/INFO]: Searching C:\Users\jorda\Twitch\Minecraft\Instances\Compressed\mods for mods
    [17:03:31] [Client thread/WARN]: Mod codechickenlib is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 3.2.3.358
    [17:03:32] [Client thread/WARN]: Mod craftingtweaks is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 8.1.9
    [17:03:33] [Client thread/WARN]: Mod voidislandcontrol is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 1.5.3
    [17:03:33] [Client thread/INFO]: Forge Mod Loader has identified 22 mods to load
    [17:03:33] [Thread-3/INFO]: Using sync timing. 200 frames of Display.update took 913860803 nanos
    [17:03:34] [Client thread/INFO]: Attempting connection with missing mods [minecraft, mcp, FML, forge, codechickenlib, cofhcore, cofhworld, compressed, controlling, craftingtweaks, fastleafdecay, jei, recipehandler, norecipebook, redstoneflux, theoneprobe, thermaldynamics, thermalexpansion, thermalfoundation, tp, ts2k16, voidislandcontrol] at CLIENT
    [17:03:34] [Client thread/INFO]: Attempting connection with missing mods [minecraft, mcp, FML, forge, codechickenlib, cofhcore, cofhworld, compressed, controlling, craftingtweaks, fastleafdecay, jei, recipehandler, norecipebook, redstoneflux, theoneprobe, thermaldynamics, thermalexpansion, thermalfoundation, tp, ts2k16, voidislandcontrol] at SERVER
    [17:03:40] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:CodeChicken Lib, FMLFileResourcePack:CoFH Core, FMLFileResourcePack:CoFH World, FMLFileResourcePack:Compressed, FMLFileResourcePack:Controlling, FMLFileResourcePack:Crafting Tweaks, FMLFileResourcePack:Fast Leaf Decay, FMLFileResourcePack:Just Enough Items, FMLFileResourcePack:NoMoreRecipeConflict, FMLFileResourcePack:No Recipe Book, FMLFileResourcePack:Redstone Flux, FMLFileResourcePack:The One Probe, FMLFileResourcePack:Thermal Dynamics, FMLFileResourcePack:Thermal Expansion, FMLFileResourcePack:Thermal Foundation, FMLFileResourcePack:Tiny Progressions, FMLFileResourcePack:Twerk-Sim 2K16, FMLFileResourcePack:Void Island Control, Faithful 1.12.2-rv4.zip
    [17:03:41] [Client thread/INFO]: Processing ObjectHolder annotations
    [17:03:41] [Client thread/INFO]: Found 1169 ObjectHolder annotations
    [17:03:41] [Client thread/INFO]: Identifying ItemStackHolder annotations
    [17:03:41] [Client thread/INFO]: Found 0 ItemStackHolder annotations
    [17:03:41] [Client thread/INFO]: Configured a dormant chunk cache size of 0
    [17:03:42] [Forge Version Check/INFO]: [thermaldynamics] Starting version check at https://raw.github.com/cofh/version/master/thermaldynamics_update.json
    [17:03:44] [Forge Version Check/INFO]: [thermaldynamics] Found status: UP_TO_DATE Target: null
    [17:03:44] [Forge Version Check/INFO]: [codechickenlib] Starting version check at http://chickenbones.net/Files/notification/version.php?query=forge&version=1.12&file=CodeChickenLib
    [17:03:44] [Client thread/INFO]: Registering default Feature Templates...
    [17:03:45] [Forge Version Check/INFO]: [codechickenlib] Found status: BETA Target: null
    [17:03:45] [Forge Version Check/INFO]: [cofhcore] Starting version check at https://raw.github.com/cofh/version/master/cofhcore_update.json
    [17:03:45] [Client thread/INFO]: Registering default World Generators...
    [17:03:45] [Forge Version Check/INFO]: [cofhcore] Found status: UP_TO_DATE Target: null
    [17:03:45] [Forge Version Check/INFO]: [thermalexpansion] Starting version check at https://raw.github.com/cofh/version/master/thermalexpansion_update.json
    [17:03:45] [Forge Version Check/INFO]: [thermalexpansion] Found status: UP_TO_DATE Target: null
    [17:03:45] [Forge Version Check/INFO]: [cofhworld] Starting version check at https://raw.github.com/cofh/version/master/cofhworld_update.json
    [17:03:45] [Client thread/INFO]: Verifying or creating base world generation directory...
    [17:03:45] [Client thread/INFO]: Complete.
    [17:03:45] [Forge Version Check/INFO]: [cofhworld] Found status: UP_TO_DATE Target: null
    [17:03:45] [Forge Version Check/INFO]: [fastleafdecay] Starting version check at http://www.olafkeijsers.net/fastleafdecay-update.json
    [17:03:45] [Client thread/INFO]: The One Probe Detected RedstoneFlux: enabling support
    [17:03:45] [Forge Version Check/INFO]: [fastleafdecay] Found status: UP_TO_DATE Target: null
    [17:03:45] [Forge Version Check/INFO]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
    [17:03:46] [Forge Version Check/INFO]: [forge] Found status: OUTDATED Target: 14.23.5.2847
    [17:03:46] [Forge Version Check/INFO]: [thermalfoundation] Starting version check at https://raw.github.com/cofh/version/master/thermalfoundation_update.json
    [17:03:46] [Forge Version Check/INFO]: [thermalfoundation] Found status: UP_TO_DATE Target: null
    [17:03:52] [Client thread/INFO]: OBJLoader: Domain voidislandcontrol has been added.
    [17:03:52] [Client thread/INFO]: Applying holder lookups
    [17:03:52] [Client thread/INFO]: Holder lookups applied
    [17:03:52] [Client thread/INFO]: Applying holder lookups
    [17:03:52] [Client thread/INFO]: Holder lookups applied
    [17:03:52] [Client thread/INFO]: Applying holder lookups
    [17:03:52] [Client thread/INFO]: Holder lookups applied
    [17:03:52] [Client thread/INFO]: Applying holder lookups
    [17:03:52] [Client thread/INFO]: Holder lookups applied
    [17:03:52] [Client thread/INFO]: Injecting itemstacks
    [17:03:52] [Client thread/INFO]: Itemstack injection complete
    [17:03:56] [Sound Library Loader/INFO]: Starting up SoundSystem...
    [17:03:56] [Thread-5/INFO]: Initializing LWJGL OpenAL
    [17:03:56] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [17:03:58] [Thread-5/INFO]: OpenAL initialized.
    [17:03:58] [Sound Library Loader/INFO]: Sound engine started
    [17:04:11] [Client thread/INFO]: Max texture size: 16384
    [17:04:16] [Client thread/INFO]: Created: 2048x1024 textures-atlas
    [17:04:28] [Client thread/INFO]: Applying holder lookups
    [17:04:28] [Client thread/INFO]: Holder lookups applied
    [17:04:28] [Client thread/INFO]: Created: 256x128 textures-atlas
    [17:04:29] [Client thread/INFO]: Injecting itemstacks
    [17:04:29] [Client thread/INFO]: Itemstack injection complete
    [17:04:30] [Client thread/INFO]: Thermal Expansion: The One Probe Plugin Enabled.
    [17:04:30] [Client thread/INFO]: CoFH Core: Load Complete.
    [17:04:30] [Client thread/INFO]: Accumulating world generation files from: "C:\Users\jorda\Twitch\Minecraft\Instances\Compressed\config\cofh\world"
    [17:04:30] [Client thread/INFO]: Found a total of 3 world generation files.
    [17:04:31] [Client thread/INFO]: Reading world generation info from: "cofh\world\01_thermalfoundation_ores.json":
    [17:04:31] [Client thread/INFO]: Reading world generation info from: "cofh\world\02_thermalfoundation_oil.json":
    [17:04:31] [Client thread/INFO]: Reading world generation info from: "cofh\world\03_thermalfoundation_clathrates.json":
    [17:04:31] [Client thread/INFO]: CoFH World: Load Complete.
    [17:04:31] [Client thread/INFO]: Starting JEI...
    [17:04:32] [Client thread/INFO]: Registering recipe categories...
    [17:04:33] [Client thread/INFO]: Registering recipe categories took 867.9 ms
    [17:04:33] [Client thread/INFO]: Registering mod plugins...
    [17:04:34] [Client thread/INFO]: Registering mod plugins took 1.231 s
    [17:04:34] [Client thread/INFO]: Building recipe registry...
    [17:04:35] [Client thread/INFO]: Building recipe registry took 915.2 ms
    [17:04:35] [Client thread/INFO]: Building ingredient list...
    [17:04:35] [Client thread/INFO]: Building ingredient list took 186.2 ms
    [17:04:35] [Client thread/INFO]: Building ingredient filter...
    [17:04:36] [Client thread/INFO]: Building ingredient filter took 730.4 ms
    [17:04:36] [Client thread/INFO]: Building bookmarks...
    [17:04:36] [Client thread/INFO]: Building bookmarks took 9.490 ms
    [17:04:36] [Client thread/INFO]: Building runtime...
    [17:04:36] [Client thread/INFO]: Building runtime took 243.2 ms
    [17:04:36] [Client thread/INFO]: Starting JEI took 4.883 s
    [17:04:36] [Client thread/INFO]: [Whitelist] Reading established Whitelist from file.
    [17:04:36] [Client thread/INFO]: Thermal Foundation: Load Complete.
    [17:04:36] [Client thread/INFO]: Thermal Expansion: Load Complete.
    [17:04:36] [Client thread/INFO]: Thermal Dynamics: Load Complete.
    [17:04:37] [Client thread/INFO]: Forge Mod Loader has successfully loaded 22 mods
    [17:04:37] [Client thread/WARN]: Skipping bad option: lastServer:
    [17:04:38] [Client thread/INFO]: Narrator library for x64 successfully loaded
    [17:07:26] [Server thread/INFO]: Starting integrated minecraft server version 1.12.2
    [17:07:26] [Server thread/INFO]: Generating keypair
    [17:07:26] [Server thread/INFO]: Injecting existing registry data into this server instance
    [17:07:27] [Server thread/INFO]: Applying holder lookups
    [17:07:27] [Server thread/INFO]: Holder lookups applied
    [17:07:28] [Server thread/INFO]: Loading dimension 0 (modmaker compressed 161019 1453) (net.minecraft.server.integrated.IntegratedServer@3fe1b9f1)
    [17:07:29] [Server thread/INFO]: Loaded 488 advancements
    [17:07:29] [Server thread/INFO]: Loading dimension -1 (modmaker compressed 161019 1453) (net.minecraft.server.integrated.IntegratedServer@3fe1b9f1)
    [17:07:29] [Server thread/INFO]: Loading dimension 1 (modmaker compressed 161019 1453) (net.minecraft.server.integrated.IntegratedServer@3fe1b9f1)
    [17:07:29] [Server thread/INFO]: Preparing start region for level 0
    [17:07:30] [Server thread/INFO]: Registering Void Island Control commands.
    [17:07:30] [Server thread/INFO]: Finished registering Void Island Control commands.
    [17:07:30] [Server thread/INFO]: Unloading dimension -1
    [17:07:30] [Server thread/INFO]: Unloading dimension 1
    [17:07:33] [Netty Local Client IO #0/INFO]: Server protocol version 2
    [17:07:33] [Netty Server IO #1/INFO]: Client protocol version 2
    [17:07:33] [Netty Server IO #1/INFO]: Client attempting to join with 22 mods : minecraft@1.12.2,ts2k16@1.2.10,FML@8.0.99.99,theoneprobe@1.4.28,thermalexpansion@5.5.4,thermaldynamics@2.5.5,redstoneflux@2.1.0,norecipebook@1.2.1,cofhworld@1.3.1,recipehandler@0.13,jei@4.15.0.268,voidislandcontrol@1.5.3,cofhcore@4.6.3,forge@14.23.5.2838,thermalfoundation@2.6.3,codechickenlib@3.2.3.358,fastleafdecay@v14,mcp@9.42,compressed@0.0.0,tp@3.2.34,controlling@3.0.7,craftingtweaks@8.1.9
    [17:07:33] [Netty Server IO #1/INFO]: Skipping config sync, No mods have registered a syncable config.
    [17:07:33] [Server thread/INFO]: [Server thread] Server side modded connection established
    [17:07:33] [Netty Local Client IO #0/INFO]: [Netty Local Client IO #0] Client side modded connection established
    [17:07:33] [Server thread/INFO]: JohnProgammer71[local:E:27ceee46] logged in with entity id 1 at (-9998.747251317813, 8.0, -10000.633116590909)
    [17:07:33] [Server thread/INFO]: JohnProgammer71 joined the game
    [17:07:36] [Server thread/INFO]: Saving and pausing game...
    

    Et les blocs posés ont leur texture correcte


  • Moddeurs confirmés Rédacteurs Administrateurs

    Il te manque surement l'event ModelRegistryEvent dans lequel il faut mettre ModelLoader.setCustomModelResourceLocation(item, metadata, new ModelResourceLocation(item.getRegistryName(), "inventory"));



  • J'ai bien l'évent et je mets
    ModelLoader.setCustomModelResourceLocation(<item>, meta, new ModelResourceLocation(<item>.getRegistryName(), "inventory"));
    Mais comment on passe un Bloc en Item ?
    (new ItemBlock(bloc)).setRegistryName(block.getRegstryName()) ?


  • Moddeurs confirmés Rédacteurs Administrateurs

    Item.getItemFromBlock(block)



  • J'ai noté, je testerais plus tard et je dirais ce qu'il se passe.

    EDIT Du 30/10 :
    Merci j'ai réussi, mes blocs s'affichent dans JEI et dans les inventaires

    (J'ai enregistré mes blocs avec new ItemBlock(block).setRegistryName(registryName) et j'ai enregistré les textures dans le ModelRegistryEvent avec Item.getItemFromBlock(block))


Log in to reply