MFF

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

    Texture bébé et random

    Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x
    1.7.10
    47 Messages 6 Publieurs 5.7k Vues 1 Watching
    Charger plus de messages
    • Du plus ancien au plus récent
    • Du plus récent au plus ancien
    • Les plus votés
    Répondre
    • Répondre à l'aide d'un nouveau sujet
    Se connecter pour répondre
    Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
    • LeBossMax2L Hors-ligne
      LeBossMax2
      dernière édition par

      Pour la texture du bébé, il faut que tu ajoute “boolean isChild” en argument au constructeur. Tu dois ensuite ajouter “this.isChild = isChild;” dans ton constructeur. Ce constructeur permettra de faire spawner l’entité en choisissant si c’est un bébé ou non. Ensuite, tu ajoute un deuxième constructeur :

      public EntityDeer(World world)
      {
          this(world, false)
      }
      
      

      Celui-ci permet de spawner l’entité directement adulte.
      Enfin, dans la fonction createChild, tu spécifie que l’entité est un bébé en faisant “return new EntityDeer(this.worldObj, true);”

      (sources : message de AymericRed, partie 1)

      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

        public ResourceLocation getEntityDeerTextures(EntityDeer entity)
           {
               if (entity.isChild())
               {
                   return new ResourceLocation("animalia:textures/entity/deerchild.png");
               }
               else
               {
                   return new ResourceLocation("animalia:textures/entity/deer"  + entity.texture + ".png");
               }
           }
        

        Pourquoi faire compliquer quand on peut faire simple ?
        La fonction isChild() renvoie déjà la valeur qu’on veut et se trouve dans EntityAgeable.

        Pas besoin de créer une nouvelle variable booléenne.

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

          J’ai réussi pour la texture des bébés  😄  J’ai été regardé dans la class des loups comme eux aussi peuvent avoir des textures différents et j’ai trouvé un truc beaucoup plus simple.

          public ResourceLocation getEntityDeerTextures(EntityDeer entity)
              {
                  return entity.isChild() ? new ResourceLocation("animalia:textures/entity/deerchild.png") :  (new ResourceLocation("animalia:textures/entity/deer"  + entity.texture + ".png"));
              }
          

          Par contre, les textures random change toujours dès que je quitte mon monde  😕

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

            Il faudrait que tu print ton entity.texture voir ce qu’il renvoit. Refile nous la classe de ton entity qu’on voit un peu tes erreurs.

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

              Voici la classe:

              public class EntityDeer extends EntityAnimal 
              {
                  public int texture;
                  public EntityDeer(World world)
                  {
                      super(world);
                      texture = this.worldObj.rand.nextInt(2);
                      this.setSize(0.8F, 1.0F);
                      this.getNavigator().setAvoidsWater(true);
                      this.tasks.addTask(0, new EntityAISwimming(this));
                      this.tasks.addTask(1, new EntityAIPanic(this, 1.25D));
                      this.tasks.addTask(2, new EntityAIMate(this, 1.0D));
                      this.tasks.addTask(3, new EntityAITempt(this, 1.2D, Items.wheat, false));
                      this.tasks.addTask(4, new EntityAIFollowParent(this, 1.1D));
                      this.tasks.addTask(5, new EntityAIWander(this, 1.0D));
                      this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
                      this.tasks.addTask(7, new EntityAILookIdle(this)); 
                  }
              
                  protected void entityInit()
                  {
                      super.entityInit();
                      this.dataWatcher.addObject(18, Byte.valueOf((byte)0));
                  }
              
                  public boolean isAIEnabled()
                  {
                      return true;
                  }
              
                  public void applyEntityAttributes()
                  {
                      super.applyEntityAttributes();
                      this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(10D);
                      this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.25D);
                  }
              
                  public EntityDeer createChild(EntityAgeable entity)
                  {
                      return new EntityDeer(this.worldObj);
                  }
              
                  public boolean isBreedingItem(ItemStack breed)
                  {
                      return breed != null && breed.getItem() == Items.wheat;
                  }
              
                  public void writeEntityToNBT (NBTTagCompound tag)
                  {
                      super.writeEntityToNBT(tag);
                      tag.setInteger("DeerType", this.getSkin());
                  }
              
                  public void readEntityFromNBT(NBTTagCompound tag)
                  {
                    super.readEntityFromNBT(tag);
                    this.setSkin(tag.getInteger("DeerType"));
                  }
              
                  public int getSkin()
                  {
                    return this.dataWatcher.getWatchableObjectByte(18);
                  }
              
                  public void setSkin(int skin)
                  {
                    this.dataWatcher.updateObject(18, Byte.valueOf((byte)skin));
                  }
              }
              

              Les 4 dernières fonctions et la “protected void entityInit” viennent de l’EntityOcelot

              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

                this.dataWatcher.addObject(18, Byte.valueOf((byte)0));
                ->
                this.dataWatcher.addObject(18, Byte.valueOf((byte)texture));

                et dans la fonction getEntityDeerTextures du rendu remplaces entity.texture par entity.getSkin()

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

                  Je viens d’essayer ça mais il n’y a plus de texture random (les animaux adultes sont tous les mêmes) quand je remplace entity.texture par entity.getSkin()

                  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

                    Tu as aussi changé la ligne avec le data watcher ?

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

                      Si c’est de celle-ci (this.dataWatcher.addObject(18, Byte.valueOf((byte)texture));) dont tu parle, alors oui je l’ai aussi changé

                      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

                        Ajoutes des System.out.println(texture) / System.out.println(entity.getSkin()) dans le constructeur de la classe de ton entité et dans le code du rendu et envoies les logs.

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

                          Je dois les coller où exactement dans la class Render? Et dans le constructeur il y a une erreur avec le ‘entity’, je laisse comme ça et je lance minecraft?
                          J’envoie les logs client et serveur?

                          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 la fonction getEntityDeerTextures

                            Envoies simplement ce qu’il y a dans la console d’eclipse.

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

                              Voici donc le log quand je lance minecraft

                              [16:33:31] [main/INFO] [GradleStart]: username: Valina02
                              [16:33:31] [main/INFO] [GradleStart]: Extra: []
                              [16:33:31] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Valentine 02/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --username, Valina02, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
                              [16:33:31] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                              [16:33:31] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                              [16:33:31] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
                              [16:33:31] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
                              [16:33:31] [main/INFO] [FML]: Forge Mod Loader version 7.99.40.1614 for Minecraft 1.7.10 loading
                              [16:33:31] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_91, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_91
                              [16:33:31] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                              [16:33:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
                              [16:33:31] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
                              [16:33:31] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
                              [16:33:31] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                              [16:33:31] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
                              [16:33:31] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                              [16:33:31] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                              [16:33:31] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                              [16:33:31] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                              [16:33:32] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                              [16:33:34] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
                              [16:33:34] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                              [16:33:34] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
                              [16:33:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                              [16:33:34] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
                              [16:33:34] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
                              [16:33:34] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
                              [16:33:35] [main/INFO]: Setting user: Valina02
                              [16:33:37] [Client thread/INFO]: LWJGL Version: 2.9.1
                              [16:33:38] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ----
                              // You're mean.
                              
                              Time: 7/07/16 16:33
                              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.7.10
                              Operating System: Windows 8.1 (amd64) version 6.3
                              Java Version: 1.8.0_91, Oracle Corporation
                              Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
                              Memory: 748054104 bytes (713 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
                              JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                              AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                              IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
                              FML:
                              GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.3.0' Renderer: 'GeForce GT 620/PCIe/SSE2'
                              [16:33:38] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
                              [16:33:38] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1614 Initialized
                              [16:33:38] [Client thread/INFO] [FML]: Replaced 183 ore recipies
                              [16:33:39] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
                              [16:33:39] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
                              [16:33:39] [Client thread/INFO] [FML]: Searching C:\Users\Valentine 02\Documents\Minecraft\Modding\FORGE\forge-1.7.10\eclipse\mods for mods
                              [16:33:44] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
                              [16:33:45] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, animalia] at CLIENT
                              [16:33:45] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, animalia] at SERVER
                              [16:33:45] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Animalia
                              [16:33:45] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
                              [16:33:45] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
                              [16:33:45] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
                              [16:33:45] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
                              [16:33:45] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
                              [16:33:45] [Client thread/INFO] [FML]: Applying holder lookups
                              [16:33:45] [Client thread/INFO] [FML]: Holder lookups applied
                              [16:33:45] [Client thread/INFO] [FML]: Injecting itemstacks
                              [16:33:45] [Client thread/INFO] [FML]: Itemstack injection complete
                              [16:33:45] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
                              [16:33:45] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                              [16:33:45] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                              [16:33:45] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                              [16:33:46] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                              [16:33:46] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
                              [16:33:46] [Sound Library Loader/INFO]: Sound engine started
                              [16:33:48] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
                              [16:33:48] [Client thread/INFO]: Created: 16x16 textures/items-atlas
                              [16:33:48] [Client thread/INFO] [FML]: Injecting itemstacks
                              [16:33:48] [Client thread/INFO] [FML]: Itemstack injection complete
                              [16:33:48] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
                              [16:33:48] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Animalia
                              [16:33:48] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
                              [16:33:48] [Client thread/INFO]: Created: 256x256 textures/items-atlas
                              [16:33:48] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
                              [16:33:48] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
                              [16:33:48] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
                              [16:33:48] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
                              [16:33:48] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
                              [16:33:48] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                              [16:33:49] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                              [16:33:49] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                              [16:33:49] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                              [16:33:49] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
                              [16:33:49] [Sound Library Loader/INFO]: Sound engine started
                              
                              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

                                Charges un monde où se trouve l’entité, sinon ça ne sert à rien x)

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

                                  @‘robin4002’:

                                  Charges un mod où se trouve l’entité, sinon ça ne sert à rien x)

                                  Un monde tu voulais dire ?

                                  Si je vous ai aidé, n'oubliez pas d’être heureux, j'aiderai encore +

                                  AymericRed, moddeur expérimenté qui aide sur ce forum et qui peut accepter de faire un mod Forge rémunéré de temps en temps.

                                  Mes tutos : Table de craft, plugin NEI, plugin JEI, modifier l'overlay
                                  Je suis un membre apprécié et joueur, j'ai déjà obtenu 6 points de réputation.

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

                                    Donc le log quand je fais spawn l’entité avec un oeuf

                                    [17:16:56] [main/INFO] [GradleStart]: username: Valina02
                                    [17:16:56] [main/INFO] [GradleStart]: Extra: []
                                    [17:16:56] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Valentine 02/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --username, Valina02, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
                                    [17:16:56] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                                    [17:16:56] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                                    [17:16:56] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
                                    [17:16:56] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
                                    [17:16:56] [main/INFO] [FML]: Forge Mod Loader version 7.99.40.1614 for Minecraft 1.7.10 loading
                                    [17:16:56] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_91, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_91
                                    [17:16:56] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                                    [17:16:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
                                    [17:16:56] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
                                    [17:16:56] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
                                    [17:16:56] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                    [17:16:56] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
                                    [17:16:56] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                                    [17:16:56] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                    [17:16:56] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                    [17:16:56] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                                    [17:16:56] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                                    [17:16:59] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
                                    [17:16:59] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                                    [17:16:59] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
                                    [17:16:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                                    [17:16:59] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
                                    [17:16:59] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
                                    [17:16:59] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
                                    [17:17:00] [main/INFO]: Setting user: Valina02
                                    [17:17:03] [Client thread/INFO]: LWJGL Version: 2.9.1
                                    [17:17:04] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ----
                                    // Who set us up the TNT?
                                    
                                    Time: 7/07/16 17:17
                                    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.7.10
                                    Operating System: Windows 8.1 (amd64) version 6.3
                                    Java Version: 1.8.0_91, Oracle Corporation
                                    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
                                    Memory: 753096144 bytes (718 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
                                    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                                    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                                    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
                                    FML: 
                                    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.3.0' Renderer: 'GeForce GT 620/PCIe/SSE2'
                                    [17:17:04] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
                                    [17:17:04] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1614 Initialized
                                    [17:17:04] [Client thread/INFO] [FML]: Replaced 183 ore recipies
                                    [17:17:04] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
                                    [17:17:04] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
                                    [17:17:04] [Client thread/INFO] [FML]: Searching C:\Users\Valentine 02\Documents\Minecraft\Modding\FORGE\forge-1.7.10\eclipse\mods for mods
                                    [17:17:12] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
                                    [17:17:12] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, animalia] at CLIENT
                                    [17:17:12] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, animalia] at SERVER
                                    [17:17:13] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Animalia
                                    [17:17:13] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
                                    [17:17:13] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
                                    [17:17:13] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
                                    [17:17:13] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
                                    [17:17:13] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
                                    [17:17:13] [Client thread/INFO] [FML]: Applying holder lookups
                                    [17:17:13] [Client thread/INFO] [FML]: Holder lookups applied
                                    [17:17:13] [Client thread/INFO] [FML]: Injecting itemstacks
                                    [17:17:13] [Client thread/INFO] [FML]: Itemstack injection complete
                                    [17:17:13] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                    [17:17:13] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                                    [17:17:13] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                                    [17:17:13] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                                    [17:17:13] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                                    [17:17:14] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                    [17:17:14] [Sound Library Loader/INFO]: Sound engine started
                                    [17:17:15] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
                                    [17:17:15] [Client thread/INFO]: Created: 16x16 textures/items-atlas
                                    [17:17:16] [Client thread/INFO] [FML]: Injecting itemstacks
                                    [17:17:16] [Client thread/INFO] [FML]: Itemstack injection complete
                                    [17:17:16] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
                                    [17:17:16] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Animalia
                                    [17:17:16] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
                                    [17:17:16] [Client thread/INFO]: Created: 256x256 textures/items-atlas
                                    [17:17:16] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                    [17:17:16] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
                                    [17:17:16] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
                                    [17:17:16] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                    [17:17:16] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                    [17:17:16] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                                    [17:17:16] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                                    [17:17:16] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                                    [17:17:16] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                                    [17:17:17] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                    [17:17:17] [Sound Library Loader/INFO]: Sound engine started
                                    [17:17:28] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
                                    [17:17:28] [Server thread/INFO]: Generating keypair
                                    [17:17:28] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
                                    [17:17:28] [Server thread/INFO] [FML]: Applying holder lookups
                                    [17:17:28] [Server thread/INFO] [FML]: Holder lookups applied
                                    [17:17:28] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@130e99b)
                                    [17:17:28] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@130e99b)
                                    [17:17:28] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@130e99b)
                                    [17:17:28] [Server thread/INFO]: Preparing start region for level 0
                                    [17:17:29] [Server thread/INFO]: Changing view distance to 12, from 10
                                    [17:17:30] [Netty Client IO #0/INFO] [FML]: Server protocol version 2
                                    [17:17:30] [Netty IO #1/INFO] [FML]: Client protocol version 2
                                    [17:17:30] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@7.10.99.99,Forge@10.13.4.1614,mcp@9.05,animalia@1.0
                                    [17:17:30] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
                                    [17:17:30] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
                                    [17:17:30] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
                                    [17:17:30] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
                                    [17:17:30] [Server thread/INFO]: Valina02[local:E:069455f6] logged in with entity id 316 at (222.85279939072382, 69.0, 266.53779585750794)
                                    [17:17:30] [Server thread/INFO]: Valina02 joined the game
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: java.lang.reflect.InvocationTargetException
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Constructor.newInstance(Unknown Source)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.entity.EntityList.createEntityByID(EntityList.java:222)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.item.ItemMonsterPlacer.spawnCreature(ItemMonsterPlacer.java:173)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.item.ItemMonsterPlacer.onItemUse(ItemMonsterPlacer.java:79)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:507)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:142)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:422)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: Caused by: java.lang.Error: Unresolved compilation problem: 
                                    entity cannot be resolved
                                    
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at valina02.mods.animalia.entity.EntityDeer.<init>(EntityDeer.java:40)
                                    [17:17:34] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: … 20 more
                                    [17:17:34] [Server thread/WARN]: Skipping Entity with id 23
                                    [17:19:26] [Server thread/INFO]: Saving and pausing game…
                                    [17:19:26] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
                                    [17:19:26] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
                                    [17:19:26] [Server thread/INFO]: Saving chunks for level 'New World'/The End
                                    [17:19:26] [Server thread/INFO]: Stopping server
                                    [17:19:26] [Server thread/INFO]: Saving players
                                    [17:19:27] [Server thread/INFO]: Saving worlds
                                    [17:19:27] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
                                    [17:19:27] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
                                    [17:19:27] [Server thread/INFO]: Saving chunks for level 'New World'/The End
                                    [17:19:27] [Server thread/INFO] [FML]: Unloading dimension 0
                                    [17:19:27] [Server thread/INFO] [FML]: Unloading dimension -1
                                    [17:19:27] [Server thread/INFO] [FML]: Unloading dimension 1
                                    [17:19:27] [Server thread/INFO] [FML]: Applying holder lookups
                                    [17:19:27] [Server thread/INFO] [FML]: Holder lookups applied
                                    [17:19:27] [Client thread/INFO]: Stopping!
                                    [17:19:27] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                    [17:19:27] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
                                    [17:19:28] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
                                    [17:19:28] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
                                    
                                    ```</init>
                                    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 y a une erreur à la ligne 40 de EntityDeer

                                      @AymericRed oui, c’est corrigé

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

                                        la ligne 40 c’est ça System.out.println(entity.getSkin());, l’erreur vient du entity

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

                                          Tu n’as pas de variable appelée entity, envoi ta classe ou méthode

                                          Site web contenant mes scripts : http://SCAREXgaming.github.io

                                          Pas de demandes de support par MP ni par skype SVP.
                                          Je n'accepte sur skype que l…

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

                                            la classe

                                            public class EntityDeer extends EntityAnimal 
                                            {
                                                public int texture;
                                                public EntityDeer(World world)
                                                {
                                                    super(world);
                                                    texture = this.worldObj.rand.nextInt(2);
                                                    this.setSize(0.8F, 1.0F);
                                                    this.getNavigator().setAvoidsWater(true);
                                                    this.tasks.addTask(0, new EntityAISwimming(this));
                                                    this.tasks.addTask(1, new EntityAIPanic(this, 1.25D));
                                                    this.tasks.addTask(2, new EntityAIMate(this, 1.0D));
                                                    this.tasks.addTask(3, new EntityAITempt(this, 1.2D, Items.wheat, false));
                                                    this.tasks.addTask(4, new EntityAIFollowParent(this, 1.1D));
                                                    this.tasks.addTask(5, new EntityAIWander(this, 1.0D));
                                                    this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
                                                    this.tasks.addTask(7, new EntityAILookIdle(this)); 
                                            
                                                    System.out.println(texture);
                                                    System.out.println(entity.getSkin());
                                                }
                                            
                                                protected void entityInit()
                                                {
                                                    super.entityInit();
                                                    this.dataWatcher.addObject(18, Byte.valueOf((byte)texture));
                                                }
                                            
                                                public boolean isAIEnabled()
                                                {
                                                    return true;
                                                }
                                            
                                                public void applyEntityAttributes()
                                                {
                                                    super.applyEntityAttributes();
                                                    this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(10D);
                                                    this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.25D);
                                                }
                                            
                                                public EntityDeer createChild(EntityAgeable entity)
                                                {
                                                    return new EntityDeer(this.worldObj);
                                                }
                                            
                                                public boolean isBreedingItem(ItemStack breed)
                                                {
                                                    return breed != null && breed.getItem() == Items.wheat;
                                                }
                                            
                                                public void writeEntityToNBT (NBTTagCompound tag)
                                                {
                                                    super.writeEntityToNBT(tag);
                                                    tag.setInteger("DeerType", this.getSkin());
                                                }
                                            
                                                public void readEntityFromNBT(NBTTagCompound tag)
                                                {
                                                  super.readEntityFromNBT(tag);
                                                  this.setSkin(tag.getInteger("DeerType"));
                                                }
                                            
                                                public int getSkin()
                                                {
                                                  return this.dataWatcher.getWatchableObjectByte(18);
                                                }
                                            
                                                public void setSkin(int skin)
                                                {
                                                  this.dataWatcher.updateObject(18, Byte.valueOf((byte)texture));
                                                }
                                            }
                                            
                                            1 réponse Dernière réponse Répondre Citer 0
                                            • 1
                                            • 2
                                            • 3
                                            • 3 / 3
                                            • Premier message
                                              Dernier message
                                            Design by Woryk
                                            ContactMentions Légales

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB