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

      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
                        • robin4002R Hors-ligne
                          robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                          dernière édition par

                          Oui, par contre je ne pense pas que la classe soit drzhark.mocreatures.entity.monster. Par convension les classes commencent par une majuscule.

                          Après vérification, la classe est “drzhark.mocreatures.entity.monster.MoCEntityHellRat”

                          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

                            Résolu ?

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

                              Désolé, je suis en internat la semaine ^^ Je vais finalement opté pour le custom spawner de Mo’Creature ! Mais ce bout de code marche ! et il me sera utile pour plus-tard !

                              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

                                Ok, je passe en résolu

                                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