MFF

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

    Entités

    Planifier Épinglé Verrouillé Déplacé Sans suite
    1.11.x
    12 Messages 4 Publieurs 2.1k Vues 1 Abonné
    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.
    • DylemD Hors-ligne
      Dylem
      dernière édition par

      Un exemple de fonction pour enregistrer ton entité :

      
      private static int entityID = 0; // On veut une ID différente pour chaque entité du mod
      
      /*
      * entityClass la classe de ton entité
      * entityName le nom de ton entité
      * trackingRange la portée jusqu'à laquelle Minecraft va actualiser l'entité
      * updateFrequency la fréquence d'actualisation
      * sendsVelocityUpdates envoyer des corrections de vitesse de l'entité
      */
      private static void registerEntity(final Class entityClass, final String entityName, final int trackingRange, final int updateFrequency, final boolean sendsVelocityUpdates) {
              final ResourceLocation registryName = new ResourceLocation(TonMod.MODID, entityName);
      
              EntityRegistry.registerModEntity(registryName, entityClass, registryName.toString(), entityID++, TonMod.instance, trackingRange, updateFrequency, sendsVelocityUpdates);
          }
      
      

      Exemple d’appel de la fonction :

      
      registerEntity(SharkEntity.class, "shark", 80, 3, true);
      
      

      Voilà 🙂

      Si je t'ai aidé, n'hésite pas à cliquer sur le nombre vert en dessous de mon image de profil, pour me le faire savoir. Ca me motive pour continuer …

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

        Dylem merci j’ai essayer t’as techinque sans grand succès maintenant plus aucun de mes items ne marche j’ai du faire une erreur quelque part je vais regarder plus attentievment pour essayer de trouver le probleme

        2017-06-29 12:24:33,370 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
        2017-06-29 12:24:33,382 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
        [12:24:33] [main/INFO] [GradleStart]: Extra: []
        [12:24:33] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/priya/.gradle/caches/minecraft/assets, --assetIndex, 1.11, --accessToken{REDACTED}, --version, 1.11, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
        [12:24:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
        [12:24:33] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
        [12:24:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
        [12:24:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
        [12:24:33] [main/INFO] [FML]: Forge Mod Loader version 13.19.1.2189 for Minecraft 1.11 loading
        [12:24:33] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_131, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_131
        [12:24:34] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
        [12:24:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
        [12:24:34] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
        [12:24:34] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
        [12:24:34] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
        [12:24:34] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
        [12:24:34] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
        [12:24:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
        [12:24:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
        [12:24:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
        [12:24:34] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
        [12:24:43] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
        [12:24:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
        [12:24:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
        [12:24:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
        [12:24:47] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
        [12:24:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
        [12:24:47] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
        2017-06-29 12:24:50,229 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
        2017-06-29 12:24:50,432 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
        2017-06-29 12:24:50,447 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
        [12:24:52] [Client thread/INFO]: Setting user: Player564
        [12:25:15] [Client thread/WARN]: Skipping bad option: lastServer:
        [12:25:16] [Client thread/INFO]: LWJGL Version: 2.9.4
        [12:25:20] [Client thread/INFO]: [STDOUT]: –-- Minecraft Crash Report ----
        // Don't be sad. I'll do better next time, I promise!
        
        Time: 29/06/17 12:25
        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.11
        Operating System: Windows 10 (amd64) version 10.0
        Java Version: 1.8.0_131, Oracle Corporation
        Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 855118336 bytes (815 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: '4.4.0 - Build 21.20.16.4475' Renderer: 'Intel(R) HD Graphics 500'
        [12:25:20] [Client thread/INFO] [FML]: MinecraftForge v13.19.1.2189 Initialized
        [12:25:21] [Client thread/INFO] [FML]: Replaced 232 ore recipes
        [12:25:22] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
        [12:25:22] [Client thread/INFO] [FML]: Searching C:\Users\priya\Downloads\programmation minecraft\forge 1.11\run\mods for mods
        [12:25:26] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
        [12:25:28] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, forge, simpleores] at CLIENT
        [12:25:28] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, forge, simpleores] at SERVER
        [12:25:34] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Simple ores
        [12:25:34] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
        [12:25:34] [Client thread/INFO] [FML]: Found 443 ObjectHolder annotations
        [12:25:34] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
        [12:25:34] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
        [12:25:34] [Client thread/INFO] [FML]: Applying holder lookups
        [12:25:34] [Client thread/INFO] [FML]: Holder lookups applied
        [12:25:35] [Client thread/INFO] [FML]: Applying holder lookups
        [12:25:35] [Client thread/INFO] [FML]: Holder lookups applied
        [12:25:35] [Client thread/INFO] [FML]: Applying holder lookups
        [12:25:35] [Client thread/INFO] [FML]: Holder lookups applied
        [12:25:36] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
        [12:25:36] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
        [12:25:37] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: UP_TO_DATE Target: null
        [12:25:37] [Client thread/INFO] [FML]: Applying holder lookups
        [12:25:37] [Client thread/INFO] [FML]: Holder lookups applied
        [12:25:37] [Client thread/INFO] [FML]: Injecting itemstacks
        [12:25:37] [Client thread/INFO] [FML]: Itemstack injection complete
        [12:25:51] [Sound Library Loader/INFO]: Starting up SoundSystem…
        [12:25:52] [Thread-8/INFO]: Initializing LWJGL OpenAL
        [12:25:52] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
        [12:25:55] [Thread-8/INFO]: OpenAL initialized.
        [12:25:55] [Sound Library Loader/INFO]: Sound engine started
        [12:26:14] [Client thread/INFO] [FML]: Max texture size: 16384
        [12:26:14] [Client thread/INFO]: Created: 16x16 textures-atlas
        [12:26:21] [Client thread/INFO] [FML]: Ignored smelting recipe with conflicting input: 1xtile.air@32767 = 1xitem.simpleores.tin@0
        [12:26:21] [Client thread/INFO] [FML]: Injecting itemstacks
        [12:26:21] [Client thread/INFO] [FML]: Itemstack injection complete
        [12:26:21] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
        [12:26:21] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Simple ores
        [12:26:33] [Client thread/INFO]: SoundSystem shutting down…
        [12:26:33] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
        [12:26:33] [Sound Library Loader/INFO]: Starting up SoundSystem…
        [12:26:33] [Thread-10/INFO]: Initializing LWJGL OpenAL
        [12:26:33] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
        [12:26:33] [Thread-10/INFO]: OpenAL initialized.
        [12:26:33] [Sound Library Loader/INFO]: Sound engine started
        [12:26:49] [Client thread/INFO] [FML]: Max texture size: 16384
        [12:26:50] [Client thread/INFO]: Created: 512x512 textures-atlas
        [12:26:53] [Client thread/WARN]: Skipping bad option: lastServer:
        [12:26:58] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
        [12:27:05] [Server thread/INFO]: Starting integrated minecraft server version 1.11
        [12:27:05] [Server thread/INFO]: Generating keypair
        [12:27:06] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:saphir_ore
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:tin_block
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:tin_ore
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:amnethyste_ore
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world priya:corncrop
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:copper_block
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:crop_corn
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:rubis_block
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:copper_ore
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:amnethyste_block
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:table
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world priya:a
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:saphir_block
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:rubis_ore
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world priya:aluminiumore
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:saphir_ore
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:tin_leggings
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:saphir_helmet
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:saphir
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:copper_shovel
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:rubis_shovel
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:saphir_boots
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:copper_leggings
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:copper_chesplate
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:copper_axe
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:tin_shovel
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:copper_ore
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:copper_helmet
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:rubis_axe
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:amnethyste_hoe
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:rubis_leggings
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:amnethyste_chestplate
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:rubis_sword
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:amnethyste_block
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:copper_hoe
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:tin_helmet
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:rubis_boots
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:amnethyste_helmet
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:copper_ingot
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:rubis_ore
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:rubis_chesplate
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:corn
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:saphir_axe
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:amnethyste_axe
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:tin_block
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:tin_ore
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:tin_pickaxe
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:tin
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:amnethyste_boots
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:saphir_sword
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:rubis_hoe
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:tin_axe
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:amnethyste_ore
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:tin_chestplate
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:copper_block
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:amnethyste_shovel
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:saphir_chesplate
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:saphir_hoe
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:saphir_pickaxe
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:rubis_block
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:tin_sword
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:amnethyste_leggings
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:saphir_shovel
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:rubis
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:amnethyste_sword
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:tin_boots
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:copper_pickaxe
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:amnethyste
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:copper_sword
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:tin_hoe
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:rubis_pickaxe
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:rubis_helmet
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:corn_seed
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:copper_boots
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:saphir_block
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:saphir_leggings
        [12:27:06] [Server thread/INFO] [FML]: Found a missing id from the world simpleores:amnethyste_pickaxe
        [12:27:06] [Server thread/ERROR] [FML]: There are unidentified mappings in this world - we are going to attempt to process anyway
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified block: simpleores:saphir_ore, id 241
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified block: simpleores:tin_block, id 246
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified block: simpleores:tin_ore, id 240
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified block: simpleores:amnethyste_ore, id 242
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified block: simpleores:copper_block, id 247
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified block: simpleores:crop_corn, id 249
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified block: simpleores:rubis_block, id 243
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified block: simpleores:copper_ore, id 238
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified block: simpleores:amnethyste_block, id 245
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified block: simpleores:saphir_block, id 244
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified block: simpleores:rubis_ore, id 239
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:saphir_ore, id 4104
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:tin_leggings, id 4123
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:saphir_helmet, id 4125
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:saphir, id 4100
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:copper_shovel, id 4135
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:rubis_shovel, id 4144
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:saphir_boots, id 4127
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:copper_leggings, id 4108
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:copper_chesplate, id 4107
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:copper_axe, id 4136
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:tin_shovel, id 4138
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:copper_ore, id 4101
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:copper_helmet, id 4106
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:rubis_axe, id 4141
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:amnethyste_hoe, id 4152
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:rubis_leggings, id 4128
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:amnethyste_chestplate, id 4115
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:rubis_sword, id 4147
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:amnethyste_block, id 4110
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:copper_hoe, id 4134
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:tin_helmet, id 4120
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:rubis_boots, id 4129
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:amnethyste_helmet, id 4116
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:copper_ingot, id 4096
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:rubis_ore, id 4102
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:rubis_chesplate, id 4130
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:corn, id 4137
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:saphir_axe, id 4154
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:amnethyste_axe, id 4151
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:tin_block, id 4114
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:tin_ore, id 4105
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:tin_pickaxe, id 4139
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:tin, id 4098
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:amnethyste_boots, id 4117
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:saphir_sword, id 4150
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:rubis_hoe, id 4142
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:tin_axe, id 4145
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:amnethyste_ore, id 4103
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:tin_chestplate, id 4122
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:copper_block, id 4111
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:amnethyste_shovel, id 4157
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:saphir_chesplate, id 4124
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:saphir_hoe, id 4155
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:saphir_pickaxe, id 4148
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:rubis_block, id 4112
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:tin_sword, id 4140
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:amnethyste_leggings, id 4118
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:saphir_shovel, id 4149
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:rubis, id 4099
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:amnethyste_sword, id 4156
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:tin_boots, id 4121
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:copper_pickaxe, id 4133
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:amnethyste, id 4097
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:copper_sword, id 4132
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:tin_hoe, id 4146
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:rubis_pickaxe, id 4143
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:rubis_helmet, id 4131
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:corn_seed, id 4119
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:copper_boots, id 4109
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:saphir_block, id 4113
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:saphir_leggings, id 4126
        [12:27:06] [Server thread/ERROR] [FML]: Unidentified item: simpleores:amnethyste_pickaxe, id 4153
        [12:27:12] [Server thread/INFO]: Stopping server
        [12:27:12] [Server thread/INFO]: Saving players
        [12:27:12] [Server thread/INFO]: Saving worlds
        [12:27:12] [Server thread/INFO] [FML]: Applying holder lookups
        [12:27:12] [Server thread/INFO] [FML]: Holder lookups applied
        [12:27:12] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.
        [12:27:14] [Client thread/INFO]: Stopping!
        [12:27:14] [Client thread/INFO]: SoundSystem shutting down…
        [12:27:14] [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
        
        

        **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
        • A Hors-ligne
          aypristyle
          dernière édition par

          Merci Dylem cela a fonctionner est-que ça te dérangerais de me filer un dernier coup de main pour pouvoir créer l’oeuf de ma créature et lui donner une texture ?
          Pourtant j’ai le bon chemin de texture mais je n’arrive pas a voir une texture allongé de deux blocs a la place g une texture blanche de 2 blocs de haut

          **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
          • DylemD Hors-ligne
            Dylem
            dernière édition par

            Ajoute juste la couleur de l’oeuf dans la fonction

            
            [font=monospaceregisterEntity][font=monospace(][font=monospaceSharkEntity][font=monospace.][font=monospace**class**][font=monospace,] [font=monospace"shark"][font=monospace,] [font=monospace80][font=monospace,] [font=monospace3][font=monospace,] [font=monospace**true, 0x0DA70B, 0x101010**][font=monospace);]
            
            
            
            

            PS: Si mes réponses t’ont aidé n’hésite pas à mettre un point de réputation (le nombre vert à gauche) 🙂

            Si je t'ai aidé, n'hésite pas à cliquer sur le nombre vert en dessous de mon image de profil, pour me le faire savoir. Ca me motive pour continuer …

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

              Merci Dylem il me manque juste un petit truc dans mon proxy voici mon code actuel

                 public void registerRender() {
                      RenderingRegistry.registerEntityRenderingHandler(SharkEntity.class, (IRenderFactory) new RenderSharkEntity(new ModelBiped(), 0.5F));
                  }
              

              Dans mon constructeur avant le ModelBIpped il me demande comme argument un rendermanager je suis aller voir dans la classe mais je n’ai pas trouvé ce que je devait mettre aurait-tu une idée ?

              **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
              • DeletedD Hors-ligne
                Deleted
                dernière édition par

                Minecraft.getMinecraft().getRenderManager()

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

                  Merci Plaigon cela m’a enlever mon erreur malgré tout la texture de mon mob n’apparaît pas est-ce normal ?

                  **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
                  • LeBossMax2L Hors-ligne
                    LeBossMax2
                    dernière édition par

                    @‘aypristyle’:

                       public void registerRender() {
                            RenderingRegistry.registerEntityRenderingHandler(SharkEntity.class, (IRenderFactory) new RenderSharkEntity(new ModelBiped(), 0.5F));
                        }
                    

                    Hum, c’est pas comme ça que tu est censé faire. Justement, c’est le IRenderFactory qui te donne accès au RenderManager. Il faut donc que tu mette le RenderManager dans le constructeur de ton RenderSharkEntity et que tu créé une class qui implémente IRenderFactory et dans le fonction, renvoyer “new RenderSharkEntity(new ModelBiped(), manager, 0.5F)”.

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

                      Bonjour, 
                      Je t’avoue ne pas trop avoir compris les changements que tu me conseilles de faire le render manager est déjà dans mon constructeur sous la forme Minecraft.getMinecraft().getRenderManager()

                      **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
                      • A Hors-ligne
                        aypristyle
                        dernière édition par

                        Bonjour je ne comprend pas très bien ce que tu veux me dire c’est ma fonction rendu qui est fausse ?

                        **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
                        • LeBossMax2L Hors-ligne
                          LeBossMax2
                          dernière édition par

                          C’est ça qui est faux:

                          RenderingRegistry.registerEntityRenderingHandler(SharkEntity.class, (IRenderFactory) new RenderSharkEntity(new ModelBiped(), 0.5F));
                          

                          Tu ne peux pas cast un Render en IRenderFactory. Tu doit créer une class qui implémente IRenderFactory <sharkentity>et dans la fonction createRenderFor, tu retourne “new RenderSharkEntity(new ModelBiped(), manager, 0.5F)”.
                          dans ta fonction registerRender, il faudra donc mettre :

                          RenderingRegistry.registerEntityRenderingHandler(SharkEntity.class, new MaClassQuiImplIRenderFactory());
                          ```</sharkentity>
                          1 réponse Dernière réponse Répondre Citer 0
                          • 1 / 1
                          • Premier message
                            Dernier message
                          Design by Woryk
                          ContactMentions Légales

                          MINECRAFT FORGE FRANCE © 2024

                          Powered by NodeBB