MFF

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

    Rendu d'item avec un model techne

    Planifier Épinglé Verrouillé Déplacé Les items
    1.6.x
    137 Messages 24 Publieurs 50.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.
    • D Hors-ligne
      Derwaan
      dernière édition par

      Voilà j’ai trouvé, c’était bien l’axe qui posait problème apparemment, il faut mettre un angle négatif pour voir une modification…
      Merci tout le monde pour m’avoir aider !

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

        Bonjour bonjour j’ai un petit probleme au niveau du lancement du rendu
        lorsque le jeu ce lance il crash avec le rendu, je l’ai désactiver pour tester sa marche voici txt de crash

        
        –-- Minecraft Crash Report ----
        
        // But it works on my machine.
        
        Time: 09/10/14 21:18
        Description: Initializing game
        
        java.lang.ClassCastException: google.pulganr.common.PhoneTechneModel cannot be cast to net.minecraftforge.client.IItemRenderer
        at google.pulganr.client.ClientProxy.registerRender(ClientProxy.java:18)
        at google.pulganr.common.ModTutoriel.init(ModTutoriel.java:109)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
        at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
        at com.google.common.eventbus.EventBus.post(EventBus.java:275)
        at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
        at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
        at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
        at com.google.common.eventbus.EventBus.post(EventBus.java:275)
        at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
        at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
        at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288)
        at net.minecraft.client.Minecraft.startGame(Minecraft.java:586)
        at net.minecraft.client.Minecraft.run(Minecraft.java:931)
        at net.minecraft.client.main.Main.main(Main.java:164)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at GradleStart.bounce(GradleStart.java:107)
        at GradleStart.startClient(GradleStart.java:100)
        at GradleStart.main(GradleStart.java:55)
        
        A detailed walkthrough of the error, its code path and all known details is as follows:
        ---------------------------------------------------------------------------------------
        
        -- Head --
        Stacktrace:
        at google.pulganr.client.ClientProxy.registerRender(ClientProxy.java:18)
        at google.pulganr.common.ModTutoriel.init(ModTutoriel.java:109)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
        at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
        at com.google.common.eventbus.EventBus.post(EventBus.java:275)
        at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
        at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
        at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
        at com.google.common.eventbus.EventBus.post(EventBus.java:275)
        at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
        at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
        at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288)
        at net.minecraft.client.Minecraft.startGame(Minecraft.java:586)
        
        -- Initialization --
        Details:
        Stacktrace:
        at net.minecraft.client.Minecraft.run(Minecraft.java:931)
        at net.minecraft.client.main.Main.main(Main.java:164)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at GradleStart.bounce(GradleStart.java:107)
        at GradleStart.startClient(GradleStart.java:100)
        at GradleStart.main(GradleStart.java:55)
        
        -- System Details --
        Details:
        Minecraft Version: 1.7.10
        Operating System: Windows 7 (amd64) version 6.1
        Java Version: 1.7.0_65, Oracle Corporation
        Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 730515248 bytes (696 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: MCP v9.05 FML v7.10.84.1217 Minecraft Forge 10.13.1.1217 5 mods loaded, 5 mods active
        mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
        FML{7.10.84.1217} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.1.1217.jar) Unloaded->Constructed->Pre-initialized->Initialized
        Forge{10.13.1.1217} [Minecraft Forge] (forgeSrc-1.7.10-10.13.1.1217.jar) Unloaded->Constructed->Pre-initialized->Initialized
        examplemod{1.0} [examplemod] (bin) Unloaded->Constructed->Pre-initialized->Initialized
        pulganrmod{0.0.37 BETA} [Watch Craft] (bin) Unloaded->Constructed->Pre-initialized->Errored
        Launched Version: 1.7.10
        LWJGL: 2.9.1
        OpenGL: GeForce GTX 660/PCIe/SSE2 GL version 4.4.0 NVIDIA 344.11, NVIDIA Corporation
        GL Caps: Using GL 1.3 multitexturing.
        Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
        Anisotropic filtering is supported and maximum anisotropy is 16.
        Shaders are available because OpenGL 2.1 is supported.
        
        Is Modded: Definitely; Client brand changed to 'fml,forge'
        Type: Client (map_client.txt)
        Resource Packs: []
        Current Language: Français (France)
        Profiler Position: N/A (disabled)
        Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
        Anisotropic Filtering: On (16)
        

        et voici mes classes :

        classe rendu techne

        ​package google.pulganr.common;
        
        import net.minecraft.client.model.ModelBase;
        import net.minecraft.client.model.ModelRenderer;
        import net.minecraft.entity.Entity;
        
        public class PhoneTechneModel extends ModelBase
        {
          //fields
            ModelRenderer telephone;
        
          public PhoneTechneModel()
          {
            textureWidth = 64;
            textureHeight = 64;
        
              telephone = new ModelRenderer(this, 0, 0);
              telephone.addBox(0F, 0F, 0F, 9, 1, 6);
              telephone.setRotationPoint(-3F, 23F, 0F);
              telephone.setTextureSize(64, 64);
              telephone.mirror = true;
              setRotation(telephone, 0F, 0F, 0F);
          }
        
          public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
          {
          super.render(entity, f, f1, f2, f3, f4, f5);
          setRotationAngles(f, f1, f2, f3, f4, f5, entity);
            telephone.render(f5);
          }
        
          private void setRotation(ModelRenderer model, float x, float y, float z)
          {
            model.rotateAngleX = x;
            model.rotateAngleY = y;
            model.rotateAngleZ = z;
          }
        
          public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
          {
          super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
          }
        }
        

        classe de l’item:

        ​package google.pulganr.common;
        
        import org.lwjgl.opengl.GL11;
        
        import net.minecraft.client.Minecraft;
        import net.minecraft.client.renderer.texture.IIconRegister;
        import net.minecraft.entity.Entity;
        import net.minecraft.entity.item.EntityTNTPrimed;
        import net.minecraft.entity.player.EntityPlayer;
        import net.minecraft.item.Item;
        import net.minecraft.item.ItemStack;
        import net.minecraft.util.MovingObjectPosition;
        import net.minecraft.util.ResourceLocation;
        import net.minecraft.world.World;
        import net.minecraftforge.client.IItemRenderer;
        
        public class ItemTelephone extends Item implements IItemRenderer
        
        {
        protected PhoneTechneModel model;
        protected static final ResourceLocation texture = new ResourceLocation("ModTutoriel:textures/items/itemTechne.png");
        public ItemTelephone()
        {
        
           this.setCreativeTab(ModTutoriel.watchcraftCreativeTabs);
           model = new PhoneTechneModel();
        }
        @Override
        public void registerIcons(IIconRegister iconregister)
        {
                this.itemIcon = iconregister.registerIcon(ModTutoriel.MODID + ":telephonehack1");
                this.itemIcon = iconregister.registerIcon(ModTutoriel.MODID + ":telephonebase");
               this.itemIcon = iconregister.registerIcon(ModTutoriel.MODID + ":telephonehack2");
              this.itemIcon = iconregister.registerIcon(ModTutoriel.MODID + ":telephonehack3");
              this.itemIcon = iconregister.registerIcon(ModTutoriel.MODID + ":telephonebase");
        }
        
        public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
            {
        
        MovingObjectPosition objectMouseOver = player.rayTrace(64, 1); //rayTace = pos pointer
        if(objectMouseOver.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK && !world.isRemote)
        {
        EntityTNTPrimed tnt = new EntityTNTPrimed(world, objectMouseOver.blockX, objectMouseOver.blockY + 1, objectMouseOver.blockZ, player);
        world.spawnEntityInWorld(tnt);
        }
                return stack;
        
            }
        
        @Override
        public boolean handleRenderType(ItemStack item, ItemRenderType type) 
        {
        switch(type)
        {
        case EQUIPPED:
        return true;
        default:
        return false;
        }
        }
        
        @Override
        public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item,
        ItemRendererHelper helper) 
        {
        return false;
        }
        
        @Override
        public void renderItem(ItemRenderType type, ItemStack item, Object… data) 
        {
        switch(type)
        {
        case EQUIPPED:
        {
        GL11.glPushMatrix();
        Minecraft.getMinecraft().renderEngine.bindTexture(texture);
        model.render((Entity)data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
        GL11.glPopMatrix();
        break;
        }
        case ENTITY:
        {
        GL11.glPushMatrix();
        Minecraft.getMinecraft().renderEngine.bindTexture(texture);
        model.render((Entity)data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
        GL11.glPopMatrix();
        break;
        }
        default:
        break;
        }
        }
        
        }
        

        et classe ClientProxy :

        ​package google.pulganr.client;
        
        import google.pulganr.common.EntityMobTutoriel;
        import google.pulganr.common.ModTutoriel;
        import google.pulganr.common.PhoneTechneModel;
        import net.minecraft.client.model.ModelBiped;
        import net.minecraftforge.client.IItemRenderer;
        import net.minecraftforge.client.MinecraftForgeClient;
        import cpw.mods.fml.client.registry.RenderingRegistry;
        
        public class ClientProxy extends CommonProxy
        {
        @Override
        public void registerRender()
        {
        System.out.println("méthode côté client");
        RenderingRegistry.registerEntityRenderingHandler(EntityMobTutoriel.class, new RenderMobTutoriel(new ModelBiped(), 0.5F));
        MinecraftForgeClient.registerItemRenderer(ModTutoriel.telephone, (IItemRenderer)new PhoneTechneModel());
        }
        }
        
        

        une idée? :huh:

        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

          MinecraftForgeClient.registerItemRenderer(ModTutoriel.telephone, (IItemRenderer)new PhoneTechneModel());

          Tu dois avoir ici la classe du rendu, pas du modèle, donc la classe ItemTelephone (d’ailleurs tu aurai du faire une classe à part plutôt qu’ajouter le code dans la classe de ton item, mais ça devrait aussi fonctionner).

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

            @‘robin4002’:

            MinecraftForgeClient.registerItemRenderer(ModTutoriel.telephone, (IItemRenderer)new PhoneTechneModel());

            Tu dois avoir ici la classe du rendu, pas du modèle, donc la classe ItemTelephone (d’ailleurs tu aurai du faire une classe à part plutôt qu’ajouter le code dans la classe de ton item, mais ça devrait aussi fonctionner).

            je doit bien mettre ceci dans la classe ClientProxy? 
            car si oui :  j’ai encore le crash
            si non : je suis nul

            sinon j’ai mit ceci

            ​public void renderItem(ItemRenderType type, ItemStack item, Object… data) 
            
            {
            switch(type)
            {
            case EQUIPPED:
            {
            GL11.glPushMatrix();
            Minecraft.getMinecraft().renderEngine.bindTexture(texture);
            model.render((Entity)data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
            GL11.glPopMatrix();
            break;
            }
            case ENTITY:
            {
            GL11.glPushMatrix();
            Minecraft.getMinecraft().renderEngine.bindTexture(texture);
            model.render((Entity)data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
            GL11.glPopMatrix();
            break;
            }
            default:
            break;
            }
            

            Pour avoir le rendu au sol mais rien dans :

            ​@Override
            
            public boolean handleRenderType(ItemStack item, ItemRenderType type) 
            {
            switch(type)
            {
            case EQUIPPED:
            return true;
            default:
            return false;
            }
            }
            

            C’est normal?

            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, tu l’as déjà normalement, il faut que tu modifie par ce que je t’ai dit de mettre.
              Et non ce n’est pas normal, il faut que tu ajoutes case ENTITY et return true; dans handleRenderType

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

                @‘robin4002’:

                Non, tu l’as déjà normalement, il faut que tu modifie par ce que je t’ai dit de mettre.
                Et non ce n’est pas normal, il faut que tu ajoutes case ENTITY et return true; dans handleRenderType

                finalement j’ai fait le TechneRender ailleur et j’ai rajouter le morceau de code et sa marche merci robin


                encore moi 😄 j’ai une erreur sur cette ligne

                1. %(#000000)[GL11]%(#666600)[.]%(#000000)[glRotatef]%(#666600)[(]%(#000000)[*Angle*]%(#666600)[,] %(#646464)[0.0F]%(#666600)[,] %(#646464)[1.0F]%(#666600)[,] %(#646464)[0.0F]%(#666600)[);]
                  

                  le angle est souligner que doi-je faire?

                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 faut que tu remplace angle par une valeur

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

                    Ce tutoriel marche toujours en 1.7.10 ?

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

                      @‘Oeilomega’:

                      Ce tutoriel marche toujours en 1.7.10 ?

                      Oui

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

                        Ok merci^^

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

                          J’ai un probleme, j’ai suivis le tuto et meme chercher sur le web mais je ne trouves pas de solution:
                          je fais comme c’est ecrit mais il ne reconnait pas le:

                          :::
                          “model.render((Entity) data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);”
                          :::
                          ca me dit:
                          :::
                          The method render(Entity, float, float, float, float, float, float) is undefined for the type ItemBaguetteSureauTechneRender.
                          :::

                          Vous pouvez m’aider ?

                          Mon code:
                          :::

                          ​package com.harrypotter.sosoh.client;
                          
                          import org.lwjgl.opengl.GL11;
                          
                          import net.minecraft.client.Minecraft;
                          import net.minecraft.entity.Entity;
                          import net.minecraft.item.ItemStack;
                          import net.minecraft.util.ResourceLocation;
                          import net.minecraftforge.client.IItemRenderer;
                          
                          public class ItemBaguetteSureauTechneRender implements IItemRenderer{
                          
                          protected ItemBaguetteSureauTechneRender model;
                          protected static final ResourceLocation texture = new ResourceLocation("ModTutoriel:textures/items/itemTechne.png");
                          
                          public ItemBaguetteSureauTechneRender ()
                          {
                          model = new ItemBaguetteSureauTechneRender();
                          }
                          
                          @Override
                          public boolean handleRenderType(ItemStack item, ItemRenderType type)
                          {
                          switch(type)
                          {
                          case EQUIPPED:
                          return true;
                          default:
                          return false;
                          }
                          }
                          
                          @Override
                          public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper)
                          {
                          return false;
                          }
                          
                          @Override
                          public void renderItem(ItemRenderType type, ItemStack item, Object… data)
                          {
                          switch(type)
                          {
                          case EQUIPPED:
                          {
                          GL11.glPushMatrix();
                                      Minecraft.getMinecraft().renderEngine.bindTexture(texture);
                                      GL11.glRotatef(0F, 1.0f, 0.0f, 0.0f);
                                      GL11.glRotatef(-5F, 0.0f, 1.0f, 0.0f);
                                      GL11.glRotatef(-150F, 0.0f, 0.0f, 1.0f);
                                      GL11.glTranslatef(-0.8F, 0.6F, -0.1F);
                                      model.render((Entity) data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
                                      GL11.glPopMatrix();
                                      break;
                          }
                          default:
                          break;
                          }
                          }
                          
                          }
                          

                          :::

                          Developpeur d'Hogsmod, un mod implémentant le Monde d'Harry Potter dans Minecraft!

                          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

                            Fait voir le code de ton modèle ?

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

                              Voila:
                              :::

                              ​package com.harrypotter.sosoh.client;
                              
                              import net.minecraft.client.model.ModelBase;
                              import net.minecraft.client.model.ModelRenderer;
                              import net.minecraft.entity.Entity;
                              
                              public class ModelBaguetteSureau extends ModelBase
                              {
                                //fields
                                  ModelRenderer Shape1;
                                  ModelRenderer Shape2;
                                  ModelRenderer Shape3;
                                  ModelRenderer Shape4;
                                  ModelRenderer Shape5;
                                  ModelRenderer Shape6;
                                  ModelRenderer Shape7;
                                  ModelRenderer Shape8;
                                  ModelRenderer Shape9;
                              
                                public ModelBaguetteSureau()
                                {
                                  textureWidth = 64;
                                  textureHeight = 32;
                              
                                    Shape1 = new ModelRenderer(this, 0, 0);
                                    Shape1.addBox(0F, 0F, 0F, 1, 1, 14);
                                    Shape1.setRotationPoint(0F, 20.36667F, -8F);
                                    Shape1.setTextureSize(64, 32);
                                    Shape1.mirror = true;
                                    setRotation(Shape1, 0F, 0F, 0F);
                                    Shape2 = new ModelRenderer(this, 36, 0);
                                    Shape2.addBox(0F, 0F, 0F, 2, 2, 1);
                                    Shape2.setRotationPoint(-0.5F, 19.86667F, 6F);
                                    Shape2.setTextureSize(64, 32);
                                    Shape2.mirror = true;
                                    setRotation(Shape2, 0F, 0F, 0F);
                                    Shape3 = new ModelRenderer(this, 36, 0);
                                    Shape3.addBox(0F, 0F, 0F, 2, 2, 1);
                                    Shape3.setRotationPoint(-0.5F, 19.9F, 3F);
                                    Shape3.setTextureSize(64, 32);
                                    Shape3.mirror = true;
                                    setRotation(Shape3, 0F, 0F, 0F);
                                    Shape4 = new ModelRenderer(this, 43, 0);
                                    Shape4.addBox(0F, 0F, 0F, 3, 3, 1);
                                    Shape4.setRotationPoint(-1F, 19.5F, 0F);
                                    Shape4.setTextureSize(64, 32);
                                    Shape4.mirror = true;
                                    setRotation(Shape4, 0F, 0F, 0F);
                                    Shape5 = new ModelRenderer(this, 36, 0);
                                    Shape5.addBox(0F, 0F, 0F, 2, 2, 1);
                                    Shape5.setRotationPoint(-0.5F, 19.9F, -2.5F);
                                    Shape5.setTextureSize(64, 32);
                                    Shape5.mirror = true;
                                    setRotation(Shape5, 0F, 0F, 0F);
                                    Shape6 = new ModelRenderer(this, 31, 0);
                                    Shape6.addBox(0F, 0F, 0F, 1, 1, 1);
                                    Shape6.setRotationPoint(0F, 20.1F, -6F);
                                    Shape6.setTextureSize(64, 32);
                                    Shape6.mirror = true;
                                    setRotation(Shape6, 0F, 0F, 0F);
                                    Shape7 = new ModelRenderer(this, 31, 0);
                                    Shape7.addBox(0F, 0F, 0F, 1, 1, 1);
                                    Shape7.setRotationPoint(0F, 20.6F, -6F);
                                    Shape7.setTextureSize(64, 32);
                                    Shape7.mirror = true;
                                    setRotation(Shape7, 0F, 0F, 0F);
                                    Shape8 = new ModelRenderer(this, 31, 0);
                                    Shape8.addBox(0F, 0F, 0F, 1, 1, 1);
                                    Shape8.setRotationPoint(0.3F, 20.35F, -6F);
                                    Shape8.setTextureSize(64, 32);
                                    Shape8.mirror = true;
                                    setRotation(Shape8, 0F, 0F, 0F);
                                    Shape9 = new ModelRenderer(this, 31, 0);
                                    Shape9.addBox(0F, 0F, 0F, 1, 1, 1);
                                    Shape9.setRotationPoint(-0.3F, 20.4F, -6F);
                                    Shape9.setTextureSize(64, 32);
                                    Shape9.mirror = true;
                                    setRotation(Shape9, 0F, 0F, 0F);
                                }
                              
                                public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
                                {
                                  super.render(entity, f, f1, f2, f3, f4, f5);
                                  setRotationAngles(f, f1, f2, f3, f4, f5, entity);
                                  Shape1.render(f5);
                                  Shape2.render(f5);
                                  Shape3.render(f5);
                                  Shape4.render(f5);
                                  Shape5.render(f5);
                                  Shape6.render(f5);
                                  Shape7.render(f5);
                                  Shape8.render(f5);
                                  Shape9.render(f5);
                                }
                              
                                private void setRotation(ModelRenderer model, float x, float y, float z)
                                {
                                  model.rotateAngleX = x;
                                  model.rotateAngleY = y;
                                  model.rotateAngleZ = z;
                                }
                              
                                public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
                                {
                                super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
                                }
                              
                              }
                              

                              :::

                              Developpeur d'Hogsmod, un mod implémentant le Monde d'Harry Potter dans Minecraft!

                              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

                                Problème trouvé, dans ta classe ItemBaguetteSureauTechneRender, tu as mit
                                protected ItemBaguetteSureauTechneRender model;
                                et :
                                model = new ItemBaguetteSureauTechneRender();

                                Or cela devrait être :
                                protected ModelBaguetteSureau model;

                                et :
                                model = new ModelBaguetteSureau();

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

                                  Ok je testes et j’edit pour que tu saches si ça a fonctionné ! 🙂

                                  Edit: Il n’y a plus d’erreur, merci !


                                  Ma texture ne s’affiche pas.

                                  Mes codes:
                                  :::

                                  ​package com.harrypotter.sosoh.client;
                                  
                                  import org.lwjgl.opengl.GL11;
                                  
                                  import com.harrypotter.sosoh.common.ModHarryPotter;
                                  
                                  import net.minecraft.client.Minecraft;
                                  import net.minecraft.entity.Entity;
                                  import net.minecraft.item.ItemStack;
                                  import net.minecraft.util.ResourceLocation;
                                  import net.minecraftforge.client.IItemRenderer;
                                  
                                  public class ItemBaguetteSureauTechneRender implements IItemRenderer{
                                  
                                  protected ModelBaguetteSureau model;
                                  protected static final ResourceLocation texture = new ResourceLocation(ModHarryPotter.MODID, "textures/models/items/model_items_sureau.png");
                                  
                                  public ItemBaguetteSureauTechneRender ()
                                  {
                                  model = new ModelBaguetteSureau();
                                  }
                                  
                                  @Override
                                  public boolean handleRenderType(ItemStack item, ItemRenderType type)
                                  {
                                  switch(type)
                                  {
                                  case EQUIPPED:
                                  return true;
                                  default:
                                  return false;
                                  }
                                  }
                                  
                                  @Override
                                  public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper)
                                  {
                                  return false;
                                  }
                                  
                                  @Override
                                  public void renderItem(ItemRenderType type, ItemStack item, Object… data)
                                  {
                                  switch(type)
                                  {
                                  case EQUIPPED:
                                  {
                                  GL11.glPushMatrix();
                                  Minecraft.getMinecraft().renderEngine.bindTexture(texture);
                                  model.render((Entity)data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
                                  GL11.glPopMatrix();
                                  break;
                                  }
                                  default:
                                  break;
                                  }
                                  }
                                  
                                  }
                                  

                                  :::

                                  :::

                                  ​package com.harrypotter.sosoh.common.items.baguettes;
                                  
                                  import com.harrypotter.sosoh.common.ModHarryPotter;
                                  
                                  import net.minecraft.client.renderer.texture.IIconRegister;
                                  import net.minecraft.item.Item;
                                  
                                  public class ItemBaguetteSureau extends Item{
                                  
                                  public ItemBaguetteSureau()
                                  {
                                  this.setCreativeTab(ModHarryPotter.creativetabsHPB);
                                  this.setMaxStackSize(1);
                                  }
                                  }
                                  
                                  

                                  :::

                                  :::

                                  ​package com.harrypotter.sosoh.proxy;
                                  
                                  import net.minecraftforge.client.IItemRenderer;
                                  import net.minecraftforge.client.MinecraftForgeClient;
                                  
                                  import com.harrypotter.sosoh.client.ItemBaguetteSureauTechneRender;
                                  import com.harrypotter.sosoh.client.TESRInventoryRenderer;
                                  import com.harrypotter.sosoh.client.TileEntityChaudronSpecialRenderer;
                                  import com.harrypotter.sosoh.common.ModHarryPotter;
                                  import com.harrypotter.sosoh.common.blocks.TileEntityChaudron;
                                  
                                  import cpw.mods.fml.client.registry.ClientRegistry;
                                  import cpw.mods.fml.client.registry.RenderingRegistry;
                                  
                                  public class ClientProxy extends CommonProxy
                                  {
                                     public static int tesrRenderId;
                                  
                                     @Override
                                     public void registerRender()
                                     {
                                         System.out.println("méthode côté client");
                                  
                                         tesrRenderId = RenderingRegistry.getNextAvailableRenderId();
                                         RenderingRegistry.registerBlockHandler(new TESRInventoryRenderer());
                                  
                                         ClientRegistry.bindTileEntitySpecialRenderer(TileEntityChaudron.class, new TileEntityChaudronSpecialRenderer());
                                         MinecraftForgeClient.registerItemRenderer(ModHarryPotter.itemBaguetteSureau, (IItemRenderer)new ItemBaguetteSureauTechneRender());
                                     }
                                  }
                                  

                                  :::

                                  Developpeur d'Hogsmod, un mod implémentant le Monde d'Harry Potter dans Minecraft!

                                  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 placé ta texture où ? Et elle fait quelle taille ?
                                    (la prochaine fois utilise la fonction éditer).

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

                                      Elle est dans :
                                      :::
                                      “forge-1.7.10-10.13.2.1230-src\src\main\resources\assets\modharrypotter\textures\models\items”
                                      :::
                                      et elle s’appelle:
                                      :::
                                      model_items_sureau
                                      :::
                                      et elle fait 64*32, c’est Whathefrench974 a fait le model et la texture.

                                      Developpeur d'Hogsmod, un mod implémentant le Monde d'Harry Potter dans Minecraft!

                                      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

                                        Ça m’a l’air bon pourtant
                                        Tu peux envoyé les logs complet après avoir lancé le jeu et prit l’item en main ?

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

                                          Voila:

                                          
                                          [11:46:04] [main/INFO] [GradleStart]: Extra: []
                                          
                                          [11:46:04] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --accessToken, {REDACTED}, --assetIndex, 1.7.10, --assetsDir, C:/Users/Hugo/.gradle/caches/minecraft/assets, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]
                                          [11:46:04] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                                          [11:46:04] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                                          [11:46:04] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker
                                          [11:46:04] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
                                          [11:46:05] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1230 for Minecraft 1.7.10 loading
                                          [11:46:05] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_67, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre7
                                          [11:46:05] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                                          [11:46:05] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker
                                          [11:46:05] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
                                          [11:46:05] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
                                          [11:46:05] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                          [11:46:05] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
                                          [11:46:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                          [11:46:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                          [11:46:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                                          [11:46:05] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                                          [11:46:09] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
                                          [11:46:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                                          [11:46:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
                                          [11:46:11] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
                                          [11:46:11] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
                                          [11:46:11] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
                                          [11:46:15] [main/INFO]: Setting user: Player879
                                          [11:46:22] [Client thread/INFO]: LWJGL Version: 2.9.1
                                          [11:46:40] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
                                          [11:46:40] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1230 Initialized
                                          [11:46:40] [Client thread/INFO] [FML]: Replaced 182 ore recipies
                                          [11:46:40] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
                                          [11:46:41] [Client thread/INFO] [FML]: Searching C:\Users\Hugo\Desktop\Mod Harry Potter\forge-1.7.10-10.13.2.1230-src\eclipse\mods for mods
                                          [11:46:52] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
                                          [11:46:53] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, modharrypotter] at CLIENT
                                          [11:46:53] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, modharrypotter] at SERVER
                                          [11:46:54] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Harry Potter Mod
                                          [11:46:55] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
                                          [11:46:55] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
                                          [11:46:55] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
                                          [11:46:55] [Client thread/INFO] [FML]: Applying holder lookups
                                          [11:46:55] [Client thread/INFO] [FML]: Holder lookups applied
                                          [11:46:56] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                          [11:46:56] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                                          [11:46:56] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                                          [11:46:56] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                                          [11:46:57] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                                          [11:46:57] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                          [11:46:57] [Sound Library Loader/INFO]: Sound engine started
                                          [11:47:03] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_165_chaudron.png
                                          java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_165_chaudron.png
                                          at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
                                          at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
                                          at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
                                          at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
                                          at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
                                          at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
                                          at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
                                          at net.minecraft.client.Minecraft.startGame(Minecraft.java:582) [Minecraft.class:?]
                                          at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
                                          at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
                                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_67]
                                          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
                                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
                                          at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_67]
                                          at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
                                          at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
                                          at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]
                                          at GradleStart.main(GradleStart.java:45) [start/:?]
                                          [11:47:04] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
                                          [11:47:05] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/items/MISSING_ICON_ITEM_4111_baguettesureau.png
                                          java.io.FileNotFoundException: minecraft:textures/items/MISSING_ICON_ITEM_4111_baguettesureau.png
                                          at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
                                          at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
                                          at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
                                          at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
                                          at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
                                          at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
                                          at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
                                          at net.minecraft.client.Minecraft.startGame(Minecraft.java:583) [Minecraft.class:?]
                                          at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
                                          at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
                                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_67]
                                          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
                                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
                                          at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_67]
                                          at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
                                          at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
                                          at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]
                                          at GradleStart.main(GradleStart.java:45) [start/:?]
                                          [11:47:05] [Client thread/INFO]: Created: 512x256 textures/items-atlas
                                          [11:47:05] [Client thread/INFO] [STDOUT]: [com.harrypotter.sosoh.proxy.ClientProxy:registerRender:22]: Methodes Client loaded
                                          [11:47:06] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
                                          [11:47:06] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Harry Potter Mod
                                          [11:47:06] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/items/MISSING_ICON_ITEM_4111_baguettesureau.png
                                          java.io.FileNotFoundException: minecraft:textures/items/MISSING_ICON_ITEM_4111_baguettesureau.png
                                          at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
                                          at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
                                          at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
                                          at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
                                          at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
                                          at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]
                                          at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?]
                                          at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?]
                                          at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:643) [Minecraft.class:?]
                                          at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?]
                                          at net.minecraft.client.Minecraft.startGame(Minecraft.java:586) [Minecraft.class:?]
                                          at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
                                          at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
                                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_67]
                                          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
                                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
                                          at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_67]
                                          at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
                                          at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
                                          at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]
                                          at GradleStart.main(GradleStart.java:45) [start/:?]
                                          [11:47:06] [Client thread/INFO]: Created: 512x256 textures/items-atlas
                                          [11:47:06] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_165_chaudron.png
                                          java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_165_chaudron.png
                                          at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
                                          at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
                                          at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
                                          at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
                                          at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
                                          at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]
                                          at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?]
                                          at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?]
                                          at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:643) [Minecraft.class:?]
                                          at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?]
                                          at net.minecraft.client.Minecraft.startGame(Minecraft.java:586) [Minecraft.class:?]
                                          at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
                                          at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
                                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_67]
                                          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
                                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
                                          at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_67]
                                          at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
                                          at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
                                          at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]
                                          at GradleStart.main(GradleStart.java:45) [start/:?]
                                          [11:47:07] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
                                          [11:47:07] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                          [11:47:07] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
                                          [11:47:07] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
                                          [11:47:07] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                          [11:47:07] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                          [11:47:07] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                                          [11:47:07] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                                          [11:47:07] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                                          [11:47:07] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                                          [11:47:08] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                          [11:47:08] [Sound Library Loader/INFO]: Sound engine started
                                          [11:47:25] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
                                          [11:47:25] [Server thread/INFO]: Generating keypair
                                          [11:47:26] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
                                          [11:47:26] [Server thread/INFO] [FML]: Applying holder lookups
                                          [11:47:26] [Server thread/INFO] [FML]: Holder lookups applied
                                          [11:47:27] [Server thread/INFO] [FML]: Loading dimension 0 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@171b6dfb)
                                          [11:47:27] [Server thread/INFO] [FML]: Loading dimension 1 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@171b6dfb)
                                          [11:47:27] [Server thread/INFO] [FML]: Loading dimension -1 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@171b6dfb)
                                          [11:47:27] [Server thread/INFO]: Preparing start region for level 0
                                          [11:47:28] [Server thread/INFO]: Preparing spawn area: 0%
                                          [11:47:29] [Server thread/INFO]: Preparing spawn area: 29%
                                          [11:47:30] [Server thread/INFO]: Preparing spawn area: 81%
                                          [11:47:32] [Server thread/INFO]: Changing view distance to 5, from 10
                                          [11:47:33] [Netty Client IO #0/INFO] [FML]: Server protocol version 1
                                          [11:47:33] [Netty IO #1/INFO] [FML]: Client protocol version 1
                                          [11:47:33] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : mcp@9.05,FML@7.10.85.1230,modharrypotter@1.0.0,Forge@10.13.2.1230
                                          [11:47:33] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
                                          [11:47:33] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
                                          [11:47:33] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
                                          [11:47:33] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
                                          [11:47:33] [Server thread/INFO]: Player879[local:E:635fc49a] logged in with entity id 298 at (-119.52461731424478, 64.0, 249.28896610467763)
                                          [11:47:33] [Server thread/INFO]: Player879 a rejoint la partie
                                          [11:47:36] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 4245ms behind, skipping 84 tick(s)
                                          [11:47:39] [Server thread/INFO]: Saving and pausing game…
                                          [11:47:39] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Overworld
                                          [11:47:39] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Nether
                                          [11:47:39] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/The End
                                          [11:47:48] [Server thread/INFO]: Saving and pausing game…
                                          [11:47:48] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Overworld
                                          [11:47:49] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Nether
                                          [11:47:49] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/The End
                                          [11:47:59] [Server thread/INFO]: Saving and pausing game…
                                          [11:47:59] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Overworld
                                          [11:47:59] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Nether
                                          [11:47:59] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/The End
                                          [11:48:03] [Client thread/INFO]: Stopping!
                                          [11:48:03] [Server thread/INFO]: Stopping server
                                          [11:48:03] [Server thread/INFO]: Saving players
                                          [11:48:03] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                          [11:48:03] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
                                          [11:48:03] [Server thread/INFO]: Saving worlds
                                          [11:48:03] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Overworld
                                          [11:48:03] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Nether
                                          [11:48:03] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/The End
                                          [11:48:03] [Server thread/INFO] [FML]: Unloading dimension 0
                                          [11:48:03] [Server thread/INFO] [FML]: Unloading dimension -1
                                          [11:48:03] [Server thread/INFO] [FML]: Unloading dimension 1
                                          [11:48:03] [Server thread/INFO] [FML]: Applying holder lookups
                                          [11:48:03] [Server thread/INFO] [FML]: Holder lookups applied
                                          [11:48:03] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
                                          [11:48:03] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                          
                                          

                                          Developpeur d'Hogsmod, un mod implémentant le Monde d'Harry Potter dans Minecraft!

                                          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

                                            Ton problème actuel est le rendu lorsque le joueur à l’item en main ou le rendu dans l’inventaire ? Car je ne vois pas d’erreur concernant l’item en main.

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

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB