1.7.x Créer un kit d'outils



  • Merci beaucoup robin, ça fonctionne à la perfection !

    PS : Je sais pas si c'est qu'une impression, mais la manière dont tu me réponds ne serais pas un peu ironique ? 😛


  • Moddeurs confirmés Rédacteurs Administrateurs

    Heu non pas du tout x)
    C'est toi qui le prends comme ça.



  • Ah, bon bah c'était juste une impression x) Encore merci 👼



  • Encor moi 😛

    J'ai suivis le mieux possible le tutoriel, mais mon jeu crahs, dans le crash report il me parlent de ma houe et de ma pelle 😕

    Voici mon crash report:

    –-- Minecraft Crash Report ----
    // On the bright side, I bought you a teddy bear!
    
    Time: 15-07-17 10:40
    Description: Initializing game
    
    java.lang.IllegalArgumentException: The name tc:item_rubis_shovel has been registered twice, for fr.teraforge.teracraft.common.ItemRubisShovel@21632bf8 and fr.teraforge.teracraft.common.ItemRubisHoe@408708a1.
    at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:402)
    at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:845)
    at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:808)
    at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:149)
    at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:137)
    at fr.teraforge.teracraft.common.ModTeraCraft.init(ModTeraCraft.java:74)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
    at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737)
    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:597)
    at net.minecraft.client.Minecraft.run(Minecraft.java:942)
    at net.minecraft.client.main.Main.main(Main.java:164)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
    at GradleStart.main(Unknown Source)
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- Head --
    Stacktrace:
    at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:402)
    at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:845)
    at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:808)
    at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:149)
    at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:137)
    at fr.teraforge.teracraft.common.ModTeraCraft.init(ModTeraCraft.java:74)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
    at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737)
    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:597)
    
    -- Initialization --
    Details:
    Stacktrace:
    at net.minecraft.client.Minecraft.run(Minecraft.java:942)
    at net.minecraft.client.main.Main.main(Main.java:164)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
    at GradleStart.main(Unknown Source)
    
    -- System Details --
    Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 8.1 (amd64) version 6.3
    Java Version: 1.8.0_45, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 850796168 bytes (811 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 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: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1490 4 mods loaded, 4 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHI mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
    UCHI FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1490-1.7.10.jar)
    UCHI Forge{10.13.4.1490} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1490-1.7.10.jar)
    UCHE tc{1.0.0} [TeraCraft] (bin)
    GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.3.12618 Compatibility Profile Context 13.251.9001.1001' Renderer: 'AMD Radeon R7 200 Series'
    Launched Version: 1.7.10
    LWJGL: 2.9.1
    OpenGL: AMD Radeon R7 200 Series GL version 4.3.12618 Compatibility Profile Context 13.251.9001.1001, ATI Technologies Inc.
    GL Caps: Using GL 1.3 multitexturing.
    Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
    Anisotropic filtering is supported and maximum anisotropy is 16.
    Shaders are available because OpenGL 2.1 is supported.
    
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: []
    Current Language: English (US)
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Anisotropic Filte
    

    ma classe principale:

    ​package fr.teraforge.teracraft.common;
    
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.item.Item;
    import net.minecraft.item.Item.ToolMaterial;
    import cpw.mods.fml.common.IWorldGenerator;
    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.teraforge.teracraft.proxy.CommonProxy;
    import net.minecraftforge.common.util.EnumHelper;
    
    @Mod(modid = "tc", name = "TeraCraft", version = "1.0.0")
    
    public class ModTeraCraft
    {
    public static final String MODID = "tc";
    
        @Instance("tc")
        public static ModTeraCraft instance;
    
        @SidedProxy(clientSide = "fr.teraforge.teracraft.proxy.ClientProxy", serverSide = "fr.teraforge.teracraft.proxy.CommonProxy")
        public static CommonProxy proxy;
    
        public static  Item itemTc;
    
        public static Block blockRubis;
    
        public static Block mineraisRubis;
    
        public static final IWorldGenerator worldgeneration = new WorldGeneration();
    
        public static Item swordRubis, pickaxeRubis, axeRubis, shovelRubis, hoeRubis;  
    
        public static ToolMaterial toolRubis = EnumHelper.addToolMaterial("toolRubis", 3, 1750, 10.0F,12.0F, 10);
    
        @EventHandler
        public void preInit(FMLPreInitializationEvent event)
        {
        itemTc = new ItemTc().setUnlocalizedName("Rubis").setTextureName(ModTeraCraft.MODID + ":Rubis").setCreativeTab(CreativeTabs.tabMaterials);
        GameRegistry.registerItem(itemTc, "Rubis");
    
        blockRubis = new BlockRubis(Material.rock).setBlockName("blockrubis").setHardness(7.0F).setResistance(18.0F).setBlockTextureName(MODID + ":block_rubis").setCreativeTab(CreativeTabs.tabBlock);
        GameRegistry.registerBlock(blockRubis, "block_rubis");
    
        mineraisRubis = new MineraisRubis(Material.rock).setBlockName("mineraisrubis").setHardness(5.0F).setResistance(18.0F).setBlockTextureName(MODID + ":minerais_rubis").setCreativeTab(CreativeTabs.tabBlock);
        GameRegistry.registerBlock(mineraisRubis, "minerais_rubis");
        }
    
        @EventHandler
        public void init(FMLInitializationEvent event)
        {
        proxy.registerRender();
    
        GameRegistry.registerWorldGenerator(worldgeneration, 0);
    
        swordRubis = new ItemRubisSword(toolRubis).setUnlocalizedName("swordRubis").setTextureName(MODID + ":LameRuby");
        pickaxeRubis = new ItemRubisPickaxe(toolRubis).setUnlocalizedName("pickaxeRubis").setTextureName(MODID + ":PiocheRubis");
        axeRubis = new ItemRubisAxe(toolRubis).setUnlocalizedName("axeRubis").setTextureName(MODID + ":HacheRubis");
        shovelRubis = new ItemRubisShovel(toolRubis).setUnlocalizedName("shovelRubis").setTextureName(MODID + ":PelleRubis");
        hoeRubis = new ItemRubisHoe(toolRubis).setUnlocalizedName("hoeRubis").setTextureName(MODID + ":HoueRubis");
    
        GameRegistry.registerItem(swordRubis, "item_rubis_sword");
        GameRegistry.registerItem(pickaxeRubis, "item_rubis_pickaxe");
        GameRegistry.registerItem(axeRubis, "item_rubis_axe");
        GameRegistry.registerItem(shovelRubis, "item_rubis_shovel");
        GameRegistry.registerItem(hoeRubis, "item_rubis_shovel");
        }
    
        @EventHandler
        public void postInit(FMLPostInitializationEvent event)
        {
    
        }
    }
    
    

    ItemRubisHoe.java:

    package fr.teraforge.teracraft.common;
    
    import net.minecraft.item.ItemHoe;
    
    public class ItemRubisHoe extends ItemHoe
    {
    
    public ItemRubisHoe(ToolMaterial material) {
    super(material);
    
    }
    
    }
    
    

    ItemRubisShovel.java:

    package fr.teraforge.teracraft.common;
    
    import net.minecraft.item.ItemSpade;
    
    public class ItemRubisShovel extends ItemSpade
    {
    
    public ItemRubisShovel(ToolMaterial material) {
    super(material);
    
    }
    
    }
    
    

    Encore une foi désolé d'user de votre aide ❤
    Bref j'espere que j'aurais la solution 🙂



  • L'initialisation des Items/blocks se fait dans le preInit. Tu as mis 2 fois le même nom :

    GameRegistry.registerItem(shovelRubis, "item_rubis_shovel");
    GameRegistry.registerItem(hoeRubis, "item_rubis_shovel");
    


  • WOW, T'A VRAIMENT UN BON OEUIL 😮



  • Non, je sais lire un crash report : "The name tc:item_rubis_shovel has been registered twice"



  • WOW, T'A VRAIMENT UN BON OEUIL 😮

    par contre, ca marche meme quand je le met dans init, c'est quoi que c'a change?


  • Moddeurs confirmés Rédacteurs Administrateurs

    Pas grand chose, mais il est mieux de le mettre dans preInit.



  • Bonjour,
    Alors voila j'ai essaye de suivre le tutoriel plusieurs fois mais a la fin toujours le même problèmes :
    La texture de l'item n'apparait pas en jeu ! Les dégâts ,la durabilité ….Tous est pris en compte sauf la texture.
    J'ai essaye avec des textures différentes , aucun changement.
    Pourriez vous m'aider ?
    Voici mon menu de gauche :
    0_1537563469747_Forgehelp.PNG


  • Moddeurs confirmés Rédacteurs Administrateurs

    Et ton code ? Les logs ? Il me faudrait aussi le json.



  • [13:26:16] [main/INFO] [GradleStart]: username: onepiecedeath@hotmail.fr
    [13:26:16] [main/INFO] [GradleStart]: Extra: []
    [13:26:16] [main/INFO] [GradleStart]: Password found, attempting login
    [13:26:16] [main/INFO]: Logging in with username & password
    [13:26:18] [main/INFO] [GradleStart]: Login Succesful!
    [13:26:18] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, [], –assetsDir, C:/Users/SCS6/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --userType, mojang, --accessToken, {REDACTED}, --version, 1.8, --uuid, fad4142154044226b116e6c1558184a3, --username, Kriksou, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
    [13:26:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [13:26:18] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [13:26:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [13:26:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
    [13:26:19] [main/INFO] [FML]: Forge Mod Loader version 8.99.182.1491 for Minecraft 1.8 loading
    [13:26:19] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jdk1.8.0_51
    [13:26:19] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [13:26:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [13:26:19] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
    [13:26:19] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [13:26:19] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [13:26:19] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [13:26:19] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [13:26:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [13:26:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [13:26:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [13:26:19] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
    [13:26:21] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [13:26:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [13:26:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [13:26:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [13:26:22] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
    [13:26:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
    [13:26:22] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    [13:26:25] [Client thread/INFO]: Setting user: Kriksou
    [13:26:30] [Client thread/INFO]: LWJGL Version: 2.9.1
    [13:26:31] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:235]: –-- Minecraft Crash Report ----
    // Don't be sad, have a hug! <3
    
    Time: 20/07/15 13:26
    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.8
    Operating System: Windows 7 (amd64) version 6.1
    Java Version: 1.8.0_51, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 861376408 bytes (821 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: 
    Loaded coremods (and transformers): 
    GL info: ' Vendor: 'Intel' Version: '2.1.0 - Build 8.15.10.1872' Renderer: 'Intel(R) 4 Series Internal Chipset'
    [13:26:31] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
    [13:26:31] [Client thread/INFO] [FML]: MinecraftForge v11.14.3.1491 Initialized
    [13:26:32] [Client thread/INFO] [FML]: Replaced 204 ore recipies
    [13:26:32] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
    [13:26:32] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
    [13:26:32] [Client thread/INFO] [FML]: Searching C:\Users\SCS6\Downloads\forge-1.8-11.14.3.1491-src\eclipse\mods for mods
    [13:26:40] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
    [13:26:40] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, mod2] at CLIENT
    [13:26:40] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, mod2] at SERVER
    [13:26:42] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Projet2
    [13:26:42] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
    [13:26:42] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations
    [13:26:42] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
    [13:26:42] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
    [13:26:42] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
    [13:26:42] [Client thread/INFO] [FML]: Applying holder lookups
    [13:26:43] [Client thread/INFO] [FML]: Holder lookups applied
    [13:26:43] [Client thread/INFO] [FML]: Injecting itemstacks
    [13:26:43] [Client thread/INFO] [FML]: Itemstack injection complete
    [13:26:44] [Sound Library Loader/INFO]: Starting up SoundSystem…
    [13:26:44] [Thread-9/INFO]: Initializing LWJGL OpenAL
    [13:26:44] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [13:26:48] [Thread-9/INFO]: OpenAL initialized.
    [13:26:48] [Sound Library Loader/INFO]: Sound engine started
    [13:26:53] [Client thread/INFO] [FML]: Max texture size: 4096
    [13:26:53] [Client thread/INFO]: Created: 16x16 textures-atlas
    [13:26:54] [Client thread/ERROR] [FML]: Model definition for location mod2:blocktrois#inventory not found
    [13:26:54] [Client thread/ERROR] [FML]: Model definition for location mod2:blocktest#inventory not found
    [13:26:55] [Client thread/INFO] [FML]: Injecting itemstacks
    [13:26:55] [Client thread/INFO] [FML]: Itemstack injection complete
    [13:26:55] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
    [13:26:55] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Projet2
    [13:26:55] [Client thread/INFO]: SoundSystem shutting down…
    [13:26:55] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
    [13:26:55] [Sound Library Loader/INFO]: Starting up SoundSystem…
    [13:26:56] [Thread-11/INFO]: Initializing LWJGL OpenAL
    [13:26:56] [Thread-11/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [13:26:56] [Thread-11/INFO]: OpenAL initialized.
    [13:26:56] [Sound Library Loader/INFO]: Sound engine started
    [13:26:58] [Client thread/INFO] [FML]: Max texture size: 4096
    [13:26:59] [Client thread/INFO]: Created: 512x512 textures-atlas
    [13:27:00] [Client thread/ERROR] [FML]: Model definition for location mod2:blocktrois#inventory not found
    [13:27:00] [Client thread/ERROR] [FML]: Model definition for location mod2:blocktest#inventory not found
    [13:27:22] [Server thread/INFO]: Starting integrated minecraft server version 1.8
    [13:27:22] [Server thread/INFO]: Generating keypair
    [13:27:22] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
    [13:27:22] [Server thread/INFO] [FML]: Applying holder lookups
    [13:27:22] [Server thread/INFO] [FML]: Holder lookups applied
    [13:27:22] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@749d5c91)
    [13:27:22] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@749d5c91)
    [13:27:22] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@749d5c91)
    [13:27:22] [Server thread/INFO]: Preparing start region for level 0
    [13:27:24] [Server thread/INFO]: Changing view distance to 6, from 10
    [13:27:27] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
    [13:27:27] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
    [13:27:27] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : mod2@1.8,FML@8.0.99.99,Forge@11.14.3.1491,mcp@9.05
    [13:27:27] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
    [13:27:27] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
    [13:27:27] [Server thread/INFO]: Kriksou[local:E:ba34114d] logged in with entity id 71 at (212.03821846249332, 4.0, -1058.9954471646965)
    [13:27:27] [Server thread/INFO]: Kriksou joined the game
    [13:27:46] [Server thread/INFO]: Saving and pausing game…
    [13:27:47] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
    [13:27:47] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
    [13:27:47] [Server thread/INFO]: Saving chunks for level 'New World'/The End
    [13:27:47] [Server thread/INFO]: Stopping server
    [13:27:47] [Server thread/INFO]: Saving players
    [13:27:47] [Server thread/INFO]: Saving worlds
    [13:27:47] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
    [13:27:47] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
    [13:27:47] [Server thread/INFO]: Saving chunks for level 'New World'/The End
    [13:27:48] [Server thread/INFO] [FML]: Unloading dimension 0
    [13:27:48] [Server thread/INFO] [FML]: Unloading dimension -1
    [13:27:48] [Server thread/INFO] [FML]: Unloading dimension 1
    [13:27:48] [Server thread/INFO] [FML]: Applying holder lookups
    [13:27:48] [Server thread/INFO] [FML]: Holder lookups applied
    [13:27:49] [Client thread/INFO]: Stopping!
    [13:27:49] [Client thread/INFO]: SoundSystem shutting down…
    [13:27:49] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    

    Merci de ta réponse rapide je te fourni le code :
    Ainsi que des Screenshots de mes classes car je ne vois pas trop ce que tu appel logs :
    La classe principale :
    0_1537565787747_CP.PNG

    La classe Item :
    0_1537565809856_CI.PNG

    J'imagine que tu parle de ce json la ?

    {
        "parent": "builtin/generated",
        "textures": {
            "layer0": "mod2:items/SuperSword"
        },
        "display": {
            "thirdperson": {
                "rotation": [ 0, 90, -35 ],
                "translation": [ 0, 1.25, -3.5 ],
                "scale": [ 0.85, 0.85, 0.85 ]
            },
            "firstperson": {
                "rotation": [ 0, -135, 25 ],
                "translation": [ 0, 4, 2 ],
                "scale": [ 1.7, 1.7, 1.7 ]
            }
        }
    }
    

    Encore une fois merci de ta réponse  😊


  • Moddeurs confirmés Rédacteurs Administrateurs

    C'est étrange car il y a aucune erreur concernant la texture ou le modèle de ton item dans les logs.
    Ta texture fait bien 16x16 ? Ta fonction registerRender dans ton item est bien appelé ?



  • Oui la texture je l'ai change 6 fois a chaque fois j'en est recrée une de 16x16 mais cela ne change rien
    Tu parle de public static void registerRender ? Si oui aucune erreur est affiche


  • Moddeurs confirmés Rédacteurs Administrateurs

    Je ne te demande pas s'il y a une erreur, je te demande si la méthode est appelé quelque part.



  • Oui oui ça c'est bon


  • Moddeurs confirmés Rédacteurs Administrateurs

    Je ne vois pas d'où ça vient alors, c'est étrange en théorie c'est bon 😕



  • Je suis maudit 😞
    EDIT : Pour une raison qui m'ai totalement inconnu j'ai décidé de crée un item et bizarrement la texture de l'épée est apparu….A n'en rien comprendre.
    :::
    Petite question la classe la classe Itemsword avec dedans public class Itemsword extends ItemSword (add constructor aussi) est elle utile ?
    :::
    :::
    J'ai quelques questions puis-je te les posées en mp ? il serait bête de recrée un topique pour ça  
    :::

    Encore merci a toi


  • Moddeurs confirmés Rédacteurs Administrateurs

    @'Kriksou':

    Petite question la classe la classe Itemsword avec dedans public class Itemsword extends ItemSword (add constructor aussi) est elle utile ?

    Laquelle ?
    @'Kriksou':

    J'ai quelques questions puis-je te les posées en mp ? il serait bête de recrée un topique pour ça

    Non. Il est mieux de créer un sujet dans la section support pour les moddeurs.



  • Je parle de ceci :
    package Items;

    import com.mod2.Reference;

    import net.minecraft.item.*;

    public class ClasseItemSword extends ItemSword
    {

    public ClasseItemSword(ToolMaterial material)
    {
    super(material);
    }

    }


Log in to reply