• Récent
  • Mots-clés
  • Populaire
  • Utilisateurs
  • Groupes
  • S'inscrire
  • Se connecter
  • S'inscrire
  • Se connecter
  • Recherche
  • Récent
  • Mots-clés
  • Populaire
  • Utilisateurs
  • Groupes

Créer un item simple

Les items
1.8.x
20
145
31.0k
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.
  • conquerorguepard
    conquerorguepard dernière édition par 28 mars 2016, 20:06

    Le mettre dans une creative tab? C’est quoi déjà?
    Et pour la texture c’était déjà bien rangé mais je croyais qu’il fallait marquer “resources” et item". Du coup j’ai modifié 🙂

    1 réponse Dernière réponse Répondre Citer 0
    • Deleted
      Deleted dernière édition par 28 mars 2016, 20:07

      setCreativeTab(CreativeTabs.celleQueTuVeux);
      A placer soit dans le constructeur, soit lors de l’initialisation de ton item :
      tonitem = new Item().setCreativeTab(…)//par-exemple

      1 réponse Dernière réponse Répondre Citer 0
      • conquerorguepard
        conquerorguepard dernière édition par 28 mars 2016, 20:12

        @‘Plaigon’:

        setCreativeTab(CreativeTabs.celleQueTuVeux);
        A placer soit dans le constructeur, soit lors de l’initialisation de ton item :
        tonitem = new Item().setCreativeTab(…)//par-exemple

        “celleQueTuVeux”= c’est à dire? Un numéro ou un mot spécial?
        “(…)//par-exemple”= Je visualise mal :/…
        Et ça me met croix rouge:
        Multiple markers at this line
            - CreativeTabs cannot be resolved to a
             variable
            - Syntax error on token “.1”, delete this
             token

        Sinon pour le changement de nom (resources,item >ressources,items) maintenant ça ne marche plus ça me met ça puis ça:

        (c’est compliqué je trouve pour un seul pauvre item :/…)

        1 réponse Dernière réponse Répondre Citer 0
        • robin4002
          robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 28 mars 2016, 20:30

          La première erreur -> tu as une erreur dans ton code donc il te demande confirmation avant de lancer car le programme risque de planter
          La deuxième -> Il faut sélectionner le projet ou une classe du projet avant de cliquer sur lancer.

          1 réponse Dernière réponse Répondre Citer 0
          • conquerorguepard
            conquerorguepard dernière édition par 28 mars 2016, 20:31

            J’ai édité mon message précédent :).
            Et du coup comment résoudre là-dîtes erreur?

            1 réponse Dernière réponse Répondre Citer 0
            • AymericRed
              AymericRed dernière édition par 28 mars 2016, 20:44

              “tonitem = new Item().setCreativeTab(CreativeTabs.)” quand tu écris le point après CreativeTabs ou que tu appuis sur ctrl+space après le point, eclipse va te proposer les différentes creative tabs disponibles où sinon tu peux en créer un (il y a un tuto).

              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
              • conquerorguepard
                conquerorguepard dernière édition par 28 mars 2016, 20:46

                Il ne me demande plus que ça maintenant. The method setCreativeTab(CreativeTabs) is undefined for the type ClientProxy
                Je créée la méthode?

                1 réponse Dernière réponse Répondre Citer 0
                • AymericRed
                  AymericRed dernière édition par 28 mars 2016, 20:50

                  Tu l’as mis où ? Il faut que tu le mettes le .setCreativeTabs(…) après le “meatEpanterias = new TonItem()//ici”

                  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
                  • conquerorguepard
                    conquerorguepard dernière édition par 28 mars 2016, 20:53

                    Là:
                    Avec pour croix rouge:
                    Syntax error, insert “;” to complete BlockStatements

                    J’ai rajouté “;” ici: as();//setCre

                    C’est ce qu’il fallait?

                    Sinon quand je lance j’ai ça:
                    22:56:41] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
                    [22:56:41] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found.
                    [22:56:41] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
                    [22:56:41] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN modzoic
                    [22:56:41] [Client thread/ERROR] [TEXTURE ERRORS]: –------------------------------------------------
                    [22:56:41] [Client thread/ERROR] [TEXTURE ERRORS]:   domain modzoic is missing 1 texture
                    [22:56:41] [Client thread/ERROR] [TEXTURE ERRORS]:     domain modzoic has 1 location:
                    [22:56:41] [Client thread/ERROR] [TEXTURE ERRORS]:       mod modzoic resources at C:\Users\Conqueror\Documents\Modding\forge-1.8.8\bin
                    [22:56:41] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
                    [22:56:41] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain modzoic are:
                    [22:56:41] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/meatEpanterias.png
                    [22:56:41] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
                    [22:56:41] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain modzoic
                    [22:56:41] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
                    [22:56:41] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

                    1 réponse Dernière réponse Répondre Citer 0
                    • Ama
                      Ama dernière édition par 28 mars 2016, 21:07

                      domain modzoic is missing 1 texture:
                      il manque une texture

                      **The missing resources for domain modzoic are: **
                      La texture qui manque est
                      **textures/items/meatEpanterias.png **
                      il suffit de lire.

                      Si je t'ai filé un coup de main n'oublie pas le + / -
                      Par contre évite les demandes d'aides en MP, tu sera sympa'

                      La JavaDoc c'est comme le PQ, ça sert à ce démerder tous seul. -Victor Hugo- 2017

                      Une superbe API pour animer vos super modèles CraftStudio dans Minecraft !

                      1 réponse Dernière réponse Répondre Citer 0
                      • conquerorguepard
                        conquerorguepard dernière édition par 28 mars 2016, 21:09

                        Mais elle est pas censée manquer!:

                        1 réponse Dernière réponse Répondre Citer 0
                        • robin4002
                          robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 28 mars 2016, 21:18

                          Sur eclipse déroule le dossier src/main/resources, est-ce que la texture est présente ? Si non, sélectionne le dossier et appuies sur F5.

                          1 réponse Dernière réponse Répondre Citer 0
                          • AymericRed
                            AymericRed dernière édition par 28 mars 2016, 21:22

                            Il faut que tu retires le // et que tu mettes le ; à la toute fin de la ligne

                            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
                            • conquerorguepard
                              conquerorguepard dernière édition par 28 mars 2016, 21:28

                              Il est bien placé là le // Aymeric?
                              Il y est non robin, ou faut le déplacer?

                              (les deux réponses sur la même image)

                              1 réponse Dernière réponse Répondre Citer 0
                              • robin4002
                                robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 28 mars 2016, 21:45

                                Même après avoir fait F5 il n’y est pas ?
                                Tu peux envoyer un screen du project explorer ?

                                1 réponse Dernière réponse Répondre Citer 0
                                • conquerorguepard
                                  conquerorguepard dernière édition par 28 mars 2016, 21:56

                                  J’ai fait f5 et j’ai relancé ça me met ça:

                                  – System Details --
                                  Details:
                                      Minecraft Version: 1.8.8
                                      Operating System: Windows 8.1 (amd64) version 6.3
                                      Java Version: 1.8.0_77, Oracle Corporation
                                      Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
                                      Memory: 854330472 bytes (814 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
                                      JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                                      IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
                                      FML:
                                      Loaded coremods (and transformers):
                                      GL info: ' Vendor: 'Intel' Version: '4.0.0 - Build 10.18.10.3308' Renderer: 'Intel(R) HD Graphics'
                                  [23:52:41] [Client thread/INFO] [FML]: MinecraftForge v11.15.0.1655 Initialized
                                  [23:52:42] [Client thread/INFO] [FML]: Replaced 204 ore recipies
                                  [23:52:43] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
                                  [23:52:43] [Client thread/INFO] [FML]: Searching C:\Users\Conqueror\Documents\Modding\forge-1.8.8\run\mods for mods
                                  [23:52:48] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
                                  [23:52:48] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, modzoic] at CLIENT
                                  [23:52:48] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, modzoic] at SERVER
                                  [23:52:49] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Modzoic
                                  [23:52:50] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
                                  [23:52:50] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations
                                  [23:52:50] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
                                  [23:52:50] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
                                  [23:52:50] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
                                  [23:52:50] [Client thread/INFO] [FML]: Applying holder lookups
                                  [23:52:50] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
                                  [23:52:50] [Client thread/INFO] [FML]: Holder lookups applied
                                  [23:52:50] [Client thread/INFO] [FML]: Injecting itemstacks
                                  [23:52:50] [Client thread/INFO] [FML]: Itemstack injection complete
                                  [23:52:50] [Sound Library Loader/INFO]: Starting up SoundSystem…
                                  [23:52:50] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: BETA Target: null
                                  [23:52:51] [Thread-9/INFO]: Initializing LWJGL OpenAL
                                  [23:52:51] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                                  AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80070490
                                  AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80070490
                                  [23:52:51] [Thread-9/ERROR]: Error in class 'LibraryLWJGLOpenAL'
                                  [23:52:51] [Thread-9/ERROR]: Unable to initialize OpenAL.  Probable cause: OpenAL not supported.
                                  [23:52:51] [Thread-9/WARN]: ERROR MESSAGE:
                                  [23:52:51] [Thread-9/INFO]: Could not locate OpenAL library.
                                  [23:52:51] [Thread-9/WARN]: STACK TRACE:
                                  [23:52:51] [Thread-9/INFO]: org.lwjgl.openal.AL.create(AL.java:156)
                                  [23:52:51] [Thread-9/INFO]: org.lwjgl.openal.AL.create(AL.java:102)
                                  [23:52:51] [Thread-9/INFO]: org.lwjgl.openal.AL.create(AL.java:206)
                                  [23:52:51] [Thread-9/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
                                  [23:52:51] [Thread-9/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
                                  [23:52:51] [Thread-9/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
                                  [23:52:51] [Thread-9/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121)
                                  [23:52:51] [Sound Library Loader/WARN]: ERROR MESSAGE:
                                  [23:52:51] [Sound Library Loader/INFO]: Could not locate OpenAL library.
                                  [23:52:51] [Sound Library Loader/INFO]: Starting up SoundSystem…
                                  [23:52:51] [Thread-11/INFO]: Switching to No Sound
                                  [23:52:51] [Thread-11/INFO]: (Silent Mode)
                                  [23:52:51] [Sound Library Loader/INFO]: Sound engine started
                                  [23:53:01] [Client thread/INFO] [FML]: Max texture size: 8192
                                  [23:53:01] [Client thread/INFO]: Created: 16x16 textures-atlas
                                  [23:53:05] [Client thread/INFO] [FML]: Injecting itemstacks
                                  [23:53:05] [Client thread/INFO] [FML]: Itemstack injection complete
                                  [23:53:05] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
                                  [23:53:05] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Modzoic
                                  [23:53:05] [Client thread/INFO]: SoundSystem shutting down…
                                  [23:53:05] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
                                  [23:53:05] [Sound Library Loader/INFO]: Starting up SoundSystem…
                                  [23:53:05] [Thread-13/INFO]: Initializing LWJGL OpenAL
                                  [23:53:05] [Thread-13/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                                  AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80070490
                                  AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80070490
                                  [23:53:05] [Thread-13/ERROR]: Error in class 'LibraryLWJGLOpenAL'
                                  [23:53:05] [Thread-13/ERROR]: Unable to initialize OpenAL.  Probable cause: OpenAL not supported.
                                  [23:53:05] [Thread-13/WARN]: ERROR MESSAGE:
                                  [23:53:05] [Thread-13/INFO]: Could not locate OpenAL library.
                                  [23:53:05] [Thread-13/WARN]: STACK TRACE:
                                  [23:53:05] [Thread-13/INFO]: org.lwjgl.openal.AL.create(AL.java:156)
                                  [23:53:05] [Thread-13/INFO]: org.lwjgl.openal.AL.create(AL.java:102)
                                  [23:53:05] [Thread-13/INFO]: org.lwjgl.openal.AL.create(AL.java:206)
                                  [23:53:05] [Thread-13/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
                                  [23:53:05] [Thread-13/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
                                  [23:53:05] [Thread-13/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
                                  [23:53:05] [Thread-13/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121)
                                  [23:53:06] [Sound Library Loader/WARN]: ERROR MESSAGE:
                                  [23:53:06] [Sound Library Loader/INFO]: Could not locate OpenAL library.
                                  [23:53:06] [Sound Library Loader/INFO]: Starting up SoundSystem…
                                  [23:53:06] [Thread-15/INFO]: Switching to No Sound
                                  [23:53:06] [Thread-15/INFO]: (Silent Mode)
                                  [23:53:06] [Sound Library Loader/INFO]: Sound engine started
                                  [23:53:12] [Client thread/INFO] [FML]: Max texture size: 8192
                                  [23:53:13] [Client thread/INFO]: Created: 512x512 textures-atlas
                                  [23:53:14] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
                                  [23:53:14] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found.
                                  [23:53:14] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
                                  [23:53:14] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN modzoic
                                  [23:53:14] [Client thread/ERROR] [TEXTURE ERRORS]: –------------------------------------------------
                                  [23:53:14] [Client thread/ERROR] [TEXTURE ERRORS]:   domain modzoic is missing 1 texture
                                  [23:53:14] [Client thread/ERROR] [TEXTURE ERRORS]:     domain modzoic has 1 location:
                                  [23:53:14] [Client thread/ERROR] [TEXTURE ERRORS]:       mod modzoic resources at C:\Users\Conqueror\Documents\Modding\forge-1.8.8\bin
                                  [23:53:14] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
                                  [23:53:14] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain modzoic are:
                                  [23:53:14] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/meatEpanterias.png
                                  [23:53:14] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
                                  [23:53:14] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain modzoic
                                  [23:53:14] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
                                  [23:53:14] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
                                  1 réponse Dernière réponse Répondre Citer 0
                                  • AymericRed
                                    AymericRed dernière édition par 28 mars 2016, 22:02

                                    Non il faut que tu le retires le //.
                                    Et montre le menu  “Errors” d’éclipse car il y a un gros ! sur ton projet, ce qui n’es pas normal

                                    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
                                    • conquerorguepard
                                      conquerorguepard dernière édition par 29 mars 2016, 06:30

                                      L’erreur pour CreativeTab c’est ça:
                                      The method setCreativeTab(CreativeTabs) is undefined for the type Modzoic
                                      Sinon t’as tous les fichiers ici:

                                      1 réponse Dernière réponse Répondre Citer 0
                                      • robin4002
                                        robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par 29 mars 2016, 07:25

                                        Oula, ton espace de travail est complètement cassé, le dossier src/main/resources n’est plus lié, c’est pour ça que tes textures ne fonctionnent pas.
                                        Copies le dossier src sur ton bureau, supprime le dossier de forge, refais un setup puis colles le dossier src.

                                        1 réponse Dernière réponse Répondre Citer 0
                                        • conquerorguepard
                                          conquerorguepard dernière édition par 29 mars 2016, 11:01

                                          Ok tout ça je peux le faire, faut juste me rappeler comment on fait le setup déjà stp 😕

                                          1 réponse Dernière réponse Répondre Citer 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 7
                                          • 8
                                          • 3 / 8
                                          58 sur 145
                                          • Premier message
                                            58/145
                                            Dernier message
                                          Design by Woryk
                                          Contact / Mentions Légales

                                          MINECRAFT FORGE FRANCE © 2018

                                          Powered by NodeBB