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.
    • 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
                • Superloup10S Hors-ligne
                  Superloup10 Modérateurs
                  dernière édition par

                  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)
                  

                  Vire le cast.

                  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

                    Sa ne fonctionne plus du tout voici ma class

                    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)
                    {
                    
                    }
                    
                            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

                      Regarde comment fonctionnent les recettes vanilla pour avoir une idée de comment résoudre ton problème.

                      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

                        aprés avoir,regarder sa ma plutot embrouillier donc help 😢

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

                          Up toujours pas trouvé

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

                            Quel est le problème ? Et renvoi les classes concernées

                            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

                              J’arrive pas a faire un craft avec 1input et 9otput

                              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)
                              {
                              
                              }
                              
                                      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
                              • DeletedD Hors-ligne
                                Deleted
                                dernière édition par

                                Cette méthode :

                                
                                public void addRecipe(ItemStack input, Object… object)
                                {
                                }
                                
                                

                                Est vidé, donc oui c’est sûr, que tu n’arriveras pas à faire grand chose …

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

                                  comment je la met plein ? me donner pas le lien de l’open  class room ou dire “lis le tuto” ses déja fait

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

                                    Et bien acheter de la matière grise serait une bonne initiative… Si tu ne sais pas quoi mettre dans une fonction c’est qu’il y a vraiment un problème et que tout ce que tu fais c’est via copier-coller

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

                                      Sinon depuis le debut que je suis arrivé sur le forum tu ne m’aide pas donc si ses pour dire sa dis rien sa va plus vite comme sa je prends pas le temps de lire ce qui serre à rien !

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

                                        Entièrement d’accord avec Scarex, il serait temps d’assimiler le code qu’on te donne. Sérieux ! Le poste va faire 8 pages, et tu sais très bien ce qu’on en pense ici des demandes d’aides qui n’en finissent pas. Reprends depuis le début car là demander qu’est ce qui faut mettre dans addRecipe, revient à dire qu’au bout de 78 réponses, t’as toujours rien compris –’

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

                                          J’ai essayé de t’aider mais j’ai l’impression que tu n’y mets pas du tiens car si tu regardes les autres messages sur le forum, tu peux voir que à la plupart des messages, les personnes avancent dans leur code et renvoi leur code à chaque fois sauf que toi tout ce que tu dis c’est “je comprends pas, aidez moi”, tout ce que je peux te conseiller c’est revoir en entier le tutoriel sur open classroom et revoir les tutoriels vidéos mis à disposition sur la chaîne youtube du forum.

                                          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
                                          • robin4002R Hors-ligne
                                            robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                                            dernière édition par

                                            Rappel :
                                            Aider = donner des pistes, des bouts de code.
                                            Donner un code entier tout fait = assistance à la personne.

                                            Dans le premier cas tu prends de l’expérience et tu deviens autonome. Dans le second cas tu deviens majoritairement dépendant.

                                            Aller un petit indice. Dans ta fonction addRecipe il faut que tu ajoutes une entrée à ta HashMap nommé smeltingList car c’est elle qui est sensé contenir toutes les recettes.

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

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB