MFF

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

    Probléme machine

    Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x
    1.7.10
    105 Messages 12 Publieurs 15.9k 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.
    • DeletedD Hors-ligne
      Deleted
      dernière édition par

      Quelle est l’erreur indiquée par eclipse ?

      1 réponse Dernière réponse Répondre Citer 0
      • ? Hors-ligne
        Un Ancien Utilisateur
        dernière édition par

        sur addRecipe: remove argument to match ‘add recipe(item, ItemStack)’

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

          Tu as un paramètre en trop

          1 réponse Dernière réponse Répondre Citer 0
          • ? Hors-ligne
            Un Ancien Utilisateur
            dernière édition par

            Bas oui je sait ses sa   new ItemStack(ItemsMod.fission)___dez double post mais alors je fait comment pour ajouter un item a mon craft car j’ai neuf ouput et un input je voudrai que quand je mais un item sa me donne un item différent dans le 9ouput donc moi j’ai déja essayer mais j’y suis pas arriver qui sait ?

            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 code actuelle n’est pas adapté pour avoir plusieurs output.
              Il faut utiliser un tableau d’item stack au lieu d’un simple item stack pour ça :
              private HashMap <itemstack, itemstack**[]**=“”>smeltingList = new HashMap();

              Il faut adapter en conséquence les autres fonctions :
              public void addRecipe(ItemStack input, ItemStack**…** output)
              public ItemStack**[]** getSmeltingResult(ItemStack stack)

              etc …</itemstack,>

              1 réponse Dernière réponse Répondre Citer 0
              • ? Hors-ligne
                Un Ancien Utilisateur
                dernière édition par

                Bien Re tous le mondes j’ai un pb dans mon code le Voici

                package com.adamitemod.mod;
                
                import java.util.HashMap;
                import java.util.Iterator;
                import java.util.Map;
                import java.util.Map.Entry;
                
                import com.adamitemod.mod.init.BlocksMod;
                import com.adamitemod.mod.init.ItemsMod;
                
                import net.minecraft.block.Block;
                import net.minecraft.init.Blocks;
                import net.minecraft.init.Items;
                import net.minecraft.item.Item;
                import net.minecraft.item.ItemStack;
                
                public class MachineRecipesCraft {
                
                private static final MachineRecipesCraft smeltingBase = new MachineRecipesCraft();
                private HashMap <itemstack, itemstack[]="">smeltingList = new HashMap(); // #SCAREX : c'est mieux d'indiquer ce que l'on met dans la HashMap
                
                public MachineRecipesCraft()
                {
                
                public void addRecipe(ItemStack input, ItemStack… output) // #SCAREX : tu changes ta recette
                }
                
                public void addRecipe(ItemStack input, ItemStack... output)
                {
                this.smeltingList.put(input, output);
                }
                
                        public void addRecipe(Item input, ItemStack output)
                {
                this.addRecipe(new ItemStack(input), output);
                }
                
                public void addRecipe(Block input, ItemStack output)
                {
                this.addRecipe(Item.getItemFromBlock(input), output);
                }
                
                public ItemStack getSmeltingResult(ItemStack stack)
                {
                    Iterator iterator = this.smeltingList.entrySet().iterator();
                    Entry entry;
                
                    do
                    {
                        if (!iterator.hasNext())
                        {
                            return null;
                        }
                           entry = (Entry)iterator.next();
                       }
                       while (!this.isSameKey(stack, (ItemStack)entry.getKey()));
                
                       return (ItemStack)entry.getValue();
                 }
                
                private boolean isSameKey(ItemStack machinesStack, ItemStack key) // #SCAREX : vu que tu n'as qu'un seul item, ça ne sert à rien de faire une boucle
                {
                return machinesStack.getItem() == key.getItem();
                }
                
                public HashMap <itemstack, itemstack[]="">getSmeltingList()
                {
                       return this.smeltingList;
                    }
                
                public static MachineRecipesCraft smelting()
                {
                return smeltingBase;
                }
                }
                

                plus précisement à la ligne 25</itemstack,></itemstack,>

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

                  Lis ça (au moins le début, les bases, parce que c’est long).
                  Et regarde tes “{” et “}”, tu ne remarques pas que tu ne fermes pas ton bloc (avec un “}”) après le contructeur (“public MachineRecipesCraft(){”). Et ensuite que tu n’ouvres pas le bloc de ta fonction avec “{” après “public void addRecipe(ItemStack input, ItemStack… output)[font=monospace”.]
                  Et j’ajoute aussi, là l’erreur était simple à voir, et comme t’a mis la ligne ça allait, mais des fois ça peut être plus compliqué donc ajoute le(s) message(s) que eclipse met sur l’erreur dans le futur.

                  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
                  • ? Hors-ligne
                    Un Ancien Utilisateur
                    dernière édition par

                    l’open classe room je l’ai déja lu . . . mais sinon je dois faire quoi ? car j’ai pas comrpis le tebleau

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

                      Lignes 23 à 31 :

                      
                      public MachineRecipesCraft()
                      {
                      public void addRecipe(ItemStack input, ItemStack… output) //Retire cette ligne (je viens de me rendre compte que c'est pas les "{" le problème, mais c'est que t'a dut copier deux fois cette ligne et au mauvais endroit (il y a déjà cette fonction plus bas))
                      
                      }
                      
                      public void addRecipe(ItemStack input, ItemStack... output)
                      {
                      this.smeltingList.put(input, output);
                      }
                      
                      

                      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
                      • ? Hors-ligne
                        Un Ancien Utilisateur
                        dernière édition par

                        Je met ou mon craft ,___Dézoler double post mais je mais ou mon craft ducoups ?

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

                          1- Pas de double post avant 24h ! Nous ne sommes pas à ton service !
                          2- Cherche un peu et relis le tutoriel ! c’est sous tes yeux !

                          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
                          • ? Hors-ligne
                            Un Ancien Utilisateur
                            dernière édition par

                            [font=Ubuntu, sans-serif- Pas de double post avant 24h ! Nous ne sommes pas à ton service !]

                            j’ai jamais dis sa puis j’ai précisé que je m’excuser !

                            et non dans le tutoriel il me dis pas comment faire un tableau de craft alors lis le sujet avant de poster merci !

                            du coup qui peut m’aider ?

                            1 réponse Dernière réponse Répondre Citer 0
                            • Superloup10S Hors-ligne
                              Superloup10 Modérateurs
                              dernière édition par

                              Inspire toi de cette class

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

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

                              1 réponse Dernière réponse Répondre Citer 0
                              • ? Hors-ligne
                                Un Ancien Utilisateur
                                dernière édition par

                                package com.adamitemod.mod;
                                
                                import java.util.HashMap;
                                import java.util.Iterator;
                                import java.util.Map;
                                import java.util.Map.Entry;
                                
                                import com.adamitemod.mod.init.BlocksMod;
                                import com.adamitemod.mod.init.ItemsMod;
                                
                                import net.minecraft.block.Block;
                                import net.minecraft.init.Blocks;
                                import net.minecraft.init.Items;
                                import net.minecraft.item.Item;
                                import net.minecraft.item.ItemStack;
                                
                                import fr.wolf.addons.common.item.WolfItemList;
                                
                                import java.util.ArrayList;
                                import java.util.Collections;
                                import java.util.HashMap;
                                import java.util.List;
                                
                                import net.minecraft.block.Block;
                                import net.minecraft.init.Items;
                                import net.minecraft.inventory.InventoryCrafting;
                                import net.minecraft.item.Item;
                                import net.minecraft.item.ItemStack;
                                import net.minecraft.item.crafting.IRecipe;
                                import net.minecraft.item.crafting.ShapelessRecipes;
                                import net.minecraft.world.World;
                                
                                public final class MachineRecipesCraft
                                {
                                    private static final MachineRecipesCraft instance = new MachineRecipesCraft();
                                
                                    private List recipes = new ArrayList();
                                
                                    private MachineRecipesCraft()
                                    {
                                
                                        this.addRecipe(new ItemStack(ItemsMod.adamite, 1), new Object[] {"XXX", 'X', new ItemStack(Items.dye, 1, 4)});
                                
                                        Collections.sort(this.recipes, new RecipesSorterCompressor(this));
                                    }
                                
                                    public static MachineRecipesCraft getInstance()
                                    {
                                        return instance;
                                    }
                                
                                    void addRecipe(ItemStack par1ItemStack, Object… par2ArrayOfObj)
                                    {
                                        String s = "";
                                        int i = 0;
                                        int j = 0;
                                        int k = 0;
                                
                                        if(par2ArrayOfObj* instanceof String[])
                                        {
                                            String[] astring = ((String[])par2ArrayOfObj[i++]);
                                
                                            for(int l = 0; l < astring.length; ++l)
                                            {
                                                String s1 = astring[l];
                                                ++k;
                                                j = s1.length();
                                                s = s + s1;
                                            }
                                        }
                                        else
                                        {
                                            while(par2ArrayOfObj* instanceof String)
                                            {
                                                String s2 = (String)par2ArrayOfObj[i++];
                                                ++k;
                                                j = s2.length();
                                                s = s + s2;
                                            }
                                        }
                                
                                        HashMap hashmap;
                                
                                        for(hashmap = new HashMap(); i < par2ArrayOfObj.length; i += 2)
                                        {
                                            Character character = (Character)par2ArrayOfObj*;
                                            ItemStack itemstack1 = null;
                                
                                            if(par2ArrayOfObj _instanceof Item)
                                            {
                                                itemstack1 = new ItemStack((Item)par2ArrayOfObj_);
                                            }
                                            else if(par2ArrayOfObj _instanceof Block)
                                            {
                                                itemstack1 = new ItemStack((Block)par2ArrayOfObj_, 1, 32767);
                                            }
                                            else if(par2ArrayOfObj _instanceof ItemStack)
                                            {
                                                itemstack1 = (ItemStack)par2ArrayOfObj_;
                                            }
                                            hashmap.put(character, itemstack1);
                                        }
                                
                                        ItemStack[] aitemstack = new ItemStack[j * k];
                                
                                        for(int i1 = 0; i1 < j * k; ++i1)
                                        {
                                            char c0 = s.charAt(i1);
                                
                                            if(hashmap.containsKey(Character.valueOf(c0)))
                                            {
                                                aitemstack[i1] = ((ItemStack)hashmap.get(Character.valueOf(c0))).copy();
                                            }
                                            else
                                            {
                                                aitemstack[i1] = null;
                                            }
                                        }
                                        this.recipes.add(new ShapedRecipesCompressor(j, k, aitemstack, par1ItemStack));
                                    }
                                
                                    void addShapelessRecipe(ItemStack par1ItemStack, Object… par2ArrayOfObj)
                                    {
                                        ArrayList arraylist = new ArrayList();
                                        Object[] aobject = par2ArrayOfObj;
                                        int i = par2ArrayOfObj.length;
                                
                                        for(int j = 0; j < i; ++j)
                                        {
                                            Object object1 = aobject[j];
                                
                                            if(object1 instanceof ItemStack)
                                            {
                                                arraylist.add(((ItemStack)object1).copy());
                                            }
                                            else if(object1 instanceof Item)
                                            {
                                                arraylist.add(new ItemStack((Item)object1));
                                            }
                                            else
                                            {
                                                if(!(object1 instanceof Block))
                                                {
                                                    throw new RuntimeException("Invalid shapeless recipy!");
                                                }
                                                arraylist.add(new ItemStack((Block)object1));
                                            }
                                        }
                                        this.recipes.add(new ShapelessRecipes(par1ItemStack, arraylist));
                                    }
                                
                                    public ItemStack findMatchingRecipe(InventoryCrafting par1InventoryCrafting, World par2World)
                                    {
                                        int i = 0;
                                        ItemStack itemstack = null;
                                        ItemStack itemstack1 = null;
                                        int j;
                                
                                        for(j = 0; j < par1InventoryCrafting.getSizeInventory(); ++j)
                                        {
                                            ItemStack itemstack2 = par1InventoryCrafting.getStackInSlot(j);
                                
                                            if(itemstack2 != null)
                                            {
                                                if(i == 0)
                                                {
                                                    itemstack = itemstack2;
                                                }
                                
                                                if(i == 1)
                                                {
                                                    itemstack1 = itemstack2;
                                                }
                                                ++i;
                                            }
                                        }
                                
                                        if(i == 2 && itemstack.getItem() == itemstack1.getItem() && itemstack.stackSize == 1 && itemstack1.stackSize == 1 && itemstack.getItem().isRepairable())
                                        {
                                            Item item = itemstack.getItem();
                                            int j1 = item.getMaxDamage() - itemstack.getItemDamage();
                                            int k = item.getMaxDamage() - itemstack1.getItemDamage();
                                            int l = j1 + k + item.getMaxDamage() * 5 / 100;
                                            int i1 = item.getMaxDamage() - l;
                                
                                            if(i1 < 0)
                                            {
                                                i1 = 0;
                                            }
                                            return new ItemStack(itemstack.getItem(), 1, i1);
                                        }
                                        else
                                        {
                                            for(j = 0; j < this.recipes.size(); ++j)
                                            {
                                                IRecipe irecipe = (IRecipe)this.recipes.get(j);
                                
                                                if(irecipe.matches(par1InventoryCrafting, par2World))
                                                {
                                                    return irecipe.getCraftingResult(par1InventoryCrafting);
                                                }
                                            }
                                            return null;
                                        }
                                    }
                                
                                    public List getRecipeList()
                                    {
                                        return this.recipes;
                                    }
                                }
                                

                                J’ai un probléme à RecipesSorterCompressor(this));______

                                1 réponse Dernière réponse Répondre Citer 0
                                • Superloup10S Hors-ligne
                                  Superloup10 Modérateurs
                                  dernière édition par

                                  C’est normal, c’est une class, mais je t’ai dis de t’inspirer pas de copier/coller la class.

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

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

                                  1 réponse Dernière réponse Répondre Citer 0
                                  • ? Hors-ligne
                                    Un Ancien Utilisateur
                                    dernière édition par

                                    maintenant sa crash voici mon code

                                    package com.adamitemod.mod;
                                    
                                    import java.util.HashMap;
                                    import java.util.Iterator;
                                    import java.util.Map;
                                    import java.util.Map.Entry;
                                    
                                    import com.adamitemod.mod.init.BlocksMod;
                                    import com.adamitemod.mod.init.ItemsMod;
                                    
                                    import net.minecraft.block.Block;
                                    import net.minecraft.init.Blocks;
                                    import net.minecraft.init.Items;
                                    import net.minecraft.item.Item;
                                    import net.minecraft.item.ItemStack;
                                    
                                    public class MachineRecipesCraft {
                                    
                                    private static final MachineRecipesCraft smeltingBase = new MachineRecipesCraft();
                                    private HashMap <itemstack, itemstack[]="">smeltingList = new HashMap(); // #SCAREX : c'est mieux d'indiquer ce que l'on met dans la HashMap
                                    
                                    public MachineRecipesCraft()
                                    {
                                    
                                    this.addRecipe(new ItemStack(AdamiteMod.Elevator, 1), new Object[] {"XXX", 'X', Items.redstone}); // #SCAREX : tu changes ta recette
                                    }
                                    
                                    public void addRecipe(ItemStack input, Object… object)
                                    {
                                    this.smeltingList.put(input, (ItemStack[]) object);
                                    }
                                    
                                            public void addRecipe(Item input, ItemStack output)
                                    {
                                    this.addRecipe(new ItemStack(input), output);
                                    }
                                    
                                    public void addRecipe(Block input, ItemStack output)
                                    {
                                    this.addRecipe(Item.getItemFromBlock(input), output);
                                    }
                                    
                                    public ItemStack getSmeltingResult(ItemStack stack)
                                    {
                                        Iterator iterator = this.smeltingList.entrySet().iterator();
                                        Entry entry;
                                    
                                        do
                                        {
                                            if (!iterator.hasNext())
                                            {
                                                return null;
                                            }
                                               entry = (Entry)iterator.next();
                                           }
                                           while (!this.isSameKey(stack, (ItemStack)entry.getKey()));
                                    
                                           return (ItemStack)entry.getValue();
                                     }
                                    
                                    private boolean isSameKey(ItemStack machinesStack, ItemStack key) // #SCAREX : vu que tu n'as qu'un seul item, ça ne sert à rien de faire une boucle
                                    {
                                    return machinesStack.getItem() == key.getItem();
                                    }
                                    
                                    public HashMap <itemstack, itemstack[]="">getSmeltingList()
                                    {
                                           return this.smeltingList;
                                        }
                                    
                                    public static MachineRecipesCraft smelting()
                                    {
                                    return smeltingBase;
                                    }
                                    }
                                    ```</itemstack,></itemstack,>
                                    1 réponse Dernière réponse Répondre Citer 0
                                    • Superloup10S Hors-ligne
                                      Superloup10 Modérateurs
                                      dernière édition par

                                      Et le crash?

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

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

                                      1 réponse Dernière réponse Répondre Citer 0
                                      • ? Hors-ligne
                                        Un Ancien Utilisateur
                                        dernière édition par

                                        le voici Chef

                                        –-- Minecraft Crash Report ----
                                        // Oh - I know what I did wrong!
                                        
                                        Time: 10/05/16 18:01
                                        Description: Initializing game
                                        
                                        cpw.mods.fml.relauncher.FMLSecurityManager$ExitTrappedException
                                        at cpw.mods.fml.common.asm.transformers.TerminalTransformer$ExitVisitor.checkAccess(TerminalTransformer.java:138)
                                        at cpw.mods.fml.common.asm.transformers.TerminalTransformer$ExitVisitor.systemExitCalled(TerminalTransformer.java:109)
                                        at com.adamitemod.mod.AdamiteMod.postInit(AdamiteMod.java:174)
                                        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:532)
                                        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:212)
                                        at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
                                        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:119)
                                        at cpw.mods.fml.common.Loader.initializeMods(Loader.java:742)
                                        at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311)
                                        at net.minecraft.client.Minecraft.startGame(Minecraft.java:597)
                                        at net.minecraft.client.Minecraft.run(Minecraft.java:942)
                                        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 net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
                                        at GradleStart.main(Unknown Source)
                                        
                                        A detailed walkthrough of the error, its code path and all known details is as follows:
                                        ---------------------------------------------------------------------------------------
                                        
                                        -- Head --
                                        Stacktrace:
                                        at cpw.mods.fml.common.asm.transformers.TerminalTransformer$ExitVisitor.checkAccess(TerminalTransformer.java:138)
                                        at cpw.mods.fml.common.asm.transformers.TerminalTransformer$ExitVisitor.systemExitCalled(TerminalTransformer.java:109)
                                        at com.adamitemod.mod.AdamiteMod.postInit(AdamiteMod.java:174)
                                        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:532)
                                        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:212)
                                        at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
                                        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:119)
                                        at cpw.mods.fml.common.Loader.initializeMods(Loader.java:742)
                                        at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311)
                                        at net.minecraft.client.Minecraft.startGame(Minecraft.java:597)
                                        
                                        -- Initialization --
                                        Details:
                                        Stacktrace:
                                        at net.minecraft.client.Minecraft.run(Minecraft.java:942)
                                        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 net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
                                        at GradleStart.main(Unknown Source)
                                        
                                        -- System Details --
                                        Details:
                                        Minecraft Version: 1.7.10
                                        Operating System: Windows 10 (x86) version 10.0
                                        Java Version: 1.8.0_66, Oracle Corporation
                                        Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
                                        Memory: 908798328 bytes (866 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 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.99.99 Minecraft Forge 10.13.4.1558 4 mods loaded, 4 mods active
                                        States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
                                        UCHIJ mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
                                        UCHIJ FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
                                        UCHIJ Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
                                        UCHIE adamitemod{1.0.0} [Adamite Mod] (bin)
                                        GL info: ' Vendor: 'Intel' Version: '4.0.0 - Build 10.18.10.4276' Renderer: 'Intel(R) HD Graphics'
                                        Launched Version: 1.7.10
                                        LWJGL: 2.9.1
                                        OpenGL: Intel(R) HD Graphics GL version 4.0.0 - Build 10.18.10.4276, Intel
                                        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: English (US)
                                        Profiler Position: N/A (disabled)
                                        Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                                        Anisotropic Filtering: Off (1)
                                        
                                        1 réponse Dernière réponse Répondre Citer 0
                                        • Superloup10S Hors-ligne
                                          Superloup10 Modérateurs
                                          dernière édition par

                                          Envois la class AdamiteMod.java et indique la ligne 174.

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

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

                                          1 réponse Dernière réponse Répondre Citer 0
                                          • ? Hors-ligne
                                            Un Ancien Utilisateur
                                            dernière édition par

                                            maintenant que tu le dis ses vrai que j’ai oubliyer de retirer

                                               if(!Loader.isModLoaded("NotEnoughItems"))
                                                  Minecraft.getMinecraft().shutdown();
                                                else
                                                  System.out.println("Aucun mauvais mod détecté. Bon jeu !");
                                            
                                                    if(!Loader.isModLoaded("CoFHCore"))
                                                      Minecraft.getMinecraft().shutdown();
                                                    else
                                                      System.out.println("Aucun mauvais mod détecté. Bon jeu !");
                                            
                                                    if(!Loader.isModLoaded("CodeChickenCore"))
                                                      Minecraft.getMinecraft().shutdown();
                                                    else
                                                      System.out.println("Aucun mauvais mod détecté. Bon jeu !");
                                            
                                                    if(!Loader.isModLoaded("ArmorStatusHUD"))
                                                    Minecraft.getMinecraft().shutdown();
                                                  else
                                                    System.out.println("Aucun mauvais mod détecté. Bon jeu !");
                                            
                                              if(!Loader.isModLoaded("StatusEffectHUD"))
                                                    Minecraft.getMinecraft().shutdown();
                                                  else
                                                    System.out.println("Aucun mauvais mod détecté. Bon jeu !");
                                                {
                                            
                                                  if(Loader.instance().getModList().size() != 4) // à changer
                                                       {
                                                           FMLCommonHandler.instance().exitJava(1, true);
                                                       }
                                            
                                                EntityRegistry.registerModEntity(EntityDynamite.class, "Dynamite", 7, this, 64, 20, true);
                                             }
                                                if(Minecraft.getMinecraft().mcDataDir.getAbsolutePath().contains("AdamiteV2"))
                                                {
                                                    // tout va bien
                                                    System.out.println("Launcher Adamite vérifié");
                                                }
                                                else
                                                {
                                                   System.exit(-1); // radical
                                                }
                                               }
                                            
                                            

                                            Oups :/___je pose l’item pour commencer le craft la sa crash voici le code ;

                                            –-- Minecraft Crash Report ----
                                            // I bet Cylons wouldn't have this problem.
                                            
                                            Time: 10/05/16 21:10
                                            Description: Ticking block entity
                                            
                                            java.lang.ExceptionInInitializerError
                                            at com.adamitemod.mod.TileEntityMachineCraft.canSmelt(TileEntityMachineCraft.java:185)
                                            at com.adamitemod.mod.TileEntityMachineCraft.updateEntity(TileEntityMachineCraft.java:200)
                                            at net.minecraft.world.World.updateEntities(World.java:2160)
                                            at net.minecraft.client.Minecraft.runTick(Minecraft.java:2097)
                                            at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039)
                                            at net.minecraft.client.Minecraft.run(Minecraft.java:962)
                                            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 net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
                                            at GradleStart.main(Unknown Source)
                                            Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.minecraft.item.ItemStack;
                                            at com.adamitemod.mod.MachineRecipesCraft.addRecipe(MachineRecipesCraft.java:30)
                                            at com.adamitemod.mod.MachineRecipesCraft.<init>(MachineRecipesCraft.java:25)
                                            at com.adamitemod.mod.MachineRecipesCraft.<clinit>(MachineRecipesCraft.java:19)
                                            ... 15 more
                                            
                                            A detailed walkthrough of the error, its code path and all known details is as follows:
                                            ---------------------------------------------------------------------------------------
                                            
                                            -- Head --
                                            Stacktrace:
                                            at com.adamitemod.mod.TileEntityMachineCraft.canSmelt(TileEntityMachineCraft.java:185)
                                            at com.adamitemod.mod.TileEntityMachineCraft.updateEntity(TileEntityMachineCraft.java:200)
                                            
                                            -- Block entity being ticked --
                                            Details:
                                            Name: adamitemod:MachineTileEntityCraft // com.adamitemod.mod.TileEntityMachineCraft
                                            Block type: ID #181 (tile.machineCraft // com.adamitemod.mod.MachineCraft)
                                            Block data value: 0 / 0x0 / 0b0000
                                            Block location: World: (-133,79,316), Chunk: (at 11,4,12 in -9,19; contains blocks -144,0,304 to -129,255,319), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
                                            Actual block type: ID #181 (tile.machineCraft // com.adamitemod.mod.MachineCraft)
                                            Actual block data value: 0 / 0x0 / 0b0000
                                            Stacktrace:
                                            at net.minecraft.world.World.updateEntities(World.java:2160)
                                            
                                            -- Affected level --
                                            Details:
                                            Level name: MpServer
                                            All players: 1 total; [EntityClientPlayerMP['Player246'/275, l='MpServer', x=-129,60, y=81,62, z=317,31]]
                                            Chunk stats: MultiplayerChunkCache: 49, 49
                                            Level seed: 0
                                            Level generator: ID 00 - default, ver 1\. Features enabled: false
                                            Level generator options:
                                            Level spawn location: World: (-188,64,256), Chunk: (at 4,4,0 in -12,16; contains blocks -192,0,256 to -177,255,271), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
                                            Level time: 339160 game time, 202504 day time
                                            Level dimension: 0
                                            Level storage version: 0x00000 - Unknown?
                                            Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
                                            Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
                                            Forced entities: 43 total; [EntitySpider['Spider'/132, l='MpServer', x=-107,53, y=43,00, z=313,75], EntityBat['Bat'/134, l='MpServer', x=-96,66, y=43,23, z=307,00], EntityCreeper['Creeper'/135, l='MpServer', x=-98,50, y=44,00, z=312,50], EntitySpider['Spider'/136, l='MpServer', x=-96,16, y=44,00, z=317,13], EntityZombie['Zombie'/137, l='MpServer', x=-98,97, y=49,00, z=317,50], EntityEnderman['Enderman'/138, l='MpServer', x=-99,16, y=34,00, z=350,31], EntityZombie['Zombie'/139, l='MpServer', x=-97,16, y=33,00, z=349,69], EntityBat['Bat'/140, l='MpServer', x=-103,06, y=34,89, z=335,63], EntityBat['Bat'/141, l='MpServer', x=-103,50, y=38,92, z=331,33], EntityBat['Bat'/142, l='MpServer', x=-98,31, y=37,98, z=335,41], EntityPig['Pig'/143, l='MpServer', x=-105,22, y=73,00, z=342,66], EntitySpider['Spider'/145, l='MpServer', x=-111,59, y=23,00, z=366,72], EntityClientPlayerMP['Player246'/275, l='MpServer', x=-129,60, y=81,62, z=317,31], EntitySquid['Squid'/164, l='MpServer', x=-80,94, y=61,13, z=256,94], EntitySquid['Squid'/165, l='MpServer', x=-79,56, y=61,38, z=257,66], EntityCreeper['Creeper'/166, l='MpServer', x=-92,50, y=13,00, z=277,50], EntityPig['Pig'/167, l='MpServer', x=-87,50, y=68,00, z=293,28], EntityCreeper['Creeper'/168, l='MpServer', x=-95,50, y=44,00, z=304,50], EntityCreeper['Creeper'/169, l='MpServer', x=-97,53, y=44,00, z=316,03], EntitySpider['Spider'/170, l='MpServer', x=-95,22, y=16,00, z=350,19], EntityZombie['Zombie'/171, l='MpServer', x=-91,50, y=34,00, z=351,88], EntityCreeper['Creeper'/173, l='MpServer', x=-92,41, y=34,00, z=351,34], EntityCreeper['Creeper'/174, l='MpServer', x=-84,66, y=32,00, z=344,50], EntityCreeper['Creeper'/176, l='MpServer', x=-83,50, y=58,00, z=338,50], EntitySpider['Spider'/560, l='MpServer', x=-106,50, y=41,00, z=321,50], EntityZombie['Zombie'/177, l='MpServer', x=-93,25, y=16,00, z=352,88], EntityCreeper['Creeper'/178, l='MpServer', x=-94,22, y=34,00, z=350,91], EntityChicken['Chicken'/179, l='MpServer', x=-77,63, y=73,69, z=364,63], EntityChicken['Chicken'/180, l='MpServer', x=-94,41, y=74,00, z=351,34], EntityBat['Bat'/69, l='MpServer', x=-178,31, y=17,67, z=273,44], EntityBat['Bat'/70, l='MpServer', x=-187,91, y=12,82, z=281,34], EntityZombie['Zombie'/72, l='MpServer', x=-191,50, y=21,00, z=291,50], EntityBat['Bat'/73, l='MpServer', x=-181,53, y=39,10, z=340,25], EntitySpider['Spider'/591, l='MpServer', x=-191,28, y=38,85, z=344,88], EntityBat['Bat'/83, l='MpServer', x=-164,03, y=30,95, z=308,34], EntitySkeleton['Skeleton'/346, l='MpServer', x=-169,50, y=40,00, z=307,50], EntityZombie['Zombie'/476, l='MpServer', x=-168,50, y=43,00, z=304,50], EntityCreeper['Creeper'/94, l='MpServer', x=-160,66, y=38,00, z=265,47], EntityBat['Bat'/95, l='MpServer', x=-150,41, y=34,10, z=305,25], EntityPig['Pig'/96, l='MpServer', x=-152,50, y=74,00, z=338,69], EntityPig['Pig'/112, l='MpServer', x=-134,28, y=85,60, z=296,46], EntityBat['Bat'/113, l='MpServer', x=-136,34, y=33,10, z=314,75], EntityZombie['Zombie'/125, l='MpServer', x=-123,50, y=33,00, z=317,50]]
                                            Retry entities: 0 total; []
                                            Server brand: fml,forge
                                            Server type: Integrated singleplayer server
                                            Stacktrace:
                                            at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)
                                            at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2566)
                                            at net.minecraft.client.Minecraft.run(Minecraft.java:984)
                                            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 net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
                                            at GradleStart.main(Unknown Source)
                                            
                                            – System Details --
                                            Details:
                                            Minecraft Version: 1.7.10
                                            Operating System: Windows 10 (x86) version 10.0
                                            Java Version: 1.8.0_66, Oracle Corporation
                                            Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
                                            Memory: 849606272 bytes (810 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 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: 13, tallocated: 95
                                            FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 4 mods loaded, 4 mods active
                                            States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
                                            UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
                                            UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
                                            UCHIJAAAA Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
                                            UCHIJAAAA adamitemod{1.0.0} [Adamite Mod] (bin)
                                            GL info: ' Vendor: 'Intel' Version: '4.0.0 - Build 10.18.10.4276' Renderer: 'Intel(R) HD Graphics'
                                            Launched Version: 1.7.10
                                            LWJGL: 2.9.1
                                            OpenGL: Intel(R) HD Graphics GL version 4.0.0 - Build 10.18.10.4276, Intel
                                            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: English (US)
                                            Profiler Position: N/A (disabled)
                                            Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                                            Anisotropic Filtering: Off (1)
                                            ```</clinit></init>
                                            1 réponse Dernière réponse Répondre Citer 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 1 / 6
                                            • Premier message
                                              Dernier message
                                            Design by Woryk
                                            ContactMentions Légales

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB