MFF

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

    Créer un mob basique

    Planifier Épinglé Verrouillé Déplacé Les entités
    1.7.x
    187 Messages 47 Publieurs 80.6k Vues 6 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.
    • TituyaT Hors-ligne
      Tituya
      dernière édition par

      Bon, j’ai plusieurs problèmes…
      1- Mon mob ne fait rien, ne se déplace pas et n’attaque pas :dodgy: 
      2- Mon mob n’a pas de textures, il en a une bizarre, un carré blanc 😄
      3- MON MOB CHEAT !!! il ne prend pas de KB !

      Bref vous avez compris… HELP !
      voila mes codes (1.9)

      Render

      package com.tuto.mod.client;
      
      import com.tuto.mod.References;
      import com.tuto.mod.common.MobTuto;
      
      import net.minecraft.client.model.ModelBiped;
      import net.minecraft.client.renderer.entity.RenderBiped;
      import net.minecraft.client.renderer.entity.RenderManager;
      import net.minecraft.entity.Entity;
      import net.minecraft.entity.EntityLiving;
      import net.minecraft.util.ResourceLocation;
      
      public class RenderTuto extends RenderBiped
      {
      
          public final ResourceLocation texture = new ResourceLocation(References.MOD_ID, "textures/entity/mob_tutoriel.png");
      
          public RenderTuto(RenderManager renderManagerIn, ModelBiped modelBipedIn, float shadowSize)
          {
              super(renderManagerIn, modelBipedIn, shadowSize);
          }
      
          protected ResourceLocation getEntityTexture(EntityLiving living)
          {
              return this.getMobTutorielTexture((MobTuto)living);
          }
      
          private ResourceLocation getMobTutorielTexture(MobTuto mobTutoriel)
          {
              return texture;
          }
      
      }
      
      

      Mob

      package com.tuto.mod.common;
      
      import net.minecraft.entity.SharedMonsterAttributes;
      import net.minecraft.entity.monster.EntityMob;
      import net.minecraft.world.World;
      
      public class MobTuto extends EntityMob
      {
          public MobTuto(World worldIn)
          {
              super(worldIn);
          }
      
          public void applyEntityAttributes()
          {
              super.applyEntityAttributes();
              this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(6D);
              this.getEntityAttribute(SharedMonsterAttributes.KNOCKBACK_RESISTANCE).setBaseValue(0.3D);
              this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.8D);
              this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(20D);
          }
      
      }
      
      

      Ma classe principale

      package com.tuto.mod;
      
      import java.lang.reflect.Proxy;
      
      import com.tuto.mod.common.MobTuto;
      import com.tuto.mod.init.BlocksMod;
      import com.tuto.mod.init.CraftsMod;
      import com.tuto.mod.init.EventsMod;
      import com.tuto.mod.init.ItemsMod;
      import com.tuto.mod.proxy.CommonProxy;
      import com.tuto.mod.world.WorldRegisterTuto;
      
      import net.minecraft.creativetab.CreativeTabs;
      import net.minecraft.item.Item;
      import net.minecraft.util.ResourceLocation;
      import net.minecraftforge.common.MinecraftForge;
      import net.minecraftforge.event.entity.living.LivingEvent;
      import net.minecraftforge.fml.common.Mod;
      import net.minecraftforge.fml.common.Mod.EventHandler;
      import net.minecraftforge.fml.common.Mod.Instance;
      import net.minecraftforge.fml.common.SidedProxy;
      import net.minecraftforge.fml.common.event.FMLInitializationEvent;
      import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
      import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
      import net.minecraftforge.fml.common.registry.EntityRegistry;
      import net.minecraftforge.fml.common.registry.GameRegistry;
      import net.minecraftforge.fml.relauncher.Side;
      import net.minecraftforge.fml.relauncher.SideOnly;
      
      @Mod(modid = References.MOD_ID, name = References.MOD_NAME, version = References.VERSION)
      
      public class ModTuto
      {
          @SidedProxy(clientSide = References.CLIENT_PROXY, serverSide = References.COMMON_PROXY)
          public static  CommonProxy proxy;
      
           @Instance(References.MOD_ID)
              public static ModTuto instance;
      
          public static CreativeTabs tabTuto = new CreativeTabs("tabTuto")
          {
              @SideOnly(Side.CLIENT)
              public Item getTabIconItem()
              {
                  return ItemsMod.supT;
              }
          };
      
          @EventHandler
          public void preInit(FMLPreInitializationEvent event)
          {
              BlocksMod.init();
              BlocksMod.register();
              ItemsMod.init();
              ItemsMod.register();
              EventsMod.init();
              CraftsMod.init();
              WorldRegisterTuto.MainRegistry();
          }
      
          @EventHandler
          public void init(FMLInitializationEvent event)
          {
              proxy.registerRenders();
              MinecraftForge.EVENT_BUS.register(new Drop());
              EntityRegistry.registerModEntity(MobTuto.class, "mobTutoriel", 420, this.instance, 40, 1, true);
          }
      
          @EventHandler
          public void postInit(FMLPostInitializationEvent event)
          {
      
          }
      }
      

      Bien sur, vous me connaissez, j’ai vérifié, ma texture est au bon endroit dans mon mod. je pense personnellement un placage mal fait des classes, vu que j’ai du crée deux package. Un client et un common. Ne sachant pas ou les mettres, je les est mis dans mon package générale… :s

      Il y a deux choses qui m'énerve dans la vie : les babouches et les personnes jouant en 1.7.10 !

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

        Personne pour m’aider ? SVP

        Il y a deux choses qui m'énerve dans la vie : les babouches et les personnes jouant en 1.7.10 !

        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

          Pas d’erreur dans les logs ?
          Tu as en 1.7.10 comme dans le tuto ? Si oui, c’est surement car tu n’as pas de registerGlobalEntityId.

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

            Non comme d’habitude en 1.9.4

            Il y a deux choses qui m'énerve dans la vie : les babouches et les personnes jouant en 1.7.10 !

            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

              Je ne vois pas trop d’où ça peut venir 😕
              Tu peux envoyer un zip de ton dossier src pour que je puisse faire des tests de mon côté ?

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

                Bah moi en tout cas je ne vois pas d’erreur dans les logs

                2017-04-20 21:27:01,810 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
                2017-04-20 21:27:01,825 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
                [21:27:02] [main/INFO] [GradleStart]: Extra: []
                [21:27:02] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/laura pc/.gradle/caches/minecraft/assets, --assetIndex, 1.9, --accessToken{REDACTED}, --version, 1.9.4, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
                [21:27:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
                [21:27:02] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
                [21:27:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
                [21:27:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
                [21:27:02] [main/INFO] [FML]: Forge Mod Loader version 12.17.0.2051 for Minecraft 1.9.4 loading
                [21:27:02] [main/INFO] [FML]: Java is Java HotSpot(TM) Client VM, version 1.8.0_111, running on Windows 7:x86:6.1, installed at C:\Program Files (x86)\Java\jre1.8.0_111
                [21:27:02] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                [21:27:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
                [21:27:02] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
                [21:27:02] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
                [21:27:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
                [21:27:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
                [21:27:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                [21:27:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
                [21:27:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
                [21:27:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
                [21:27:03] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                [21:27:06] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
                [21:27:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
                [21:27:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
                [21:27:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                [21:27:07] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
                [21:27:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
                [21:27:07] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
                2017-04-20 21:27:09,140 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
                2017-04-20 21:27:09,204 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
                2017-04-20 21:27:09,204 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
                [21:27:10] [Client thread/INFO]: Setting user: Player230
                [21:27:16] [Client thread/INFO]: LWJGL Version: 2.9.4
                [21:27:20] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:202]: –-- Minecraft Crash Report ----
                // I blame Dinnerbone.
                
                Time: 20/04/17 21:27
                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.9.4
                Operating System: Windows 7 (x86) version 6.1
                Java Version: 1.8.0_111, Oracle Corporation
                Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
                Memory: 844198000 bytes (805 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 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: 'ATI Technologies Inc.' Version: '4.1.10664 Compatibility Profile Context' Renderer: 'ATI Mobility Radeon HD 5470'
                [21:27:20] [Client thread/INFO] [FML]: MinecraftForge v12.17.0.2051 Initialized
                [21:27:20] [Client thread/INFO] [FML]: Replaced 232 ore recipes
                [21:27:20] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
                [21:27:20] [Client thread/INFO] [FML]: Searching C:\Users\laura pc\Desktop\Benji\ModderMinecraft\forge-1.9.4-12.17.0.2051-mdk\mods for mods
                [21:27:23] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
                [21:27:24] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, tuto] at CLIENT
                [21:27:24] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, tuto] at SERVER
                [21:27:25] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:§4Topaze Mod
                [21:27:26] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
                [21:27:26] [Client thread/INFO] [FML]: Found 418 ObjectHolder annotations
                [21:27:26] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
                [21:27:26] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
                [21:27:26] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
                [21:27:26] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
                [21:27:26] [Client thread/INFO] [FML]: Applying holder lookups
                [21:27:26] [Client thread/INFO] [FML]: Holder lookups applied
                [21:27:26] [Client thread/INFO] [FML]: Injecting itemstacks
                [21:27:26] [Client thread/INFO] [FML]: Itemstack injection complete
                [21:27:27] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: AHEAD Target: null
                [21:27:54] [Sound Library Loader/INFO]: Starting up SoundSystem…
                [21:27:55] [Thread-8/INFO]: Initializing LWJGL OpenAL
                [21:27:55] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                [21:27:55] [Thread-8/INFO]: OpenAL initialized.
                [21:27:55] [Sound Library Loader/INFO]: Sound engine started
                [21:28:01] [Client thread/INFO] [FML]: Max texture size: 8192
                [21:28:01] [Client thread/INFO]: Created: 16x16 textures-atlas
                [21:28:04] [Client thread/INFO] [FML]: Injecting itemstacks
                [21:28:04] [Client thread/INFO] [FML]: Itemstack injection complete
                [21:28:04] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
                [21:28:04] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:§4Topaze Mod
                [21:28:07] [Client thread/INFO]: SoundSystem shutting down…
                [21:28:08] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
                [21:28:08] [Sound Library Loader/INFO]: Starting up SoundSystem…
                [21:28:08] [Thread-10/INFO]: Initializing LWJGL OpenAL
                [21:28:08] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                [21:28:08] [Thread-10/INFO]: OpenAL initialized.
                [21:28:08] [Sound Library Loader/INFO]: Sound engine started
                [21:28:12] [Client thread/INFO] [FML]: Max texture size: 8192
                [21:28:13] [Client thread/INFO]: Created: 1024x512 textures-atlas
                [21:28:18] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
                [21:28:24] [Server thread/INFO]: Starting integrated minecraft server version 1.9.4
                [21:28:24] [Server thread/INFO]: Generating keypair
                [21:28:24] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
                [21:28:24] [Server thread/INFO] [FML]: Found a missing id from the world tuto:TNT
                [21:28:24] [Server thread/INFO] [FML]: Found a missing id from the world tuto:trappe
                [21:28:24] [Server thread/INFO] [FML]: Applying holder lookups
                [21:28:24] [Server thread/INFO] [FML]: Holder lookups applied
                [21:28:24] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@12a1698)
                [21:28:25] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@12a1698)
                [21:28:25] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@12a1698)
                [21:28:25] [Server thread/INFO]: Preparing start region for level 0
                [21:28:26] [Server thread/INFO]: Preparing spawn area: 2%
                [21:28:27] [Server thread/INFO]: Preparing spawn area: 65%
                [21:28:28] [Server thread/INFO]: Changing view distance to 6, from 10
                [21:28:30] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
                [21:28:30] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
                [21:28:30] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@8.0.99.99,Forge@12.17.0.2051,tuto@1.0.0,mcp@9.19
                [21:28:30] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
                [21:28:30] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
                [21:28:30] [Server thread/INFO]: Player230[local:E:597000d9] logged in with entity id 131 at (-198.44020482929537, 4.0, 2009.6899718905322)
                [21:28:30] [Server thread/INFO]: Player230 a rejoint la partie
                [21:28:31] [Server thread/INFO]: Saving and pausing game…
                [21:28:31] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
                [21:28:32] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
                [21:28:32] [Server thread/INFO]: Saving chunks for level 'New World'/The End
                [21:28:32] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@4d87ea[id=d6021e41-7343-3bee-bb0e-33bf78c6e47d,name=Player230,properties={},legacy=false]
                com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
                at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:65) ~[YggdrasilAuthenticationService.class:?]
                at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:175) [YggdrasilMinecraftSessionService.class:?]
                at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:59) [YggdrasilMinecraftSessionService$1.class:?]
                at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:56) [YggdrasilMinecraftSessionService$1.class:?]
                at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?]
                at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?]
                at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?]
                at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?]
                at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?]
                at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?]
                at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?]
                at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?]
                at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:165) [YggdrasilMinecraftSessionService.class:?]
                at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3043) [Minecraft.class:?]
                at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [SkinManager$3.class:?]
                at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_111]
                at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_111]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_111]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_111]
                at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
                [21:28:39] [Client thread/INFO]: [CHAT] MinecartChest, EyeOfEnderSignal, ItemFrame, SpectralArrow, MinecartCommandBlock, Item, EntityHorse, Fireball, EnderDragon, DragonFireball, MinecartTNT, Villager, ThrownPotion, Guardian, SnowMan, LeashKnot, Arrow, MushroomCow, LavaSlime, Zombie, MinecartSpawner, EnderCrystal, tuto.mobTutoriel, Snowball, Enderman, CaveSpider, MinecartHopper, XPOrb, ThrownExpBottle, FireworksRocketEntity, Chicken, FallingSand, Giant, VillagerGolem, PrimedTnt, Endermite, Creeper, Rabbit, ThrownEnderpearl, Silverfish, ShulkerBullet, Shulker, ArmorStand, Squid, Skeleton, SmallFireball, MinecartRideable, Wolf, Witch, Ozelot, ThrownEgg, Cow, AreaEffectCloud, Slime, Painting, Pig, MinecartFurnace, Bat, Blaze, WitherBoss, PigZombie, Spider, Ghast, Sheep, WitherSkull, Boat, LightningBolt
                [21:28:44] [Client thread/INFO]: [CHAT] ThrownPotion, tuto.mobTutoriel, ThrownExpBottle, ThrownEnderpearl, ThrownEgg
                [21:28:44] [Client thread/INFO]: [CHAT] ThrownPotion, tuto.mobTutoriel, ThrownExpBottle, ThrownEnderpearl, ThrownEgg
                [21:28:45] [Server thread/INFO]: [Player230 : Entité invoquée avec succès]
                [21:28:45] [Client thread/INFO]: [CHAT] Entité invoquée avec succès
                [21:29:01] [Server thread/INFO]: [Player230 : Entité invoquée avec succès]
                [21:29:01] [Client thread/INFO]: [CHAT] Entité invoquée avec succès
                [21:29:02] [Server thread/INFO]: Player230 vient d'obtenir le succès [Faire l'inventaire]
                [21:29:02] [Client thread/INFO]: [CHAT] Player230 vient d'obtenir le succès [Faire l'inventaire]
                [21:30:59] [Client thread/WARN]: Unable to play empty soundEvent: minecraft:entity.small_slime.squish
                [21:31:00] [Client thread/WARN]: Unable to play empty soundEvent: minecraft:entity.small_slime.jump
                
                

                Tien le fameux dossier src que tu m’a demandé :
                le dossier src

                Il y a deux choses qui m'énerve dans la vie : les babouches et les personnes jouant en 1.7.10 !

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

                  Bon Tituya, bilan des courses : 3 erreurs.
                  1)La première, ta texture se finissait par .png.png
                  2)Tu n’avais créé aucun Render pour ton entity, même pas la moindre ligne d’enregistrement dans le Client Proxy. Désormais, j’y ai remédié.
                  3)Et pour son problème de knockback, ce n’est p

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

                    Bon Tituya après avoir analysé tes sources, j’ai corrigé 4 erreurs :
                    1)La première, ta texture se finissait par .png.png et le format de ta texture était complétement faux : des membres mals placés dessus sans parler de la résolution : 64x64, au lieu de 64x32.
                    2)Aucune Render d’enregistré, j’ai corrigé ton client proxy
                    3)J’ai également enlevé le knockback resistance, que tu aurais au moins pu remarqué si tu t’étais relu ^^’
                    4)J’ai au passage changé sa portée de rafraîchissement (initialement à 40), de base, on utilise 80. Puis j’ai fini par diminué son id : 420, tu en perdais beaucoup, on pouvait démarrer à 0 😃

                    Passe moi ton skype, et je te refilerai les sources sous .zip/.rar !

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

                      Je n’ai pas Skype, envoie le moi par mp via mediafire si tu peu 😄
                      J’aurais dû penser au render

                      Il y a deux choses qui m'énerve dans la vie : les babouches et les personnes jouant en 1.7.10 !

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

                        KDO : http://www.mediafire.com/file/axmipwqidbpi4zx/src.rar

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

                          Je test ca, je te remercie quand même si ça ne fonctionne pas, donc en gros mon src que tu as modifier je le remplace par mon src ?
                          [EDiT] Cela fonctionne merci !
                          [EDIT2] je souhaite que mon mob ai une épée dans la main, j’ai donc fait cela

                          public void setEquipmentBasedOnDifficulty(DifficultyInstance difficulty)
                              {
                                  this.setItemStackToSlot(EntityEquipmentSlot.MAINHAND, new ItemStack(ItemsMod.swordTuto));
                              }
                          

                          mais cela ne marche pas :,(

                          Il y a deux choses qui m'énerve dans la vie : les babouches et les personnes jouant en 1.7.10 !

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

                            Up ;D

                            Il y a deux choses qui m'énerve dans la vie : les babouches et les personnes jouant en 1.7.10 !

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

                              Salut,
                              doucement avec le UP, c’est minimum 24H avant chaque message.

                              Voilà ce qu’il te faut rajouter :

                              
                                 @Override
                                 protected void setEquipmentBasedOnDifficulty(DifficultyInstance difficulty)
                                 {
                                      super.setEquipmentBasedOnDifficulty(difficulty);
                                      this.setItemStackToSlot(EntityEquipmentSlot.MAINHAND, new ItemStack(ItemsMod.swordTuto));
                                 }
                              
                                 @Override
                                 public IEntityLivingData onInitialSpawn(DifficultyInstance difficulty, IEntityLivingData livingdata)
                                 {
                                      livingdata = super.onInitialSpawn(difficulty, livingdata);
                                      this.setEquipmentBasedOnDifficulty(difficulty);
                                      return livingdata;
                                 }
                              
                              
                              1 réponse Dernière réponse Répondre Citer 0
                              • TituyaT Hors-ligne
                                Tituya
                                dernière édition par

                                Et excusé moi, comment on ajoute une barre de boss ou un nom au dessus du mobs ? Il y a des tutos mais je pense que ca a changé depuis la 1.9 ;D

                                Il y a deux choses qui m'énerve dans la vie : les babouches et les personnes jouant en 1.7.10 !

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

                                  On ne va pas te donner toutes les réponses. Cherche par toi même. Si le code a changé, eh bien essaie de voir ce qui a changé, les correspondances et différences entre la version du tuto et la tienne.
                                  Et seulement si tu as des traces de recherche à nous proposer, reviens nous voir 😃

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

                                    J’en ai mais je ne suis pas sur mon ordi et donc je peu pas mettre mes traces… je me suis inspiré du Wither pour la barre de boss violette. Merci quand même 😄
                                    Et le code que tu ma donné pour l’épée ne fonctionne pas, le mob ne tien pas l’épée mais peu la dropper …

                                    Il y a deux choses qui m'énerve dans la vie : les babouches et les personnes jouant en 1.7.10 !

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

                                      Bonjours,
                                      Je suis débutant dans le modding et je voudrais que mon mob soit attirer par un block de fer par exemple mais j’ai cherché et il ne donne dans les réponses que des bout de code d’entité existant dans minecraft vanilla et comme je l’ai dit precedamment je suis débutant je ne sais pas comment faire
                                      :::

                                      package fr.clashofclan.common;
                                      
                                      import java.awt.Color;
                                      
                                      import cpw.mods.fml.common.Mod;
                                      import cpw.mods.fml.common.Mod.EventHandler;
                                      import cpw.mods.fml.common.Mod.Instance;
                                      import cpw.mods.fml.common.SidedProxy;
                                      import cpw.mods.fml.common.event.FMLInitializationEvent;
                                      import cpw.mods.fml.common.event.FMLPostInitializationEvent;
                                      import cpw.mods.fml.common.event.FMLPreInitializationEvent;
                                      import cpw.mods.fml.common.registry.EntityRegistry;
                                      import cpw.mods.fml.common.registry.GameRegistry;
                                      import fr.clashofclan.proxy.CommonProxy;
                                      import net.minecraft.block.Block;
                                      import net.minecraft.block.material.Material;
                                      import net.minecraft.creativetab.CreativeTabs;
                                      
                                      @Mod(modid = "clashofclan", name = "Clash Of Clan", version = "1.0.0")
                                      
                                      public class ClashOfClan {
                                      @Instance("clashofclan")
                                      public static ClashOfClan instance;
                                      public static final String MODID = "clashofclan";
                                      
                                      @SidedProxy(clientSide = "fr.clashofclan.proxy.ClientProxy", serverSide = "fr.clashofclan.proxy.CommonProxy")
                                      public static CommonProxy proxy;
                                      
                                      public static Block firstblock;
                                      
                                      @EventHandler
                                      public void preInit(FMLPreInitializationEvent event)
                                      {
                                      firstblock = new Firstblock().setBlockName("test").setCreativeTab(CreativeTabs.tabBlock);
                                      GameRegistry.registerBlock(firstblock, ItemFirstbloc.class, "block_test");
                                      }
                                      
                                      @EventHandler
                                      public void init(FMLInitializationEvent event)
                                      {
                                      proxy.registerRender();
                                      EntityRegistry.registerGlobalEntityID(Mobclassique.class, "mobclassique", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 255, 0).getRGB(), new Color(255, 0, 0).getRGB());
                                      EntityRegistry.registerModEntity(Mobclassique.class, "mobclassique", 420, this.instance, 40, 1, true);
                                      }
                                      
                                      @EventHandler
                                      public void postInit(FMLPostInitializationEvent event)
                                      {
                                      
                                      }
                                      
                                      }
                                      
                                      

                                      ::::::

                                      package fr.clashofclan.common;
                                      
                                      import net.minecraft.block.Block;
                                      import net.minecraft.entity.Entity;
                                      import net.minecraft.entity.EntityCreature;
                                      import net.minecraft.entity.SharedMonsterAttributes;
                                      import net.minecraft.entity.monster.EntityMob;
                                      import net.minecraft.init.Blocks;
                                      import net.minecraft.util.MovingObjectPosition;
                                      import net.minecraft.world.World;
                                      
                                      public class Mobclassique extends EntityCreature //Pour un Mob Aggresive : EntityMob
                                      {
                                      public Mobclassique(World world)
                                      {
                                      super(world);
                                      }
                                      public void applyEntityAttributes()
                                      {
                                      super.applyEntityAttributes();
                                      this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(20D);
                                      //this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(6D); //Mob Aggresive
                                      //this.getEntityAttribute(SharedMonsterAttributes.knockbackResistance).setBaseValue(1D); //Mob Aggresive
                                      this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.8D);
                                      }
                                      public Entity getEntityToAttack()
                                         {
                                             return null;
                                         }
                                      }
                                      

                                      ::::::

                                      package fr.clashofclan.client;
                                      
                                      import fr.clashofclan.common.ClashOfClan;
                                      import fr.clashofclan.common.Mobclassique;
                                      import net.minecraft.client.model.ModelBiped;
                                      import net.minecraft.client.renderer.entity.RenderBiped;
                                      import net.minecraft.entity.EntityLiving;
                                      import net.minecraft.util.ResourceLocation;
                                      
                                      public class RenderMobclassique extends RenderBiped {
                                      
                                      public final ResourceLocation texture = new ResourceLocation(ClashOfClan.MODID, "textures/entity/mobclassique.png");
                                      
                                      public RenderMobclassique(ModelBiped model, float shadow)
                                      {
                                      super(model, shadow);
                                      }
                                      protected ResourceLocation getEntityTexture(EntityLiving living)
                                      {
                                      return this.getMobclassiqueTexture((Mobclassique)living);
                                      }
                                      
                                      private ResourceLocation getMobclassiqueTexture(Mobclassique mobclassique)
                                      {
                                      return texture;
                                      }
                                      }
                                      

                                      :::
                                      Voila

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

                                        Salut, inspire toi du zombie qui est attiré par la porte.

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

                                          @‘Plaigon’:

                                          Salut, inspire toi du zombie qui est attiré par la porte.

                                          et ou je trouve le fichier du zombie je viens de fouiller tout mon .minecraft

                                          Edit: J’ai trouver le fichier EntityZombie sur internet mais je comprend pas je vois que c’est avec un [font=SFMono-Regular, Consolas,PathfinderGoalBreakDoor mais c’est tout (Help 😢 😞 )]

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

                                            Bonjour si tu utilise eclipse tu peux trouver le fichier zombie en suivant le chemin suivant tonfichierdemodding\build\tmp\recompileMc\sources\net\minecraft\entity\monster

                                            **Je suis un membre apprécié et joueur, j'ai déjà obtenu 1[ point de réputation./…

                                            1 réponse Dernière réponse Répondre Citer 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 9
                                            • 10
                                            • 4 / 10
                                            • Premier message
                                              Dernier message
                                            Design by Woryk
                                            ContactMentions Légales

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB