MFF

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

    Un bloc basique

    Planifier Épinglé Verrouillé Déplacé Les blocs
    1.6.x
    70 Messages 19 Publieurs 32.1k 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.
    • Y Hors-ligne
      Yseriu
      dernière édition par

      Salut,
      j’ai essayé d’utiliser une fonction pour définir la texture du bloc avec OnBlockAdded, mais mon block n’a toujours pas de texture …
      Une idée ?

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

        La fonction pour la texture se met dans le constructeur, pas dans onBlockAdded.

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

          Mais si je veux que la texture dépende de la position du bloc, style prendre la texture du bloc d’en dessous.

          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

            http://www.minecraftforgefrance.fr/showthread.php?tid=78
            http://www.minecraftforgefrance.fr/showthread.php?tid=115

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

              Damn rien ne fonctionne 3eme tuto du site que je suis à la lettre et toujours pas moyen de faire mon 1er mod

              BlockTutorial = new BlockTutorial(2000).setHardness(1.0F).setResistance(5.0F).setStepSound(Block.soundStoneFootstep).setUnlocalizedName(“BlockTutorial”).setTextureName(“modtutoriel:BlockTutorial”);

              “BlockTutorial cannot be resolved to a type”
              Erreur pas moyen de faire quoi que se soit, je ne sais pas si ce tuto est compatible 1.6.4 mais on dirais pas…

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

                Si si, c’est bien 1.6.4.
                Selon l’erreur, tu n’as pas déclaré le bloc.

                public static Block BlockTutorial
                à mettre en haut de la classe.

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

                  Si il est déclaré en-dessous de “instance”, c’est ça que je comprends pas …

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

                    Envoie toute ta classe principale, il y a un truc pas normal.

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

                      Laisse tomber c’est pas la peine, je suis vraiment patient et persévérant, j’ai réussit à comprendre d’où venais mon erreur, mais là c’est encore autre chose qui fait tout planter…
                      Je vais arrêter tous ça et continuer de dev en .net et ou je ne dépend pas de 3 logiciel pour dev quelque chose.
                      Merci quand même.

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

                        Moi j’ai une erreur quand j’essaye de faire un “RUN” avec eclipse :/```java

                        –-- Minecraft Crash Report ----
                        // Daisy, daisy…

                        Time: 14/01/14 16:17
                        Description: There was a severe problem during mod loading that has caused the game to fail

                        cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: erylia.proxy.eryliaClientProxy
                        at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:75)
                        at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:519)
                        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.EventHandler.handleEvent(EventHandler.java:74)
                        at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
                        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
                        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
                        at com.google.common.eventbus.EventBus.post(EventBus.java:267)
                        at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:194)
                        at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
                        at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
                        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
                        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
                        at com.google.common.eventbus.EventBus.post(EventBus.java:267)
                        at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:105)
                        at cpw.mods.fml.common.Loader.loadMods(Loader.java:509)
                        at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:181)
                        at net.minecraft.client.Minecraft.startGame(Minecraft.java:471)
                        at net.minecraft.client.Minecraft.run(Minecraft.java:806)
                        at net.minecraft.client.main.Main.main(Main.java:93)
                        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:57)
                        at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
                        Caused by: java.lang.ClassNotFoundException: erylia.proxy.eryliaClientProxy
                        at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:94)
                        at java.lang.ClassLoader.loadClass(Unknown Source)
                        at java.lang.ClassLoader.loadClass(Unknown Source)
                        at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58)
                        at java.lang.Class.forName0(Native Method)
                        at java.lang.Class.forName(Unknown Source)
                        at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:58)
                        … 33 more

                        A detailed walkthrough of the error, its code path and all known details is as follows:

                        – System Details –
                        Details:
                        Minecraft Version: 1.6.2
                        Operating System: Windows 7 (amd64) version 6.1
                        Java Version: 1.7.0_45, Oracle Corporation
                        Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
                        Memory: 966722112 bytes (921 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
                        JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                        AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                        Suspicious classes: FML and Forge are installed
                        IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
                        FML: MCP v8.04 FML v6.2.62.871 Minecraft Forge 9.10.1.871 5 mods loaded, 5 mods active
                        mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
                        FML{6.2.62.871} [Forge Mod Loader] (bin) Unloaded->Constructed
                        Forge{9.10.1.871} [Minecraft Forge] (bin) Unloaded->Constructed
                        eryliablock{1.0.0} [Blocks by EryliaCoders] (bin) Unloaded->Errored
                        Erylia{1.0.0} [Erylia] (bin) Unloaded->Errored

                        Des mods à venir ! :0

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

                          Il ne trouve pas erylia.proxy.eryliaClientProxy

                          Envois ta class principale et tes class proxy common et client.

                          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
                          • B Hors-ligne
                            BDBladx
                            dernière édition par

                            Classe principale ```java
                            package bdbladx.common;

                            import net.minecraft.block.Block;
                            import bdbladx.proxy.eryliaCommonProxy;
                            import cpw.mods.fml.common.Mod;
                            import cpw.mods.fml.common.Mod.EventHandler;
                            import cpw.mods.fml.common.Mod.Instance;
                            import cpw.mods.fml.common.SidedProxy;
                            import cpw.mods.fml.common.event.FMLInitializationEvent;
                            import cpw.mods.fml.common.event.FMLPostInitializationEvent;
                            import cpw.mods.fml.common.event.FMLPreInitializationEvent;
                            import cpw.mods.fml.common.network.NetworkMod;
                            import cpw.mods.fml.common.registry.GameRegistry;

                            @Mod(modid = “eryliablock”, name = “Blocks by EryliaCoders”, version = “1.0.0”)
                            @NetworkMod(clientSideRequired = true, serverSideRequired = false)

                            public class eryliablocks {
                            @SidedProxy(clientSide = “erylia.proxy.eryliaClientProxy”, serverSide = “erylia.proxy.eryliaCommonProxy”)
                            public static eryliaCommonProxy proxy;

                            public static Block BlockTutorial;

                            @EventHandler
                            public void PreInit(FMLPreInitializationEvent event)
                            {
                            BlockTutorial = new BlockTutorial(2000).setHardness(1.0F).setResistance(5.0F).setStepSound(Block.soundMetalFootstep)
                            .setUnlocalizedName(“BlockTutorial”).setTextureName(“modtutoriel:BlockTutorial”);
                            GameRegistry.registerBlock(BlockTutorial, “BlockTutorial”);
                            }

                            @EventHandler
                            public void Init(FMLInitializationEvent event)
                            {
                            proxy.registerRender();
                            }

                            @EventHandler
                            public void PostInit(FMLPostInitializationEvent event)
                            {

                            }

                            }

                            ClientProxy
                            ```java
                            
                            package bdbladx.proxy;
                            
                            import net.minecraftforge.client.MinecraftForgeClient;
                            
                            public class eryliaClientProxy extends eryliaCommonProxy {
                            
                            @Override
                            public void registerRender() {
                            // TODO Auto-generated method stub
                            }
                            
                            }
                            
                            

                            Common proxy

                            package bdbladx.proxy;
                            
                            public class eryliaCommonProxy {
                            
                            public void registerRender() {
                            // TODO Auto-generated method stub
                            
                            }
                            
                            }
                            
                            ```___
                            JE viens de me rendre compte que j'avais mis erylia.proxy au ieu de bdbladx.proxy je teste et je vous dis si ça marche =)___
                            AH c'est bon ! =)

                            Des mods à venir ! :0

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

                              Ok, c’est bien que tu es trouvé ton erreur par toi-mê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
                              • S Hors-ligne
                                Skylines
                                dernière édition par

                                Salut , quand je RUN mon mod ne ce met pas et il n’y a pas d’erreur ,
                                Que faire ?

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

                                  Quand tu run ? C’est a dire ?

                                  "If you have a comprehensive explanation for everything then it decreases uncertainty and anxiety and reduces your cognitive load. And if you can use that simplifying algorithm to put yourself on the side of moral virtue then you’re constantly a good person with a minimum of effort."
                                  ― Jordan B. Peterson

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

                                    Quand je clique sur RUN

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

                                      Hm …

                                      Envoie tes logs peut-être, ainsi que ton code ?

                                      On peux pas vraiment aider sans aucune information vois-tu.

                                      "If you have a comprehensive explanation for everything then it decreases uncertainty and anxiety and reduces your cognitive load. And if you can use that simplifying algorithm to put yourself on the side of moral virtue then you’re constantly a good person with a minimum of effort."
                                      ― Jordan B. Peterson

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

                                        Oui bien sur

                                        Classe principale

                                        package sylaentool.common;
                                        
                                        import net.minecraft.block.Block;
                                        import sylaentool.proxy.SyltCommonProxy;
                                        import cpw.mods.fml.common.Mod;
                                        import cpw.mods.fml.common.Mod.EventHandler;
                                        import cpw.mods.fml.common.Mod.Instance;
                                        import cpw.mods.fml.common.SidedProxy;
                                        import cpw.mods.fml.common.event.FMLInitializationEvent;
                                        import cpw.mods.fml.common.event.FMLPostInitializationEvent;
                                        import cpw.mods.fml.common.event.FMLPreInitializationEvent;
                                        import cpw.mods.fml.common.network.NetworkMod;
                                        import cpw.mods.fml.common.registry.GameRegistry;
                                        
                                        @Mod(modid = "SylaenTool", name = "Sylaen Tool", version = "1.0.0", acceptedMinecraftVersions = "[1.6.4),)")
                                        @NetworkMod(clientSideRequired = true, serverSideRequired = false)
                                        
                                        public class SylaenTool
                                        {
                                        @SidedProxy(clientSide = "sylaent.proxy.SyltClientProxy", serverSide = "sylaent.proxy.SyltCommonProxy")
                                        public static SyltCommonProxy proxy;
                                        
                                        @Instance("SylaenTool")
                                        public static SylaenTool instance;
                                        public static Block MineraisAcier;
                                        
                                        @EventHandler
                                        public void PreInit(FMLPreInitializationEvent event)
                                        {
                                        MineraisAcier = new MineraisAcier(3000).setHardness(2.0F).setResistance(5.0F).setStepSound(Block.soundStoneFootstep)
                                        .setUnlocalizedName("MineraisAcier").setTextureName("sylaentool:MineraisAcier");
                                        GameRegistry.registerBlock(MineraisAcier,"MineraisAcier");
                                        
                                        }
                                        
                                        @EventHandler
                                        public void Init (FMLInitializationEvent event)
                                        {
                                        
                                        }
                                        
                                        @EventHandler
                                        public void PostInit(FMLPostInitializationEvent event)
                                        {
                                        
                                        }
                                        }
                                        
                                        

                                        Client Proxy

                                        package sylaentool.proxy;
                                        
                                        import net.minecraftforge.client.MinecraftForgeClient;
                                        
                                        public class SyltClientProxy extends SyltCommonProxy
                                        {
                                        @Override
                                        public void registerRender()
                                        {
                                        //futur client registry
                                        }
                                        }
                                        

                                        Common Proxy

                                        package sylaentool.proxy;
                                        
                                        public class SyltCommonProxy
                                        {
                                        public void registerRender()
                                        {
                                        
                                        }
                                        }
                                        
                                        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

                                          acceptedMinecraftVersions = “[1.6.4),)” -> acceptedMinecraftVersions = “[1.6.4,)”

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

                                            Nouveau probleme …

                                            ---- Minecraft Crash Report —
                                            // Hey, that tickles! Hehehe!

                                            Time: 02/02/14 14:06
                                            Description: There was a severe problem during mod loading that has caused the game to fail

                                            cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: sylaent.proxy.SyltClientProxy
                                            at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:75)
                                            at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:524)
                                            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.EventHandler.handleEvent(EventHandler.java:74)
                                            at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
                                            at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
                                            at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
                                            at com.google.common.eventbus.EventBus.post(EventBus.java:267)
                                            at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)
                                            at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
                                            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.EventHandler.handleEvent(EventHandler.java:74)
                                            at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
                                            at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
                                            at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
                                            at com.google.common.eventbus.EventBus.post(EventBus.java:267)
                                            at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)
                                            at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)
                                            at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
                                            at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)
                                            at net.minecraft.client.Minecraft.run(Minecraft.java:808)
                                            at net.minecraft.client.main.Main.main(Main.java:93)
                                            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:131)
                                            at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
                                            Caused by: java.lang.ClassNotFoundException: sylaent.proxy.SyltClientProxy
                                            at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
                                            at java.lang.ClassLoader.loadClass(Unknown Source)
                                            at java.lang.ClassLoader.loadClass(Unknown Source)
                                            at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:61)
                                            at java.lang.Class.forName0(Native Method)
                                            at java.lang.Class.forName(Unknown Source)
                                            at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:58)
                                            … 33 more
                                            Caused by: java.lang.NullPointerException
                                            at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:178)
                                            … 39 more

                                            A detailed walkthrough of the error, its code path and all known details is as follows:

                                            – System Details –
                                            Details:
                                            Minecraft Version: 1.6.4
                                            Operating System: Windows 8 (x86) version 6.2
                                            Java Version: 1.7.0_45, Oracle Corporation
                                            Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
                                            Memory: 884623872 bytes (843 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
                                            Suspicious classes: FML and Forge are installed
                                            IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
                                            FML: MCP v8.11 FML v6.4.45.953 Minecraft Forge 9.11.1.953 4 mods loaded, 4 mods active
                                            mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
                                            FML{6.4.45.953} [Forge Mod Loader] (bin) Unloaded->Constructed
                                            Forge{9.11.1.953} [Minecraft Forge] (bin) Unloaded->Constructed
                                            SylaenTool{1.0.0} [Sylaen Tool] (bin) Unloaded->Errored

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

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB