Supprimer des mobs d'un autre mod
-
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.
-
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 typeat 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>
-
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.
-
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 typeat 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>
-
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()
-
C’est à dire je dois utiliser quoi ?
-
Tu appuis sur CTRL et tu cliques sur removeSpawn et tu regardes.
-
Ahhhhh Comme ça ? http://puu.sh/5l08o.png
-
Non
Cast EntityLiving à la classe.
-
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
-
Je n’arrive pas à cast EntityLiving
-
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.
-
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) {} } -
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”
-
Résolu ?
-
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 !
-
Ok, je passe en résolu
