Résolu Création d'un mob
-
En faite je dois faire un add argument sinon la ligne en question et souligne en rouge et le addargument me rajoute instantanément un null
-
Apprends le java, il faut lui donner une instance de RenderManager, essaie RenderManager.INSTANCE.
PS : pense à mettre la version que t’utilises sur le topic
-
Non, c’est Minecraft.getMinecraft().getRenderManager()
-
Ou avec FMLClientHandler.getInstance().getTheClient().getRenderManager()
-
Merci Robin ! Sa marche ! Par contre la texture ne s’affiche pas =( Pour les mobs ils suffit de mettre la texture dans textures/entity ? Et aussi le mob ne marche pas et n’attaque pas
-
Pour la texture : regarde qu’elle soit bien chargée.
C’est normal que ton mob ne fasse rien, il n’a pas d’IA, regarde sur le forum : y’a un tuto sur les IA.
-
Les tutos sont ont en 1.7 et 1.6 j’ai essaye les deux mais les codes sont erroné impossible de suivre les suivres
-
Effectivement, certains codes tel que world.getPathToEntity n’existent plus, c’est à toi des les créer.
-
Les tutos sont fait pour que le mob attaque le joueur d’après ce que j’ai compris pour l’instant j’aimerai juste qu’il bouge =( Et c’est pas avec mon niveau en java que je vais créer des codes sinon pour la textures j’ai pris celle du blaze du minecraft vanilla mais rien toujours le meme gas rose et noire
-
Minecraft ne va pas inventer ton code, soit tu le crées, soit tu le trouves (comme par exemple dans le code de Minecraft). Si ton mob est en rose et noir, çà veut dire que ta texture est pas chargée, envoi les logs.
-
Si c’est pour la 1.8, il est obligatoire d’utiliser les tasks.addTask. Inspire toi de la classe du zombie.
-
Quand tu parle des logs tu parle du dossier dans eclipse ? Ou de mon code ([MAIN/INFO] tralalalalaala) ? Quoi que j’ai l’impression que c’est la même chose.
Sinon je vais essayer de m’inspirer de la classe du zombie merci du conseil
EDIT : Je crois que j’ai fait une belle connerie mais c’était trop tentent je suis tombe sur la classe du ghast que j’ai aussitôt recopie dans mon dossier Mob ,résultat ? Une ribambelle de gas rose et noire ,immobile qui gueule comme des ghasts
Je test le zombie cette fois -
Les logs ce sont les “[MAIN/INFO] tralalalalaala” comme tu les appelles, dedans il y a marqué pourquoi tes mobs sont roses et noirs.
-
Et bien voici mes [MAIN/INFO] tralalalalal (Juste pour les textures missings des Super…… c’est normale je ne les ai pas encore crée) voila :
:::
[12:31:29] [main/INFO] [GradleStart]: username: onepiecedeath@hotmail.fr [12:31:29] [main/INFO] [GradleStart]: Extra: [] [12:31:29] [main/INFO] [GradleStart]: Password found, attempting login [12:31:29] [main/INFO]: Logging in with username & password [12:31:33] [main/INFO] [GradleStart]: Login Succesful! [12:31:33] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, [], –assetsDir, C:/Users/SCS6/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --userType, mojang, --accessToken, {REDACTED}, --version, 1.8, --uuid, fad4142154044226b116e6c1558184a3, --username, Kriksou, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [12:31:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [12:31:33] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [12:31:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [12:31:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [12:31:33] [main/INFO] [FML]: Forge Mod Loader version 8.99.182.1491 for Minecraft 1.8 loading [12:31:33] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jdk1.8.0_51 [12:31:33] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [12:31:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [12:31:33] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [12:31:33] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [12:31:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:31:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [12:31:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [12:31:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:31:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:31:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [12:31: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:31:37] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [12:31:37] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [12:31:37] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [12:31:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [12:31:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [12:31:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [12:31:38] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [12:31:39] [Client thread/INFO]: Setting user: Kriksou [12:31:44] [Client thread/INFO]: LWJGL Version: 2.9.1 [12:31:46] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:235]: –-- Minecraft Crash Report ---- // This doesn't make any sense! Time: 10/08/15 12:31 Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 873728712 bytes (833 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'Intel' Version: '2.1.0 - Build 8.15.10.1872' Renderer: 'Intel(R) 4 Series Internal Chipset' [12:31:46] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [12:31:46] [Client thread/INFO] [FML]: MinecraftForge v11.14.3.1491 Initialized [12:31:46] [Client thread/INFO] [FML]: Replaced 204 ore recipies [12:31:47] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [12:31:47] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [12:31:47] [Client thread/INFO] [FML]: Searching C:\Users\SCS6\Downloads\forge-1.8-11.14.3.1491-src\eclipse\mods for mods [12:31:53] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [12:31:53] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, mod2] at CLIENT [12:31:53] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, mod2] at SERVER [12:31:54] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Projet2 [12:31:54] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [12:31:54] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [12:31:54] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [12:31:54] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [12:31:54] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [12:31:54] [Client thread/INFO] [FML]: Applying holder lookups [12:31:54] [Client thread/INFO] [FML]: Holder lookups applied [12:31:54] [Client thread/INFO] [FML]: Injecting itemstacks [12:31:54] [Client thread/INFO] [FML]: Itemstack injection complete [12:31:56] [Sound Library Loader/INFO]: Starting up SoundSystem… [12:31:56] [Thread-9/INFO]: Initializing LWJGL OpenAL [12:31:56] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [12:32:00] [Thread-9/INFO]: OpenAL initialized. [12:32:00] [Sound Library Loader/INFO]: Sound engine started [12:32:21] [Client thread/ERROR] [FML]: Exception loading model mod2:item/LightningGun with loader instance, skipping com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 294 column 7 at com.google.gson.internal.Streams.parse(Streams.java:56) ~[Streams.class:?] at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?] at net.minecraft.client.renderer.block.model.ModelBlock.deserialize(ModelBlock.java:47) ~[ModelBlock.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:269) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$800(ModelLoader.java:73) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:650) ~[ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:107) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:228) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:211) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.loadItems(ModelLoader.java:190) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:99) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:130) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:511) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:356) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.stream.MalformedJsonException: Unterminated object at line 294 column 7 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:480) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?] at com.google.gson.internal.Streams.parse(Streams.java:44) ~[Streams.class:?] … 25 more [12:32:22] [Client thread/INFO] [FML]: Max texture size: 4096 [12:32:22] [Client thread/INFO]: Created: 16x16 textures-atlas [12:32:22] [Client thread/ERROR] [FML]: Model definition for location mod2:blocktransparent#inventory not found [12:32:22] [Client thread/ERROR] [FML]: Model definition for location mod2:LightningGun#inventory not found [12:32:22] [Client thread/ERROR] [FML]: Model definition for location mod2:blocktransparent#normal not found [12:32:24] [Client thread/INFO] [FML]: Injecting itemstacks [12:32:24] [Client thread/INFO] [FML]: Itemstack injection complete [12:32:24] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [12:32:24] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Projet2 [12:32:24] [Client thread/INFO]: SoundSystem shutting down… [12:32:25] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [12:32:25] [Sound Library Loader/INFO]: Starting up SoundSystem… [12:32:25] [Thread-11/INFO]: Initializing LWJGL OpenAL [12:32:25] [Thread-11/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [12:32:25] [Thread-11/INFO]: OpenAL initialized. [12:32:25] [Sound Library Loader/INFO]: Sound engine started [12:32:27] [Client thread/ERROR] [FML]: Exception loading model mod2:item/LightningGun with loader instance, skipping com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 294 column 7 at com.google.gson.internal.Streams.parse(Streams.java:56) ~[Streams.class:?] at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?] at net.minecraft.client.renderer.block.model.ModelBlock.deserialize(ModelBlock.java:47) ~[ModelBlock.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:269) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$800(ModelLoader.java:73) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:650) ~[ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:107) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:228) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:211) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.loadItems(ModelLoader.java:190) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:99) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:143) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:774) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:332) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:528) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:356) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.stream.MalformedJsonException: Unterminated object at line 294 column 7 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:480) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?] at com.google.gson.internal.Streams.parse(Streams.java:44) ~[Streams.class:?] … 28 more [12:32:27] [Client thread/INFO] [FML]: Max texture size: 4096 [12:32:28] [Client thread/INFO]: Created: 512x512 textures-atlas [12:32:29] [Client thread/ERROR] [FML]: Model definition for location mod2:blocktransparent#inventory not found [12:32:29] [Client thread/ERROR] [FML]: Model definition for location mod2:LightningGun#inventory not found [12:32:29] [Client thread/ERROR] [FML]: Model definition for location mod2:blocktransparent#normal not found [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found. [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: ================================================== [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: DOMAIN mod2 [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: –------------------------------------------------ [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: domain mod2 is missing 4 textures [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: domain mod2 has 1 location: [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: mod mod2 resources at C:\Users\SCS6\Downloads\forge-1.8-11.14.3.1491-src\bin [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: –----------------------- [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: The missing resources for domain mod2 are: [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: textures/items/SuperCasque.png [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: textures/items/SuperPlastron.png [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: textures/items/SuperBotte.png [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: textures/items/SuperPantalon.png [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: –----------------------- [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: No other errors exist for domain mod2 [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: ================================================== [12:32:29] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= [12:34:00] [Server thread/INFO]: Starting integrated minecraft server version 1.8 [12:34:00] [Server thread/INFO]: Generating keypair [12:34:01] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance [12:34:01] [Server thread/INFO] [FML]: Applying holder lookups [12:34:01] [Server thread/INFO] [FML]: Holder lookups applied [12:34:01] [Server thread/INFO] [FML]: Loading dimension 0 (Copy of New World) (net.minecraft.server.integrated.IntegratedServer@fef567) [12:34:02] [Server thread/INFO] [FML]: Loading dimension 1 (Copy of New World) (net.minecraft.server.integrated.IntegratedServer@fef567) [12:34:02] [Server thread/INFO] [FML]: Loading dimension -1 (Copy of New World) (net.minecraft.server.integrated.IntegratedServer@fef567) [12:34:02] [Server thread/INFO]: Preparing start region for level 0 [12:34:03] [Server thread/INFO]: Preparing spawn area: 9% [12:34:04] [Server thread/INFO]: Preparing spawn area: 48% [12:34:05] [Server thread/INFO]: Changing view distance to 6, from 10 [12:34:10] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2 [12:34:10] [Netty Server IO #1/INFO] [FML]: Client protocol version 2 [12:34:10] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : mod2@1.8,FML@8.0.99.99,Forge@11.14.3.1491,mcp@9.05 [12:34:10] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [12:34:10] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established [12:34:10] [Server thread/INFO]: Kriksou[local:E:bbdbfa36] logged in with entity id 154 at (-1219.5733781784438, 4.0, 1378.583963139784) [12:34:11] [Server thread/INFO]: Kriksou joined the game [12:34:16] [Client thread/WARN]: Failed to load texture: mod2:textures/entity/MonMobl.png java.io.FileNotFoundException: mod2:textures/entity/MonMobl.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SimpleTexture.java:34) ~[SimpleTexture.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:70) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.bindTexture(TextureManager.java:44) [TextureManager.class:?] at net.minecraft.client.renderer.entity.Render.bindTexture(Render.java:96) [Render.class:?] at net.minecraft.client.renderer.entity.Render.bindEntityTexture(Render.java:89) [Render.class:?] at net.minecraft.client.renderer.entity.RendererLivingEntity.renderModel(RendererLivingEntity.java:266) [RendererLivingEntity.class:?] at net.minecraft.client.renderer.entity.RendererLivingEntity.doRender(RendererLivingEntity.java:179) [RendererLivingEntity.class:?] at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:59) [RenderLiving.class:?] at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:199) [RenderLiving.class:?] at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:377) [RenderManager.class:?] at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:334) [RenderManager.class:?] at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:301) [RenderManager.class:?] at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:657) [RenderGlobal.class:?] at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1353) [EntityRenderer.class:?] at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1266) [EntityRenderer.class:?] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1091) [EntityRenderer.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1114) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:376) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] [12:34:18] [Server thread/INFO]: Saving and pausing game… [12:34:19] [Server thread/INFO]: Saving chunks for level 'Copy of New World'/Overworld [12:34:19] [Server thread/INFO]: Saving chunks for level 'Copy of New World'/Nether [12:34:19] [Server thread/INFO]: Saving chunks for level 'Copy of New World'/The End [12:34:20] [Server thread/INFO]: Stopping server [12:34:20] [Server thread/INFO]: Saving players [12:34:20] [Server thread/INFO]: Saving worlds [12:34:20] [Server thread/INFO]: Saving chunks for level 'Copy of New World'/Overworld [12:34:20] [Server thread/INFO]: Saving chunks for level 'Copy of New World'/Nether [12:34:20] [Server thread/INFO]: Saving chunks for level 'Copy of New World'/The End [12:34:20] [Server thread/INFO] [FML]: Unloading dimension 0 [12:34:20] [Server thread/INFO] [FML]: Unloading dimension -1 [12:34:20] [Server thread/INFO] [FML]: Unloading dimension 1 [12:34:20] [Server thread/INFO] [FML]: Applying holder lookups [12:34:20] [Server thread/INFO] [FML]: Holder lookups applied [12:34:23] [Client thread/INFO]: Stopping! [12:34:23] [Client thread/INFO]: SoundSystem shutting down… [12:34:23] [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
:::
PS: Je n’arrive a rien avec le zombie (je ne différentie pas la commande pour le faire bouger , juste des commandes qui lui font prendre des dégâts le jour ou l’interaction avec les pnj, c’est vraiment long le machin… J’ai aussi essayer avec l’irongolem pour pas vraiment plus de résultat)
Une autre question y’a t’il des raccourci pour arriver au dossier Entity… Ou autre comme le AppData sur windows car j’en ai ch*e pour trouve le EntityZombie -
java.io.FileNotFoundException: mod2:textures/entity/MonMobl.png
Tu as placé où ta texture ? -
Exactement ici :
“textures/entity/MonMobl.png”
EDIT: Attend je vais me suicider et je reviens …Je crois avoir compris =( -
donne le chemin absolue du fichier C:/…/…/…/ jusqu’a ton fichier
-
-
gg le fail de nom dans la texture
-
Reste a les faire bouger ….Oui j’ai un dont pour …bloquer sur des petits détails comme çà …Merci Robin c’est grâce a toi que j’ai remarque
EDIT : Je pense avoir fais des progres , j’ai trouve ceci dans la classe du zombie que j’ai ajoute et réadapter a ma classe :
:::super(worldIn); ((PathNavigateGround)this.getNavigator()).func_179688_b(true); this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false)); this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D)); this.tasks.addTask(7, new EntityAIWander(this, 1.0D)); this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
:::
Ceci fait que mes mobs avancent ! Enfin un peu
J’ai mis une vitesse de 1 donc de temps en temps ils avancent dans un sens ou dans un autre sans but mais rarement ils ne sont pas en déplacements souvent , une autre chose defois ils tournent en rond comme des cons a toutes vitesses et surtout il ne m’attaque pas =(
je vous rajoute le reste de ma classe ,les drops et le paragraphe du bas que j’ai rajoute mais je ne comprend pas ce qu’il fait ,je pensait qui ferai en sorte qu’on m’attaque ::::
import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIAttackOnCollide; import net.minecraft.entity.ai.EntityAILookIdle; import net.minecraft.entity.ai.EntityAIMoveTowardsRestriction; import net.minecraft.entity.ai.EntityAISwimming; import net.minecraft.entity.ai.EntityAIWander; import net.minecraft.entity.ai.EntityAIWatchClosest; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.pathfinding.PathNavigateGround; import net.minecraft.util.DamageSource; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class MonMob1 extends EntityMob { public MonMob1(World worldIn) { super(worldIn); ((PathNavigateGround)this.getNavigator()).func_179688_b(true); this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false)); this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D)); this.tasks.addTask(7, new EntityAIWander(this, 1.0D)); this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); } public void applyEntityAttributes1() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(40D); this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(20D); this.getEntityAttribute(SharedMonsterAttributes.knockbackResistance).setBaseValue(10D); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(1D); this.worldObj.spawnEntityInWorld( attackingPlayer ); this.setCurrentItemOrArmor(4, new ItemStack(this.rand.nextFloat() < 0.1F ? Blocks.lit_pumpkin : Blocks.pumpkin)); } protected void addRandomArmor() { switch (this.rand.nextInt(3)) { case 0: this.dropItem(Items.iron_ingot, 1); break; case 1: this.dropItem(Items.carrot, 1); break; case 2: this.dropItem(Items.potato, 1); } } protected Item getDropItem() { return Items.boat; } public boolean attackEntityFrom(DamageSource source, float amount) { if (super.attackEntityFrom(source, amount)) { EntityLivingBase entitylivingbase = this.getAttackTarget(); if (entitylivingbase == null && source.getEntity() instanceof EntityLivingBase) { entitylivingbase = (EntityLivingBase)source.getEntity(); } int i = MathHelper.floor_double(this.posX); int j = MathHelper.floor_double(this.posY); int k = MathHelper.floor_double(this.posZ); } return inWater; } }
:::
Voila merci d’avance de votre aide