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.6.x
    160 Messages 22 Publieurs 72.5k Vues 1 Watching
    Charger plus de messages
    • Du plus ancien au plus récent
    • Du plus récent au plus ancien
    • Les plus votés
    Répondre
    • Répondre à l'aide d'un nouveau sujet
    Se connecter pour répondre
    Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
    • Superloup10S Hors-ligne
      Superloup10 Modérateurs
      dernière édition par

      tu dois le mettre dans “assets/ytsetmod/entity/alex.png”

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

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

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

        Non, essaye avec :

        protected static final ResourceLocation texture = new ResourceLocation("ytsetmod:textures/entity/alex.png");
        

        et place la texture dans :
        assets/ytsetmod/textures/entity/alex.png

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

          ça marche merci 🙂

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

            Salut,
            J’ai aussi un problème avec la texture du mob qui ne s’affiche pas:

            protected static final ResourceLocation texture = new ResourceLocation("terracraft:textures/entity/test.png");
            
            
            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

              Où as-tu placé la texture ?

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

                bas dans assets/terracraft/textures/entity/test.png

                test.png qui est la texture des zombies

                J’ai gardé le nom anizob pour ne pas me tromper.

                La class du mob:

                package terracraft.common;
                
                import net.minecraft.entity.EntityCreature;
                import net.minecraft.entity.SharedMonsterAttributes;
                import net.minecraft.world.World;
                
                public class EntityAniZob extends EntityCreature
                {
                public EntityAniZob(World world)
                {
                super(world);
                }
                
                protected void applyEntityAttributes()
                {
                super.applyEntityAttributes();
                this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setAttribute(40D);
                this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setAttribute(0.69999D);
                }
                }
                

                le render:

                package terracraft.common;
                
                import net.minecraft.client.model.ModelBiped;
                import net.minecraft.client.renderer.entity.RenderBiped;
                import net.minecraft.entity.Entity;
                import net.minecraft.util.ResourceLocation;
                
                public class RenderAniZob extends RenderBiped
                {
                
                protected static final ResourceLocation texture = new ResourceLocation("terracraft:textures/entity/test.png");
                
                public RenderAniZob(ModelBiped biped, float tailleOmbre)
                {
                super(biped, tailleOmbre);
                }
                
                protected ResourceLocation getAniZobTextures(EntityAniZob entity)
                {
                return texture;
                }
                
                @Override
                protected ResourceLocation getEntityTexture(Entity par1Entity)
                {
                return this.getAniZobTextures((EntityAniZob)par1Entity);
                }
                
                }
                
                
                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

                  Aucun problème à première vu 😕
                  Essaye avec :

                  protected static final ResourceLocation texture = new ResourceLocation("terracraft", "textures/entity/test.png");
                  

                  Sinon tu peux envoyer tes logs ?

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

                    Voila les logs

                    
                    24 nov. 2013 18:07:37 net.minecraft.launchwrapper.LogWrapper log
                    INFO: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                    24 nov. 2013 18:07:37 net.minecraft.launchwrapper.LogWrapper log
                    INFO: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                    24 nov. 2013 18:07:37 net.minecraft.launchwrapper.LogWrapper log
                    INFO: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
                    2013-11-24 18:07:38 [INFO] [ForgeModLoader] Forge Mod Loader version 6.4.20.916 for Minecraft 1.6.4 loading
                    2013-11-24 18:07:38 [INFO] [ForgeModLoader] Java is OpenJDK Client VM, version 1.6.0_27, running on Linux:i386:3.8.0-32-generic, installed at /usr/lib/jvm/java-6-openjdk-i386/jre
                    2013-11-24 18:07:38 [INFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                    2013-11-24 18:07:39 [INFO] [STDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg
                    2013-11-24 18:07:39 [INFO] [STDOUT] Loaded 109 rules from AccessTransformer config file forge_at.cfg
                    2013-11-24 18:07:40 [GRAVE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                    2013-11-24 18:07:42 [INFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
                    2013-11-24 18:07:42 [INFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
                    2013-11-24 18:07:43 [INFO] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main}
                    2013-11-24 18:07:48 [INFO] [Minecraft-Client] Setting user: Player629
                    2013-11-24 18:07:48 [INFO] [Minecraft-Client] (Session ID is null)
                    2013-11-24 18:07:53 [INFO] [Minecraft-Client] LWJGL Version: 2.9.0
                    2013-11-24 18:07:53 [INFO] [STDERR] javax.imageio.IIOException: Can't read input file!
                    2013-11-24 18:07:53 [INFO] [STDERR] at javax.imageio.ImageIO.read(ImageIO.java:1291)
                    2013-11-24 18:07:53 [INFO] [STDERR] at net.minecraft.client.Minecraft.readImage(Minecraft.java:557)
                    2013-11-24 18:07:53 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:419)
                    2013-11-24 18:07:53 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:807)
                    2013-11-24 18:07:53 [INFO] [STDERR] at net.minecraft.client.main.Main.main(Main.java:93)
                    2013-11-24 18:07:53 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    2013-11-24 18:07:53 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                    2013-11-24 18:07:53 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                    2013-11-24 18:07:53 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:616)
                    2013-11-24 18:07:53 [INFO] [STDERR] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
                    2013-11-24 18:07:53 [INFO] [STDERR] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
                    2013-11-24 18:08:04 [INFO] [Minecraft-Client] Reloading ResourceManager: Default
                    2013-11-24 18:08:05 [INFO] [STDOUT]
                    2013-11-24 18:08:05 [INFO] [STDOUT] Starting up SoundSystem…
                    2013-11-24 18:08:06 [INFO] [STDOUT] Initializing LWJGL OpenAL
                    2013-11-24 18:08:06 [INFO] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
                    2013-11-24 18:08:12 [INFO] [MinecraftForge] Attempting early MinecraftForge initialization
                    2013-11-24 18:08:12 [INFO] [STDOUT] MinecraftForge v9.11.1.916 Initialized
                    2013-11-24 18:08:12 [INFO] [ForgeModLoader] MinecraftForge v9.11.1.916 Initialized
                    2013-11-24 18:08:13 [INFO] [STDOUT] OpenAL initialized.
                    2013-11-24 18:08:13 [INFO] [STDOUT]
                    2013-11-24 18:08:14 [INFO] [STDOUT] Replaced 101 ore recipies
                    2013-11-24 18:08:15 [INFO] [MinecraftForge] Completed early MinecraftForge initialization
                    2013-11-24 18:08:15 [INFO] [ForgeModLoader] Reading custom logging properties from /media/INTENSO/Modding/Terracraft 1.6.4 INDEV/mcp/jars/config/logging.properties
                    2013-11-24 18:08:15 [AUCUN] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
                    2013-11-24 18:08:15 [INFO] [ForgeModLoader] Searching /media/INTENSO/Modding/Terracraft 1.6.4 INDEV/mcp/jars/mods for mods
                    2013-11-24 18:08:26 [INFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
                    2013-11-24 18:08:26 [INFO] [mcp] Activating mod mcp
                    2013-11-24 18:08:26 [INFO] [FML] Activating mod FML
                    2013-11-24 18:08:26 [INFO] [Forge] Activating mod Forge
                    2013-11-24 18:08:26 [INFO] [terracraft] Activating mod terracraft
                    2013-11-24 18:08:26 [ATTENTION] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well
                    2013-11-24 18:08:26 [ATTENTION] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well
                    2013-11-24 18:08:26 [ATTENTION] [Terraria on Minecraft] Mod Terraria on Minecraft is missing a pack.mcmeta file, things may not work well
                    2013-11-24 18:08:26 [INFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Terraria on Minecraft
                    2013-11-24 18:08:27 [INFO] [STDOUT]
                    2013-11-24 18:08:27 [INFO] [STDOUT] SoundSystem shutting down…
                    2013-11-24 18:08:27 [INFO] [STDOUT] Author: Paul Lamb, www.paulscode.com
                    2013-11-24 18:08:27 [INFO] [STDOUT]
                    2013-11-24 18:08:27 [INFO] [STDOUT]
                    2013-11-24 18:08:27 [INFO] [STDOUT] Starting up SoundSystem…
                    2013-11-24 18:08:27 [INFO] [ForgeModLoader] Registering Forge Packet Handler
                    2013-11-24 18:08:27 [INFO] [STDOUT] Initializing LWJGL OpenAL
                    2013-11-24 18:08:27 [INFO] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
                    2013-11-24 18:08:27 [INFO] [ForgeModLoader] Succeeded registering Forge Packet Handler
                    2013-11-24 18:08:28 [INFO] [STDOUT] OpenAL initialized.
                    2013-11-24 18:08:28 [INFO] [STDOUT]
                    2013-11-24 18:08:28 [INFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
                    2013-11-24 18:08:30 [GRAVE] [Minecraft-Client] Unable to parse animation metadata from terracraft:textures/blocks/TikkiTorch.png: broken aspect ratio and not an animation
                    2013-11-24 18:08:31 [INFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
                    2013-11-24 18:08:31 [ATTENTION] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well
                    2013-11-24 18:08:31 [ATTENTION] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well
                    2013-11-24 18:08:31 [ATTENTION] [Terraria on Minecraft] Mod Terraria on Minecraft is missing a pack.mcmeta file, things may not work well
                    2013-11-24 18:08:31 [INFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Terraria on Minecraft
                    2013-11-24 18:08:31 [GRAVE] [Minecraft-Client] Unable to parse animation metadata from terracraft:textures/blocks/TikkiTorch.png: broken aspect ratio and not an animation
                    2013-11-24 18:08:32 [INFO] [STDOUT]
                    2013-11-24 18:08:32 [INFO] [STDOUT] SoundSystem shutting down…
                    2013-11-24 18:08:32 [INFO] [STDOUT] Author: Paul Lamb, www.paulscode.com
                    2013-11-24 18:08:32 [INFO] [STDOUT]
                    2013-11-24 18:08:32 [INFO] [STDOUT]
                    2013-11-24 18:08:32 [INFO] [STDOUT] Starting up SoundSystem…
                    2013-11-24 18:08:32 [INFO] [STDOUT] Initializing LWJGL OpenAL
                    2013-11-24 18:08:32 [INFO] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
                    2013-11-24 18:08:33 [INFO] [STDOUT] OpenAL initialized.
                    2013-11-24 18:08:33 [INFO] [STDOUT]
                    2013-11-24 18:08:40 [GRAVE] [Minecraft-Client] Realms: Invalid session id
                    
                    
                    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

                      Il me faut le log de démarrage, avant que tu sois sur un monde.

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

                        Voila j’ai mis les logs a jour

                        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

                          La texture est bien chargée, il n’y a pas d’erreur dans le log de démarrage.
                          Par contre tu as une autre texture qui fonctionne pas :
                          terracraft:textures/blocks/TikkiTorch.png: broken aspect ratio and not an animation (pense à mettre le .png.mcdata)

                          Du coup je peux avoir ta classe principale et ton client proxy ?

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

                            Bizare ma TikkiTorch marche bien;

                            Ma class principal du ClientProxy
                            package terracraft.proxy;

                            import net.minecraft.client.model.ModelBiped;
                            import net.minecraft.client.renderer.entity.RenderBiped;
                            import terracraft.common.EntityAniZob;
                            import terracraft.common.TileEntityTikkiTorch;
                            import terracraft.common.TileEntityTikkiTorchRender;
                            import cpw.mods.fml.client.registry.ClientRegistry;
                            import cpw.mods.fml.client.registry.RenderingRegistry;
                            
                            public class ClientProxy extends CommonProxy
                            {
                            @Override
                            public void registerRender()
                            {
                            ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTikkiTorch.class, new TileEntityTikkiTorchRender());
                            RenderingRegistry.registerEntityRenderingHandler(EntityAniZob.class, new RenderBiped(new ModelBiped(), 0.5f));
                            }
                            }
                            
                            
                            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

                              Dans ta classe principale, tu as bien proxy.registerRender(); dans la fonction init ?

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

                                Oui sinon mon block tile entity avec techne ne marcherait pas.

                                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

                                  Mouarf, vraiment très étrange, j’ai jamais vu ça.
                                  Le mob s’affiche en noir et violet ?

                                  1 réponse Dernière réponse Répondre Citer 1
                                  • tybauT Hors-ligne
                                    tybau
                                    dernière édition par

                                    Non il ne s’affiche pas du tout mais je peut voir sa présence au fait que je ne peut plus poser de
                                    block la ou je l’ai fait spawn.

                                    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

                                      Essaye avec une autre texture.

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

                                        J’ai pris un skin et s’a n’a rien changé.

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

                                          J’ai tout recommencé à 0 et sa n’a toujours pas marché.
                                          et javais oublié ma class principal:

                                          package terracraft.common;
                                          
                                          import net.minecraft.block.Block;
                                          import net.minecraft.entity.EnumCreatureType;
                                          import net.minecraft.item.Item;
                                          import net.minecraft.stats.Achievement;
                                          import net.minecraft.stats.AchievementList;
                                          import net.minecraft.world.biome.BiomeGenBase;
                                          import net.minecraftforge.common.MinecraftForge;
                                          import terracraft.proxy.CommonProxy;
                                          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.network.NetworkMod;
                                          import cpw.mods.fml.common.registry.EntityRegistry;
                                          import cpw.mods.fml.common.registry.GameRegistry;
                                          
                                          @Mod(modid = "terracraft", name = "Terraria on Minecraft", version = "ALPHA 0.0.1")
                                          
                                          @NetworkMod(clientSideRequired = true, serverSideRequired = false)
                                          
                                          public class terracraft
                                          {
                                          @SidedProxy(clientSide = "terracraft.proxy.ClientProxy", serverSide = "terracraft.proxy.CommonProxy")
                                          public static CommonProxy proxy;
                                          
                                          @Instance("terracraft")
                                          public static terracraft instance;
                                          //Blocks
                                          public static Block CopperBrick, SilverBrick, GoldBrick;
                                          public static Block TikkiTorch;
                                          //Stairs
                                          public static Block CopperBrickStair, SilverBrickStair, GoldBrickStair;
                                          //Slabs
                                          public static Block BrickSlab, BrickDoubleSlab;
                                          //Items
                                          public static Item CopperCoin, SilverCoin, GoldCoin, PlatinumCoin;
                                          //Biomes
                                          public static BiomeGenBase FireTerra;
                                          //Achievements
                                          public static Achievement achievementCoin;
                                          
                                          @EventHandler
                                          public void PreInit(FMLPreInitializationEvent event)
                                          {
                                          //Configurations
                                          
                                          //Blocks
                                          CopperBrick = new Brick(2000).setHardness(1.0F).setResistance(5.0F).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("CopperBrick").setTextureName("terracraft:CopperBrick");
                                          SilverBrick = new Brick(2001).setHardness(1.0F).setResistance(5.0F).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("SilverBrick").setTextureName("terracraft:SilverBrick");
                                          GoldBrick = new Brick(2002).setHardness(1.0F).setResistance(5.0F).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("GoldBrick").setTextureName("terracraft:GoldBrick");
                                          TikkiTorch = new TikkiTorch(2003).setHardness(1.0F).setResistance(5.0F).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("TikkiTorch");
                                          //Stairs
                                          CopperBrickStair = new BrickStair(2500, CopperBrick, 0).setUnlocalizedName("CopperBrickStair");
                                          SilverBrickStair = new BrickStair(2501, SilverBrick, 0).setUnlocalizedName("SilverBrickStair");
                                          GoldBrickStair = new BrickStair(2502, GoldBrick, 0).setUnlocalizedName("GoldBrickStair");
                                          //Slabs
                                          BrickSlab = new BrickSlab(3000, false).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("BrickSlab");
                                          BrickDoubleSlab = new BrickSlab(3001, true).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("BrickDoubleSlab");
                                          //Items
                                          CopperCoin = new Coin(10000).setUnlocalizedName("CopperCoin").setTextureName("terracraft:CopperCoin");
                                          SilverCoin = new Coin(10001).setUnlocalizedName("SilverCoin").setTextureName("terracraft:SilverCoin");
                                          GoldCoin = new Coin(10002).setUnlocalizedName("GoldCoin").setTextureName("terracraft:GoldCoin");
                                          PlatinumCoin = new Coin(10003).setUnlocalizedName("PlatinumCoin").setTextureName("terracraft:PlatinumCoin");
                                          //Biomes
                                          FireTerra = new FireTerra(40).setBiomeName("Fire Terra").setDisableRain().setTemperatureRainfall(1.2F, 0.9F).setMinMaxHeight(0.3F, 0.5F);
                                          //Achievements
                                          achievementCoin = new Achievement(2100,"achievementCoin",-2,0,GoldCoin,AchievementList.openInventory).registerAchievement();
                                          //registry Blocks
                                          GameRegistry.registerBlock(CopperBrick, "CopperBrick");
                                          GameRegistry.registerBlock(SilverBrick, "SilverBrick");
                                          GameRegistry.registerBlock(GoldBrick, "GoldBrick");
                                          GameRegistry.registerBlock(TikkiTorch, "TikkiTorch");
                                          //registry Stairs
                                          GameRegistry.registerBlock(CopperBrickStair, "CopperBrickStair");
                                          GameRegistry.registerBlock(SilverBrickStair, "SilverBrickStair");
                                          GameRegistry.registerBlock(GoldBrickStair, "GoldBrickStair");
                                          //registry Slabs
                                          GameRegistry.registerBlock(BrickSlab, RenderBrickSlab.class, "BrickSlab");
                                          GameRegistry.registerBlock(BrickDoubleSlab, RenderBrickSlab.class, "BrickDoubleSlab");
                                          //registry Items
                                          GameRegistry.registerItem(CopperCoin, "CopperCoin", "terracraft");
                                          GameRegistry.registerItem(SilverCoin, "SilverCoin", "terracraft");
                                          GameRegistry.registerItem(GoldCoin, "GoldCoin", "terracraft");
                                          GameRegistry.registerItem(PlatinumCoin, "PlatinumCoin", "terracraft");
                                          //registry Biomes
                                          GameRegistry.addBiome(FireTerra);
                                          //registry TileEntity
                                          GameRegistry.registerTileEntity(TileEntityTikkiTorch.class, "TileEntityTikkiTorch");
                                          }
                                          
                                          @EventHandler
                                          public void Init(FMLInitializationEvent event)
                                          {
                                          MinecraftForge.EVENT_BUS.register(new LivingEvent());
                                          proxy.registerRender();
                                          
                                          //entity
                                          EntityRegistry.registerGlobalEntityID(EntityAniZob.class, "Test", EntityRegistry.findGlobalUniqueEntityId(), 24, 30);
                                          EntityRegistry.registerModEntity(EntityAniZob.class, "Test", 250, this, 40, 1, true);
                                          EntityRegistry.addSpawn(EntityAniZob.class, 1, 1, 3, EnumCreatureType.creature);
                                          }
                                          
                                          @EventHandler
                                          public void PostInit(FMLPostInitializationEvent event)
                                          {
                                          
                                          }
                                          }
                                          
                                          
                                          1 réponse Dernière réponse Répondre Citer 0
                                          • B Hors-ligne
                                            BenCG3
                                            dernière édition par

                                            Hmm depuis hier, passé plus de 15heures sur ce tuto ><
                                            Fonctionne toujours pas je suis désespéré …
                                            L’œuf et le mob apparait dans le jeux (même si je le vois pas je ne peux pas poser de block là ou j’ai posé le mob) mais comme plusieurs personne apparemment le skin ne se charge pas …

                                            Voici le log :

                                            
                                            nov. 25, 2013 8:34:33 AM net.minecraft.launchwrapper.LogWrapper log
                                            Infos: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                                            nov. 25, 2013 8:34:33 AM net.minecraft.launchwrapper.LogWrapper log
                                            Infos: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                                            nov. 25, 2013 8:34:33 AM net.minecraft.launchwrapper.LogWrapper log
                                            Infos: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
                                            2013-11-25 08:34:33 [Infos] [ForgeModLoader] Forge Mod Loader version 6.4.45.953 for Minecraft 1.6.4 loading
                                            2013-11-25 08:34:33 [Infos] [ForgeModLoader] Java is Java HotSpot(TM) Client VM, version 1.7.0_45, running on Windows XP:x86:5.1, installed at C:\Program Files\Java\jre7
                                            2013-11-25 08:34:33 [Infos] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                                            2013-11-25 08:34:33 [Infos] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                            2013-11-25 08:34:33 [Infos] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
                                            2013-11-25 08:34:33 [Infos] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                            2013-11-25 08:34:33 [Infos] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                            2013-11-25 08:34:33 [Infos] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                                            2013-11-25 08:34:33 [Infos] [STDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg
                                            2013-11-25 08:34:34 [Grave] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                                            2013-11-25 08:34:35 [Infos] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                                            2013-11-25 08:34:35 [Infos] [STDOUT] Loaded 110 rules from AccessTransformer config file forge_at.cfg
                                            2013-11-25 08:34:35 [Infos] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
                                            2013-11-25 08:34:35 [Infos] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main}
                                            2013-11-25 08:34:36 [Infos] [Minecraft-Client] Setting user: Player757
                                            2013-11-25 08:34:37 [Infos] [Minecraft-Client] LWJGL Version: 2.9.0
                                            2013-11-25 08:34:37 [Infos] [STDERR] javax.imageio.IIOException: Can't read input file!
                                            2013-11-25 08:34:37 [Infos] [STDERR] at javax.imageio.ImageIO.read(Unknown Source)
                                            2013-11-25 08:34:37 [Infos] [STDERR] at net.minecraft.client.Minecraft.readImage(Minecraft.java:558)
                                            2013-11-25 08:34:37 [Infos] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:419)
                                            2013-11-25 08:34:37 [Infos] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:808)
                                            2013-11-25 08:34:37 [Infos] [STDERR] at net.minecraft.client.main.Main.main(Main.java:93)
                                            2013-11-25 08:34:37 [Infos] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                            2013-11-25 08:34:37 [Infos] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                            2013-11-25 08:34:37 [Infos] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                            2013-11-25 08:34:37 [Infos] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
                                            2013-11-25 08:34:37 [Infos] [STDERR] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
                                            2013-11-25 08:34:37 [Infos] [STDERR] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
                                            2013-11-25 08:34:39 [Infos] [Minecraft-Client] Reloading ResourceManager: Default
                                            2013-11-25 08:34:39 [Infos] [MinecraftForge] Attempting early MinecraftForge initialization
                                            2013-11-25 08:34:39 [Infos] [STDOUT] MinecraftForge v9.11.1.953 Initialized
                                            2013-11-25 08:34:39 [Infos] [ForgeModLoader] MinecraftForge v9.11.1.953 Initialized
                                            2013-11-25 08:34:40 [Infos] [STDOUT] Replaced 112 ore recipies
                                            2013-11-25 08:34:40 [Infos] [MinecraftForge] Completed early MinecraftForge initialization
                                            2013-11-25 08:34:40 [Infos] [ForgeModLoader] Reading custom logging properties from C:\Documents and Settings\Administrateur\Bureau\forge\mcp\jars\config\logging.properties
                                            2013-11-25 08:34:40 [Désactivé] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
                                            2013-11-25 08:34:40 [Infos] [ForgeModLoader] Searching C:\Documents and Settings\Administrateur\Bureau\forge\mcp\jars\mods for mods
                                            2013-11-25 08:34:44 [Infos] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
                                            2013-11-25 08:34:44 [Infos] [mcp] Activating mod mcp
                                            2013-11-25 08:34:44 [Infos] [FML] Activating mod FML
                                            2013-11-25 08:34:44 [Infos] [Forge] Activating mod Forge
                                            2013-11-25 08:34:44 [Infos] [testemodel] Activating mod testemodel
                                            2013-11-25 08:34:44 [Avertissement] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well
                                            2013-11-25 08:34:44 [Avertissement] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well
                                            2013-11-25 08:34:44 [Avertissement] [testemodel] Mod testemodel is missing a pack.mcmeta file, things may not work well
                                            2013-11-25 08:34:44 [Infos] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:testemodel
                                            2013-11-25 08:34:44 [Infos] [ForgeModLoader] Registering Forge Packet Handler
                                            2013-11-25 08:34:44 [Infos] [ForgeModLoader] Succeeded registering Forge Packet Handler
                                            2013-11-25 08:34:44 [Infos] [ForgeModLoader] Configured a dormant chunk cache size of 0
                                            2013-11-25 08:34:46 [Infos] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
                                            2013-11-25 08:34:46 [Avertissement] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well
                                            2013-11-25 08:34:46 [Avertissement] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well
                                            2013-11-25 08:34:46 [Avertissement] [testemodel] Mod testemodel is missing a pack.mcmeta file, things may not work well
                                            2013-11-25 08:34:46 [Infos] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:testemodel
                                            2013-11-25 08:34:47 [Infos] [STDOUT]
                                            2013-11-25 08:34:47 [Infos] [STDOUT] Starting up SoundSystem…
                                            2013-11-25 08:34:47 [Infos] [STDOUT] Initializing LWJGL OpenAL
                                            2013-11-25 08:34:47 [Infos] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
                                            2013-11-25 08:34:48 [Infos] [STDOUT] OpenAL initialized.
                                            2013-11-25 08:34:48 [Infos] [STDOUT]
                                            2013-11-25 08:34:49 [Grave] [Minecraft-Client] Realms: Invalid session id
                                            
                                            

                                            ça me fait carrément planter Eclipse ><

                                            Class principal “model1” :

                                            
                                            package testemodel;
                                            
                                            import testemodel.common.CommonProxy;
                                            import net.minecraft.entity.EnumCreatureType;
                                            import net.minecraftforge.common.MinecraftForge;
                                            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.network.NetworkMod;
                                            import cpw.mods.fml.common.registry.EntityRegistry;
                                            import cpw.mods.fml.common.registry.LanguageRegistry;
                                            
                                            @Mod(modid = "testemodel", name = "testemodel", version = "versionDuMod")
                                            @NetworkMod(clientSideRequired = true, serverSideRequired = false)
                                            
                                            public class model1
                                            {
                                            @SidedProxy(clientSide="testemodel.client.ClientProxy", serverSide="testemodel.common.CommonProxy")
                                            public static CommonProxy proxy;
                                            
                                            @Instance("testemodel")
                                            public static model1 modInstance;
                                            
                                            @EventHandler
                                            public void initConfig(FMLPreInitializationEvent event)
                                            {
                                            proxy.registerRenderThings();
                                            }
                                            
                                            @EventHandler
                                            public void load(FMLInitializationEvent event)
                                            {
                                            EntityRegistry.registerGlobalEntityID(EntityAniZob.class, "AniZob", EntityRegistry.findGlobalUniqueEntityId(), 24, 30);
                                            EntityRegistry.registerModEntity(EntityAniZob.class, "AniZob", 250, this, 40, 1, true);
                                            EntityRegistry.addSpawn(EntityAniZob.class, 1, 4, 4, EnumCreatureType.creature);
                                            LanguageRegistry.instance().addStringLocalization("entity.AniZob.name", "AniZob");
                                            }
                                            @EventHandler
                                            public void afterLoad(FMLPostInitializationEvent event)
                                            {
                                            
                                            }
                                            
                                            }
                                            
                                            

                                            Class “EntityAniZob” :

                                            
                                            package testemodel;
                                            import net.minecraft.entity.EntityCreature;
                                            import net.minecraft.entity.SharedMonsterAttributes;
                                            import net.minecraft.entity.ai.EntityAISwimming;
                                            import net.minecraft.world.World;
                                            
                                            public class EntityAniZob extends EntityCreature
                                            {
                                            public EntityAniZob(World world)
                                            {
                                            super(world);
                                            }
                                            @Override
                                            public void applyEntityAttributes()
                                            {
                                            super.applyEntityAttributes();
                                            this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setAttribute(40D);
                                            this.getEntityAttribute(SharedMonsterAttributes.followRange).setAttribute(40.0D);
                                            this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setAttribute(0.699999988079071D);
                                            //this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setAttribute(8.0D);
                                            }
                                            }
                                            
                                            

                                            Class “RenderAniZob” :

                                            
                                            package testemodel;
                                            
                                            import net.minecraft.client.model.ModelBiped;
                                            import net.minecraft.client.renderer.entity.RenderBiped;
                                            import net.minecraft.entity.Entity;
                                            import net.minecraft.util.ResourceLocation;
                                            
                                            public class RenderAniZob extends RenderBiped {
                                            
                                            protected static final ResourceLocation texture = new ResourceLocation("testemodel:alex.png");
                                            
                                            public RenderAniZob(ModelBiped biped, float tailleOmbre)
                                            {
                                            super(biped, tailleOmbre);
                                            }
                                            
                                            protected ResourceLocation getAniZobTextures(EntityAniZob anizob)
                                            {
                                            return texture;
                                            }
                                            
                                            protected ResourceLocation getEntityTexture(Entity par1Entity)
                                            {
                                            return this.getAniZobTextures((EntityAniZob)par1Entity);
                                            }
                                            
                                            }
                                            
                                            

                                            Class “ClientProxy” :

                                            
                                            package testemodel.client;
                                            
                                            import cpw.mods.fml.client.registry.RenderingRegistry;
                                            import testemodel.EntityAniZob;
                                            import testemodel.common.CommonProxy;
                                            import net.minecraft.client.model.ModelBiped;
                                            import net.minecraft.client.renderer.entity.RenderBiped;
                                            import net.minecraftforge.client.MinecraftForgeClient;
                                            
                                            public class ClientProxy extends CommonProxy
                                            {
                                            
                                            @Override
                                            public void registerRenderThings()
                                            {
                                            RenderingRegistry.registerEntityRenderingHandler(EntityAniZob.class, new RenderBiped(new ModelBiped(), 0.5f));
                                            }
                                            }
                                            
                                            

                                            Class “CommonProxy” :

                                            
                                            package testemodel.common;
                                            
                                            import net.minecraft.client.model.ModelBiped;
                                            import net.minecraft.client.renderer.entity.RenderBiped;
                                            import testemodel.EntityAniZob;
                                            import cpw.mods.fml.client.registry.RenderingRegistry;
                                            
                                            public class CommonProxy
                                            {
                                            
                                            public void registerRenderThings()
                                            {
                                            
                                            }
                                            }
                                            
                                            

                                            Et donc l’image teste que j’ai pris d’un mec qui avais le même genre de problème que moi juste avant posé ici :

                                            \mcp\src\minecraft\testemodel\alex.png
                                            

                                            J’ai regardé pourtant, j’ai rien ajouté de plus ou de moins de ce qui est expliqué dans ce tuto, mais ça ne fonctionne toujours pas ><

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

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB