Créer un item simple
-
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é -
setCreativeTab(CreativeTabs.celleQueTuVeux);
A placer soit dans le constructeur, soit lors de l’initialisation de ton item :
tonitem = new Item().setCreativeTab(…)//par-exemple -
@‘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
tokenSinon 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 :/…)
-
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. -
J’ai édité mon message précédent :).
Et du coup comment résoudre là-dîtes erreur? -
“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).
-
Il ne me demande plus que ça maintenant. The method setCreativeTab(CreativeTabs) is undefined for the type ClientProxy
Je créée la méthode? -
Tu l’as mis où ? Il faut que tu le mettes le .setCreativeTabs(…) après le “meatEpanterias = new TonItem()//ici”
-
Là:
Avec pour croix rouge:
Syntax error, insert “;” to complete BlockStatementsJ’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]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= -
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. -
Mais elle est pas censée manquer!:
-
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.
-
Il faut que tu retires le // et que tu mettes le ; à la toute fin de la ligne
-
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)
-
Même après avoir fait F5 il n’y est pas ?
Tu peux envoyer un screen du project explorer ? -
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]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
-
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 -
L’erreur pour CreativeTab c’est ça:
The method setCreativeTab(CreativeTabs) is undefined for the type Modzoic
Sinon t’as tous les fichiers ici: -
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. -
Ok tout ça je peux le faire, faut juste me rappeler comment on fait le setup déjà stp