MFF

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

    Supprimer des mobs d'un autre mod

    Planifier Épinglé Verrouillé Déplacé Résolu Anciennes versions
    1.5.2
    24 Messages 5 Publieurs 11.7k Vues 1 Watching
    Charger plus de messages
    • Du plus ancien au plus récent
    • Du plus récent au plus ancien
    • Les plus votés
    Répondre
    • Répondre à l'aide d'un nouveau sujet
    Se connecter pour répondre
    Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
    • AmaA Hors-ligne
      Ama
      dernière édition par

      Bonjour à tous !

      Je développe un mod pour mon serveur et je cherche à savoir si il est possible de supprimer le spawn des mobs d’un autre mod (ex: MoCreature) et si grâce à une fonction similaire il est posible de faire de même pour “écraser” ou supprimer des block ou item d’un mod sans pour autant en avoir les sources.

      Je sais qu’il est possible de supprimer le spawn des mob en vanilla grâce à ‘‘EntityJoinWorldEvent’’ donc voilà…

      J’espère que quelqu’un m’éclairera à ce sujet !

      Cordialement -ZeAmateis-

      Si je t'ai filé un coup de main n'oublie pas le + / -
      Par contre évite les demandes d'aides en MP, tu sera sympa'

      La JavaDoc c'est comme le PQ, ça sert à ce démerder tous seul. -Victor Hugo- 2017

      Une superbe API pour animer vos super modèles CraftStudio dans Minecraft !

      1 réponse Dernière réponse Répondre Citer 0
      • robin4002R Hors-ligne
        robin4002 Moddeurs confirmés Rédacteurs Administrateurs
        dernière édition par

        EntityRegistry.removeSpawn aussi pour enlever un spawn.

        Mais avec mo creature, tu peux régler tout les spawn via le fichier de config (dans .minecraft/config/mocreature) donc pas besoin de t’embêter à faire un mod pour ça.

        Pour écraser un bloc
        Block.blockList[id] = null;
        Pour un item :
        Item.itemList[id] = null;
        Par contre il est mieux de le redéclarer après :
        Item.itemList[id] = new OtherItem(……
        Car si tu le laisse null, si quelque part dans le code du mod il y a ça :
        ClassePrincipale.nomDelItem.itemID ça va faire un NPE …

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

          Merci mais pour un autre mod de mobs qui n’a pas de réglage de spawn, il y a une solution ?

          Et pour les blocs et items c’est fait pour les autres mod ? Pas pour du vanilla juste ?

          Si je t'ai filé un coup de main n'oublie pas le + / -
          Par contre évite les demandes d'aides en MP, tu sera sympa'

          La JavaDoc c'est comme le PQ, ça sert à ce démerder tous seul. -Victor Hugo- 2017

          Une superbe API pour animer vos super modèles CraftStudio dans Minecraft !

          1 réponse Dernière réponse Répondre Citer 0
          • Superloup10S Hors-ligne
            Superloup10 Modérateurs
            dernière édition par

            Ce code sert à détecter un mod.

            if(Loader.getModLoaded("modid"))
            

            remplace modid par le modid du mod en question.
            Ensuite,

            EntityRegistry.removeSpawn(Class du mob, EnumCreatureType, BiomeGenBase);
            

            pour enlever le spawn naturel d’une entitée.

            [EDIT]Doublé par robin4002.

            Si vous souhaitez me faire un don, il vous suffit de cliquer sur le bouton situé en dessous.

            Je suis un membre apprécié et joueur, j'ai déjà obtenu 17 points de réputation.

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

              L’erreur est normale au niveau de (Class du mob, …) ?

              Si je t'ai filé un coup de main n'oublie pas le + / -
              Par contre évite les demandes d'aides en MP, tu sera sympa'

              La JavaDoc c'est comme le PQ, ça sert à ce démerder tous seul. -Victor Hugo- 2017

              Une superbe API pour animer vos super modèles CraftStudio dans Minecraft !

              1 réponse Dernière réponse Répondre Citer 0
              • kevin_68K Hors-ligne
                kevin_68 Moddeurs confirmés
                dernière édition par

                ……
                Et bien oui, tu doit mettre le nom de la classe du mob concerné, exemple: EntityPig.class


                Mettez à jours vers la dernière version stable (1.8.9 voir même…

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

                  Oui mais pour un autre mod qui rajoute des mobs ? Pas du vanilla

                  Si je t'ai filé un coup de main n'oublie pas le + / -
                  Par contre évite les demandes d'aides en MP, tu sera sympa'

                  La JavaDoc c'est comme le PQ, ça sert à ce démerder tous seul. -Victor Hugo- 2017

                  Une superbe API pour animer vos super modèles CraftStudio dans Minecraft !

                  1 réponse Dernière réponse Répondre Citer 0
                  • Superloup10S Hors-ligne
                    Superloup10 Modérateurs
                    dernière édition par

                    C’est pareil, pour savoir le nom des class des entitée, tu prends l’archive de mocreature, tu l’ouvres et tu recherches les .class correspondant aux entitées.

                    Si vous souhaitez me faire un don, il vous suffit de cliquer sur le bouton situé en dessous.

                    Je suis un membre apprécié et joueur, j'ai déjà obtenu 17 points de réputation.

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

                      Voilà comment est l’erreur http://puu.sh/5kYNt.png

                      [Edit] Et…

                      :::

                      2013-11-17 13:59:29 [Infos] [ForgeModLoader] Forge Mod Loader version 5.2.23.738 for Minecraft 1.5.2 loading
                      2013-11-17 13:59:29 [Infos] [ForgeModLoader] Java is Java HotSpot™ Client VM, version 1.7.0_45, running on Windows 7:x86:6.1, installed at C:\Program Files (x86)\Java\jre7
                      2013-11-17 13:59:29 [Infos] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                      2013-11-17 13:59:31 [Infos] [STDOUT] 229 recipes
                      2013-11-17 13:59:31 [Infos] [STDOUT] 27 achievements
                      2013-11-17 13:59:31 [Infos] [Minecraft-Client] Setting user: Player366
                      2013-11-17 13:59:31 [Infos] [STDOUT] (Session ID is -)
                      2013-11-17 13:59:31 [Infos] [STDERR] Client asked for parameter: server
                      2013-11-17 13:59:31 [Infos] [Minecraft-Client] LWJGL Version: 2.4.2
                      2013-11-17 13:59:32 [Infos] [MinecraftForge] Attempting early MinecraftForge initialization
                      2013-11-17 13:59:32 [Infos] [STDOUT] MinecraftForge v7.8.1.738 Initialized
                      2013-11-17 13:59:32 [Infos] [ForgeModLoader] MinecraftForge v7.8.1.738 Initialized
                      2013-11-17 13:59:32 [Infos] [STDOUT] Replaced 85 ore recipies
                      2013-11-17 13:59:32 [Infos] [MinecraftForge] Completed early MinecraftForge initialization
                      2013-11-17 13:59:32 [Infos] [ForgeModLoader] Reading custom logging properties from C:\Users\Administrateur\Desktop\Modding\JAVA\MCP ViruZ BaseMod\jars\config\logging.properties
                      2013-11-17 13:59:32 [Désactivé] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
                      2013-11-17 13:59:32 [Infos] [ForgeModLoader] Searching C:\Users\Administrateur\Desktop\Modding\JAVA\MCP ViruZ BaseMod\jars\mods for mods
                      2013-11-17 13:59:34 [Infos] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
                      2013-11-17 13:59:34 [Infos] [mcp] Activating mod mcp
                      2013-11-17 13:59:34 [Infos] [FML] Activating mod FML
                      2013-11-17 13:59:34 [Infos] [Forge] Activating mod Forge
                      2013-11-17 13:59:34 [Infos] [ViruZ] Activating mod ViruZ
                      2013-11-17 13:59:34 [Infos] [ForgeModLoader] Registering Forge Packet Handler
                      2013-11-17 13:59:34 [Infos] [ForgeModLoader] Succeeded registering Forge Packet Handler
                      2013-11-17 13:59:34 [Infos] [ForgeModLoader] Configured a dormant chunk cache size of 0
                      2013-11-17 13:59:34 [Infos] [STDOUT]
                      2013-11-17 13:59:34 [Infos] [STDOUT] Starting up SoundSystem…
                      2013-11-17 13:59:34 [Infos] [STDOUT] Initializing LWJGL OpenAL
                      2013-11-17 13:59:34 [Infos] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
                      2013-11-17 13:59:34 [Infos] [STDOUT] OpenAL initialized.
                      2013-11-17 13:59:35 [Infos] [STDOUT]
                      2013-11-17 13:59:35 [Avertissement] [Minecraft-Client] TextureManager.createTexture called for file textures/blocks/phareOn.png, but that file does not exist. Ignoring.
                      2013-11-17 13:59:35 [Avertissement] [Minecraft-Client] TextureManager.createTexture called for file textures/blocks/phareOff.png, but that file does not exist. Ignoring.
                      2013-11-17 13:59:35 [Infos] [ForgeModLoader] Forge Mod Loader has detected an older LWJGL version, new advanced texture animation features are disabled
                      2013-11-17 13:59:35 [Infos] [ForgeModLoader] Not using advanced OpenGL 4.3 advanced capability for animations : OpenGL 4.3 is not available
                      2013-11-17 13:59:35 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt
                      2013-11-17 13:59:35 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt
                      2013-11-17 13:59:35 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt
                      2013-11-17 13:59:35 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt
                      2013-11-17 13:59:35 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt
                      2013-11-17 13:59:35 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt
                      2013-11-17 13:59:35 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/water.txt
                      2013-11-17 13:59:35 [Infos] [Minecraft-Client] Found animation info for: textures/items/clock.txt
                      2013-11-17 13:59:35 [Infos] [Minecraft-Client] Found animation info for: textures/items/compass.txt
                      2013-11-17 13:59:35 [Infos] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
                      2013-11-17 13:59:35 [Avertissement] [Minecraft-Client] TextureManager.createTexture called for file textures/blocks/phareOn.png, but that file does not exist. Ignoring.
                      2013-11-17 13:59:35 [Avertissement] [Minecraft-Client] TextureManager.createTexture called for file textures/blocks/phareOff.png, but that file does not exist. Ignoring.
                      2013-11-17 13:59:36 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt
                      2013-11-17 13:59:36 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt
                      2013-11-17 13:59:36 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt
                      2013-11-17 13:59:36 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt
                      2013-11-17 13:59:36 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt
                      2013-11-17 13:59:36 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt
                      2013-11-17 13:59:36 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/water.txt
                      2013-11-17 13:59:36 [Infos] [Minecraft-Client] Found animation info for: textures/items/clock.txt
                      2013-11-17 13:59:36 [Infos] [Minecraft-Client] Found animation info for: textures/items/compass.txt
                      2013-11-17 13:59:39 [Infos] [Minecraft-Server] Starting integrated minecraft server version 1.5.2
                      2013-11-17 13:59:39 [Infos] [Minecraft-Server] Generating keypair
                      2013-11-17 13:59:39 [Infos] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@504032)
                      2013-11-17 13:59:39 [Infos] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@504032)
                      2013-11-17 13:59:39 [Infos] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@504032)
                      2013-11-17 13:59:39 [Infos] [Minecraft-Server] Preparing start region for level 0
                      2013-11-17 13:59:39 [Infos] [STDERR] java.lang.Error: Unresolved compilation problems:
                      2013-11-17 13:59:39 [Infos] [STDERR] The method removeSpawn(Class, EnumCreatureType, BiomeGenBase…) in the type EntityRegistry is not applicable for the arguments (Class<mocentityhellrat>, EnumCreatureType, BiomeGenBase)
                      2013-11-17 13:59:39 [Infos] [STDERR] MoCEntityHellRat cannot be resolved to a type
                      2013-11-17 13:59:39 [Infos] [STDERR]
                      2013-11-17 13:59:39 [Infos] [STDERR] at zeamateis.viruz.manage.EntityJoinWorldManage.onEntitySpawn(EntityJoinWorldManage.java:54)
                      2013-11-17 13:59:39 [Infos] [STDERR] at net.minecraftforge.event.ASMEventHandler_6_EntityJoinWorldManage_onEntitySpawn_EntityJoinWorldEvent.invoke(.dynamic)
                      2013-11-17 13:59:39 [Infos] [STDERR] at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
                      2013-11-17 13:59:39 [Infos] [STDERR] at net.minecraftforge.event.EventBus.post(EventBus.java:108)
                      2013-11-17 13:59:39 [Infos] [STDERR] at net.minecraft.world.World.addLoadedEntities(World.java:3736)
                      2013-11-17 13:59:39 [Infos] [STDERR] at net.minecraft.world.chunk.Chunk.onChunkLoad(Chunk.java:1073)
                      2013-11-17 13:59:39 [Infos] [STDERR] at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
                      2013-11-17 13:59:39 [Infos] [STDERR] at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:282)
                      2013-11-17 13:59:39 [Infos] [STDERR] at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:88)
                      2013-11-17 13:59:39 [Infos] [STDERR] at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:105)
                      2013-11-17 13:59:39 [Infos] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:431)
                      2013-11-17 13:59:39 [Infos] [STDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
                      2013-11-17 13:59:39 [Grave] [Minecraft-Server] Encountered an unexpected exception Error
                      java.lang.Error: Unresolved compilation problems:
                      The method removeSpawn(Class, EnumCreatureType, BiomeGenBase…) in the type EntityRegistry is not applicable for the arguments (Class<mocentityhellrat>, EnumCreatureType, BiomeGenBase)
                      MoCEntityHellRat cannot be resolved to a type

                      at zeamateis.viruz.manage.EntityJoinWorldManage.onEntitySpawn(EntityJoinWorldManage.java:54)
                      at net.minecraftforge.event.ASMEventHandler_6_EntityJoinWorldManage_onEntitySpawn_EntityJoinWorldEvent.invoke(.dynamic)
                      at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
                      at net.minecraftforge.event.EventBus.post(EventBus.java:108)
                      at net.minecraft.world.World.addLoadedEntities(World.java:3736)
                      at net.minecraft.world.chunk.Chunk.onChunkLoad(Chunk.java:1073)
                      at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
                      at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:282)
                      at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:88)
                      at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:105)
                      at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:431)
                      at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
                      2013-11-17 13:59:39 [Grave] [Minecraft-Server] This crash report has been saved to: C:\Users\Administrateur\Desktop\Modding\JAVA\MCP ViruZ BaseMod\jars.\crash-reports\crash-2013-11-17_13.59.39-server.txt
                      2013-11-17 13:59:39 [Infos] [Minecraft-Server] Stopping server
                      2013-11-17 13:59:39 [Infos] [Minecraft-Server] Saving players
                      2013-11-17 13:59:39 [Infos] [Minecraft-Server] Saving worlds
                      2013-11-17 13:59:39 [Infos] [Minecraft-Server] Saving chunks for level ‘New World’/Overworld
                      2013-11-17 13:59:39 [Infos] [Minecraft-Server] Saving chunks for level ‘New World’/Nether
                      2013-11-17 13:59:39 [Infos] [Minecraft-Server] Saving chunks for level ‘New World’/The End
                      2013-11-17 13:59:39 [Infos] [ForgeModLoader] Unloading dimension 0
                      2013-11-17 13:59:39 [Infos] [ForgeModLoader] Unloading dimension -1
                      2013-11-17 13:59:39 [Infos] [ForgeModLoader] Unloading dimension 1
                      2013-11-17 13:59:39 [Infos] [ForgeModLoader] The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.

                      :::</mocentityhellrat></mocentityhellrat>

                      Si je t'ai filé un coup de main n'oublie pas le + / -
                      Par contre évite les demandes d'aides en MP, tu sera sympa'

                      La JavaDoc c'est comme le PQ, ça sert à ce démerder tous seul. -Victor Hugo- 2017

                      Une superbe API pour animer vos super modèles CraftStudio dans Minecraft !

                      1 réponse Dernière réponse Répondre Citer 0
                      • robin4002R Hors-ligne
                        robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                        dernière édition par

                        Tu peux pas mettre la classe directement comme ça, vue que tu n’as pas le mod dans la workspace.
                        Il faut utiliser la réflexion :

                        try
                        {
                        Class ClassDuMob = (Item)Class.forName("package.de.la.class.Nom");
                        if(Loader.isModLoaded("MoCreature"))
                        {
                        EntityRegistry.removeSpawn(ClassDuMob.class, …..
                        }
                        }
                        catch(Exception ex)
                        {
                        }
                        

                        J’ai fais ça directement depuis le forum de tête, il peut avoir des erreurs.

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

                          Bon j’ai tester et j’ai cette erreur => http://puu.sh/5kZnE.png

                          :::

                          2013-11-17 14:14:36 [Infos] [ForgeModLoader] Forge Mod Loader version 5.2.23.738 for Minecraft 1.5.2 loading
                          2013-11-17 14:14:36 [Infos] [ForgeModLoader] Java is Java HotSpot™ Client VM, version 1.7.0_45, running on Windows 7:x86:6.1, installed at C:\Program Files (x86)\Java\jre7
                          2013-11-17 14:14:36 [Infos] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                          2013-11-17 14:14:37 [Infos] [STDOUT] 229 recipes
                          2013-11-17 14:14:37 [Infos] [STDOUT] 27 achievements
                          2013-11-17 14:14:37 [Infos] [Minecraft-Client] Setting user: Player630
                          2013-11-17 14:14:37 [Infos] [STDOUT] (Session ID is -)
                          2013-11-17 14:14:37 [Infos] [STDERR] Client asked for parameter: server
                          2013-11-17 14:14:37 [Infos] [Minecraft-Client] LWJGL Version: 2.4.2
                          2013-11-17 14:14:38 [Infos] [MinecraftForge] Attempting early MinecraftForge initialization
                          2013-11-17 14:14:38 [Infos] [STDOUT] MinecraftForge v7.8.1.738 Initialized
                          2013-11-17 14:14:38 [Infos] [ForgeModLoader] MinecraftForge v7.8.1.738 Initialized
                          2013-11-17 14:14:39 [Infos] [STDOUT] Replaced 85 ore recipies
                          2013-11-17 14:14:39 [Infos] [MinecraftForge] Completed early MinecraftForge initialization
                          2013-11-17 14:14:39 [Infos] [ForgeModLoader] Reading custom logging properties from C:\Users\Administrateur\Desktop\Modding\JAVA\MCP ViruZ BaseMod\jars\config\logging.properties
                          2013-11-17 14:14:39 [Désactivé] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
                          2013-11-17 14:14:39 [Infos] [ForgeModLoader] Searching C:\Users\Administrateur\Desktop\Modding\JAVA\MCP ViruZ BaseMod\jars\mods for mods
                          2013-11-17 14:14:40 [Infos] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
                          2013-11-17 14:14:40 [Infos] [mcp] Activating mod mcp
                          2013-11-17 14:14:40 [Infos] [FML] Activating mod FML
                          2013-11-17 14:14:40 [Infos] [Forge] Activating mod Forge
                          2013-11-17 14:14:40 [Infos] [ViruZ] Activating mod ViruZ
                          2013-11-17 14:14:40 [Infos] [ForgeModLoader] Registering Forge Packet Handler
                          2013-11-17 14:14:40 [Infos] [ForgeModLoader] Succeeded registering Forge Packet Handler
                          2013-11-17 14:14:40 [Infos] [ForgeModLoader] Configured a dormant chunk cache size of 0
                          2013-11-17 14:14:40 [Infos] [STDOUT]
                          2013-11-17 14:14:40 [Infos] [STDOUT] Starting up SoundSystem…
                          2013-11-17 14:14:41 [Infos] [STDOUT] Initializing LWJGL OpenAL
                          2013-11-17 14:14:41 [Infos] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
                          2013-11-17 14:14:41 [Infos] [STDOUT] OpenAL initialized.
                          2013-11-17 14:14:41 [Infos] [STDOUT]
                          2013-11-17 14:14:41 [Avertissement] [Minecraft-Client] TextureManager.createTexture called for file textures/blocks/phareOn.png, but that file does not exist. Ignoring.
                          2013-11-17 14:14:41 [Avertissement] [Minecraft-Client] TextureManager.createTexture called for file textures/blocks/phareOff.png, but that file does not exist. Ignoring.
                          2013-11-17 14:14:41 [Infos] [ForgeModLoader] Forge Mod Loader has detected an older LWJGL version, new advanced texture animation features are disabled
                          2013-11-17 14:14:41 [Infos] [ForgeModLoader] Not using advanced OpenGL 4.3 advanced capability for animations : OpenGL 4.3 is not available
                          2013-11-17 14:14:41 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt
                          2013-11-17 14:14:41 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt
                          2013-11-17 14:14:41 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt
                          2013-11-17 14:14:41 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt
                          2013-11-17 14:14:41 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt
                          2013-11-17 14:14:41 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt
                          2013-11-17 14:14:41 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/water.txt
                          2013-11-17 14:14:41 [Infos] [Minecraft-Client] Found animation info for: textures/items/clock.txt
                          2013-11-17 14:14:41 [Infos] [Minecraft-Client] Found animation info for: textures/items/compass.txt
                          2013-11-17 14:14:41 [Infos] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
                          2013-11-17 14:14:42 [Avertissement] [Minecraft-Client] TextureManager.createTexture called for file textures/blocks/phareOn.png, but that file does not exist. Ignoring.
                          2013-11-17 14:14:42 [Avertissement] [Minecraft-Client] TextureManager.createTexture called for file textures/blocks/phareOff.png, but that file does not exist. Ignoring.
                          2013-11-17 14:14:42 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt
                          2013-11-17 14:14:42 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt
                          2013-11-17 14:14:42 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt
                          2013-11-17 14:14:42 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt
                          2013-11-17 14:14:42 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt
                          2013-11-17 14:14:42 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt
                          2013-11-17 14:14:42 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/water.txt
                          2013-11-17 14:14:42 [Infos] [Minecraft-Client] Found animation info for: textures/items/clock.txt
                          2013-11-17 14:14:42 [Infos] [Minecraft-Client] Found animation info for: textures/items/compass.txt
                          2013-11-17 14:14:45 [Infos] [Minecraft-Server] Starting integrated minecraft server version 1.5.2
                          2013-11-17 14:14:45 [Infos] [Minecraft-Server] Generating keypair
                          2013-11-17 14:14:46 [Infos] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@46af17)
                          2013-11-17 14:14:46 [Infos] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@46af17)
                          2013-11-17 14:14:46 [Infos] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@46af17)
                          2013-11-17 14:14:46 [Infos] [Minecraft-Server] Preparing start region for level 0
                          2013-11-17 14:14:46 [Infos] [STDERR] java.lang.Error: Unresolved compilation problems:
                          2013-11-17 14:14:46 [Infos] [STDERR] The method removeSpawn(Class, EnumCreatureType, BiomeGenBase…) in the type EntityRegistry is not applicable for the arguments (Class<mocentityhellrat>, EnumCreatureType)
                          2013-11-17 14:14:46 [Infos] [STDERR] MoCEntityHellRat cannot be resolved to a type
                          2013-11-17 14:14:46 [Infos] [STDERR]
                          2013-11-17 14:14:46 [Infos] [STDERR] at zeamateis.viruz.manage.EntityJoinWorldManage.onEntitySpawn(EntityJoinWorldManage.java:56)
                          2013-11-17 14:14:46 [Infos] [STDERR] at net.minecraftforge.event.ASMEventHandler_6_EntityJoinWorldManage_onEntitySpawn_EntityJoinWorldEvent.invoke(.dynamic)
                          2013-11-17 14:14:46 [Infos] [STDERR] at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
                          2013-11-17 14:14:46 [Infos] [STDERR] at net.minecraftforge.event.EventBus.post(EventBus.java:108)
                          2013-11-17 14:14:46 [Infos] [STDERR] at net.minecraft.world.World.addLoadedEntities(World.java:3736)
                          2013-11-17 14:14:46 [Infos] [STDERR] at net.minecraft.world.chunk.Chunk.onChunkLoad(Chunk.java:1073)
                          2013-11-17 14:14:46 [Infos] [STDERR] at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
                          2013-11-17 14:14:46 [Infos] [STDERR] at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:282)
                          2013-11-17 14:14:46 [Infos] [STDERR] at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:88)
                          2013-11-17 14:14:46 [Infos] [STDERR] at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:105)
                          2013-11-17 14:14:46 [Infos] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:431)
                          2013-11-17 14:14:46 [Infos] [STDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
                          2013-11-17 14:14:46 [Grave] [Minecraft-Server] Encountered an unexpected exception Error
                          java.lang.Error: Unresolved compilation problems:
                          The method removeSpawn(Class, EnumCreatureType, BiomeGenBase…) in the type EntityRegistry is not applicable for the arguments (Class<mocentityhellrat>, EnumCreatureType)
                          MoCEntityHellRat cannot be resolved to a type

                          at zeamateis.viruz.manage.EntityJoinWorldManage.onEntitySpawn(EntityJoinWorldManage.java:56)
                          at net.minecraftforge.event.ASMEventHandler_6_EntityJoinWorldManage_onEntitySpawn_EntityJoinWorldEvent.invoke(.dynamic)
                          at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
                          at net.minecraftforge.event.EventBus.post(EventBus.java:108)
                          at net.minecraft.world.World.addLoadedEntities(World.java:3736)
                          at net.minecraft.world.chunk.Chunk.onChunkLoad(Chunk.java:1073)
                          at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
                          at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:282)
                          at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:88)
                          at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:105)
                          at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:431)
                          at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
                          2013-11-17 14:14:46 [Grave] [Minecraft-Server] This crash report has been saved to: C:\Users\Administrateur\Desktop\Modding\JAVA\MCP ViruZ BaseMod\jars.\crash-reports\crash-2013-11-17_14.14.46-server.txt
                          2013-11-17 14:14:46 [Infos] [Minecraft-Server] Stopping server
                          2013-11-17 14:14:46 [Infos] [Minecraft-Server] Saving players
                          2013-11-17 14:14:46 [Infos] [Minecraft-Server] Saving worlds
                          2013-11-17 14:14:46 [Infos] [Minecraft-Server] Saving chunks for level ‘New World’/Overworld
                          2013-11-17 14:14:46 [Infos] [Minecraft-Server] Saving chunks for level ‘New World’/Nether
                          2013-11-17 14:14:46 [Infos] [Minecraft-Server] Saving chunks for level ‘New World’/The End
                          2013-11-17 14:14:46 [Infos] [ForgeModLoader] Unloading dimension 0
                          2013-11-17 14:14:46 [Infos] [ForgeModLoader] Unloading dimension -1
                          2013-11-17 14:14:46 [Infos] [ForgeModLoader] Unloading dimension 1
                          2013-11-17 14:14:46 [Infos] [ForgeModLoader] The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.

                          :::</mocentityhellrat></mocentityhellrat>

                          Si je t'ai filé un coup de main n'oublie pas le + / -
                          Par contre évite les demandes d'aides en MP, tu sera sympa'

                          La JavaDoc c'est comme le PQ, ça sert à ce démerder tous seul. -Victor Hugo- 2017

                          Une superbe API pour animer vos super modèles CraftStudio dans Minecraft !

                          1 réponse Dernière réponse Répondre Citer 0
                          • Superloup10S Hors-ligne
                            Superloup10 Modérateurs
                            dernière édition par

                            As-tu vérifié avant que le rat des enfers était extends EntityLiving? Si ne l’ai pas, teste avec l’autre méthode de EntityRegistry.removeSpawn()

                            Si vous souhaitez me faire un don, il vous suffit de cliquer sur le bouton situé en dessous.

                            Je suis un membre apprécié et joueur, j'ai déjà obtenu 17 points de réputation.

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

                              C’est à dire je dois utiliser quoi ?

                              Si je t'ai filé un coup de main n'oublie pas le + / -
                              Par contre évite les demandes d'aides en MP, tu sera sympa'

                              La JavaDoc c'est comme le PQ, ça sert à ce démerder tous seul. -Victor Hugo- 2017

                              Une superbe API pour animer vos super modèles CraftStudio dans Minecraft !

                              1 réponse Dernière réponse Répondre Citer 0
                              • Superloup10S Hors-ligne
                                Superloup10 Modérateurs
                                dernière édition par

                                Tu appuis sur CTRL et tu cliques sur removeSpawn et tu regardes.

                                Si vous souhaitez me faire un don, il vous suffit de cliquer sur le bouton situé en dessous.

                                Je suis un membre apprécié et joueur, j'ai déjà obtenu 17 points de réputation.

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

                                  Ahhhhh Comme ça ? http://puu.sh/5l08o.png

                                  Si je t'ai filé un coup de main n'oublie pas le + / -
                                  Par contre évite les demandes d'aides en MP, tu sera sympa'

                                  La JavaDoc c'est comme le PQ, ça sert à ce démerder tous seul. -Victor Hugo- 2017

                                  Une superbe API pour animer vos super modèles CraftStudio dans Minecraft !

                                  1 réponse Dernière réponse Répondre Citer 0
                                  • robin4002R Hors-ligne
                                    robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                                    dernière édition par

                                    Non

                                    Cast EntityLiving à la classe.

                                    1 réponse Dernière réponse Répondre Citer 0
                                    • jglrxavpokJ Hors-ligne
                                      jglrxavpok Modérateurs
                                      dernière édition par

                                      Il me semble qu’il y a un event pour le spawn des entitées.
                                      Il suffit de récupérer cet event, vérifier si le mob est une instance de la classe “MoCEntityMob”, et si oui, annuler le spawn 😉

                                      Modérateur sur MFF. 
                                      Mon Github: http://github.com/jglrxavpok
                                      Mon compte Steam si vous voulez jouer à CS:GO ou TF2 avec moi: https://steamcommunity.com/id/jglrxavpok/

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

                                        Je n’arrive pas à cast EntityLiving

                                        Si je t'ai filé un coup de main n'oublie pas le + / -
                                        Par contre évite les demandes d'aides en MP, tu sera sympa'

                                        La JavaDoc c'est comme le PQ, ça sert à ce démerder tous seul. -Victor Hugo- 2017

                                        Une superbe API pour animer vos super modèles CraftStudio dans Minecraft !

                                        1 réponse Dernière réponse Répondre Citer 0
                                        • robin4002R Hors-ligne
                                          robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                                          dernière édition par

                                          Comme ça :

                                          try
                                          {
                                          Class ClassDuMob = (Class)Class.forName("package.de.la.class.Nom");
                                          if(Loader.isModLoaded("MoCreature"))
                                          {
                                          EntityRegistry.removeSpawn(ClassDuMob, EnumCreatureType.monster);
                                          }
                                          }
                                          catch(Exception ex)
                                          {}
                                          

                                          ÉDIT :
                                          plutot comme ça :

                                          if(Loader.isModLoaded("MoCreature"))
                                          {
                                          try
                                          {
                                          Class ClassDuMob = (Class)Class.forName("package.de.la.class.Nom");
                                          
                                          EntityRegistry.removeSpawn(ClassDuMob, EnumCreatureType.monster);
                                          
                                          }
                                          catch(Exception ex)
                                          {}
                                          }
                                          

                                          Pour éviter qu’il essaye de cast alors que le mocreature n’est pas installé

                                          Et le removeSpawn est à mettre dans la classe principale.

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

                                            OK je vais test !

                                            [Edit]

                                            Comme ça ?

                                            
                                            if(Loader.isModLoaded("MoCreature"))
                                            {
                                            try
                                            {
                                            Class MoCEntityHellRat = (Class)Class.forName("drzhark.mocreatures.entity.monster");
                                            
                                            EntityRegistry.removeSpawn(MoCEntityHellRat, EnumCreatureType.monster);
                                            
                                            }
                                            catch(Exception ex)
                                            {}
                                            }
                                            
                                            

                                            Si je t'ai filé un coup de main n'oublie pas le + / -
                                            Par contre évite les demandes d'aides en MP, tu sera sympa'

                                            La JavaDoc c'est comme le PQ, ça sert à ce démerder tous seul. -Victor Hugo- 2017

                                            Une superbe API pour animer vos super modèles CraftStudio dans Minecraft !

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

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB