Créer un kit d'outils
-
WOW, T’A VRAIMENT UN BON OEUIL

-
Non, je sais lire un crash report : “The name tc:item_rubis_shovel has been registered twice”
-
WOW, T’A VRAIMENT UN BON OEUIL

par contre, ca marche meme quand je le met dans init, c’est quoi que c’a change?
-
Pas grand chose, mais il est mieux de le mettre dans preInit.
-
Bonjour,
Alors voila j’ai essaye de suivre le tutoriel plusieurs fois mais a la fin toujours le même problèmes :
La texture de l’item n’apparait pas en jeu ! Les dégâts ,la durabilité ….Tous est pris en compte sauf la texture.
J’ai essaye avec des textures différentes , aucun changement.
Pourriez vous m’aider ?
Voici mon menu de gauche :

-
Et ton code ? Les logs ? Il me faudrait aussi le json.
-
[13:26:16] [main/INFO] [GradleStart]: username: onepiecedeath@hotmail.fr [13:26:16] [main/INFO] [GradleStart]: Extra: [] [13:26:16] [main/INFO] [GradleStart]: Password found, attempting login [13:26:16] [main/INFO]: Logging in with username & password [13:26:18] [main/INFO] [GradleStart]: Login Succesful! [13:26:18] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, [], –assetsDir, C:/Users/SCS6/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --userType, mojang, --accessToken, {REDACTED}, --version, 1.8, --uuid, fad4142154044226b116e6c1558184a3, --username, Kriksou, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [13:26:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [13:26:18] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [13:26:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [13:26:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [13:26:19] [main/INFO] [FML]: Forge Mod Loader version 8.99.182.1491 for Minecraft 1.8 loading [13:26:19] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jdk1.8.0_51 [13:26:19] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [13:26:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [13:26:19] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [13:26:19] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [13:26:19] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [13:26:19] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [13:26:19] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [13:26:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [13:26:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [13:26:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [13:26:19] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [13:26:21] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [13:26:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [13:26:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [13:26:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [13:26:22] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [13:26:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [13:26:22] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [13:26:25] [Client thread/INFO]: Setting user: Kriksou [13:26:30] [Client thread/INFO]: LWJGL Version: 2.9.1 [13:26:31] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:235]: –-- Minecraft Crash Report ---- // Don't be sad, have a hug! <3 Time: 20/07/15 13:26 Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 861376408 bytes (821 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: '2.1.0 - Build 8.15.10.1872' Renderer: 'Intel(R) 4 Series Internal Chipset' [13:26:31] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [13:26:31] [Client thread/INFO] [FML]: MinecraftForge v11.14.3.1491 Initialized [13:26:32] [Client thread/INFO] [FML]: Replaced 204 ore recipies [13:26:32] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [13:26:32] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [13:26:32] [Client thread/INFO] [FML]: Searching C:\Users\SCS6\Downloads\forge-1.8-11.14.3.1491-src\eclipse\mods for mods [13:26:40] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [13:26:40] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, mod2] at CLIENT [13:26:40] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, mod2] at SERVER [13:26:42] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Projet2 [13:26:42] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [13:26:42] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [13:26:42] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [13:26:42] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [13:26:42] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [13:26:42] [Client thread/INFO] [FML]: Applying holder lookups [13:26:43] [Client thread/INFO] [FML]: Holder lookups applied [13:26:43] [Client thread/INFO] [FML]: Injecting itemstacks [13:26:43] [Client thread/INFO] [FML]: Itemstack injection complete [13:26:44] [Sound Library Loader/INFO]: Starting up SoundSystem… [13:26:44] [Thread-9/INFO]: Initializing LWJGL OpenAL [13:26:44] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [13:26:48] [Thread-9/INFO]: OpenAL initialized. [13:26:48] [Sound Library Loader/INFO]: Sound engine started [13:26:53] [Client thread/INFO] [FML]: Max texture size: 4096 [13:26:53] [Client thread/INFO]: Created: 16x16 textures-atlas [13:26:54] [Client thread/ERROR] [FML]: Model definition for location mod2:blocktrois#inventory not found [13:26:54] [Client thread/ERROR] [FML]: Model definition for location mod2:blocktest#inventory not found [13:26:55] [Client thread/INFO] [FML]: Injecting itemstacks [13:26:55] [Client thread/INFO] [FML]: Itemstack injection complete [13:26:55] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [13:26:55] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Projet2 [13:26:55] [Client thread/INFO]: SoundSystem shutting down… [13:26:55] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [13:26:55] [Sound Library Loader/INFO]: Starting up SoundSystem… [13:26:56] [Thread-11/INFO]: Initializing LWJGL OpenAL [13:26:56] [Thread-11/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [13:26:56] [Thread-11/INFO]: OpenAL initialized. [13:26:56] [Sound Library Loader/INFO]: Sound engine started [13:26:58] [Client thread/INFO] [FML]: Max texture size: 4096 [13:26:59] [Client thread/INFO]: Created: 512x512 textures-atlas [13:27:00] [Client thread/ERROR] [FML]: Model definition for location mod2:blocktrois#inventory not found [13:27:00] [Client thread/ERROR] [FML]: Model definition for location mod2:blocktest#inventory not found [13:27:22] [Server thread/INFO]: Starting integrated minecraft server version 1.8 [13:27:22] [Server thread/INFO]: Generating keypair [13:27:22] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance [13:27:22] [Server thread/INFO] [FML]: Applying holder lookups [13:27:22] [Server thread/INFO] [FML]: Holder lookups applied [13:27:22] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@749d5c91) [13:27:22] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@749d5c91) [13:27:22] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@749d5c91) [13:27:22] [Server thread/INFO]: Preparing start region for level 0 [13:27:24] [Server thread/INFO]: Changing view distance to 6, from 10 [13:27:27] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2 [13:27:27] [Netty Server IO #1/INFO] [FML]: Client protocol version 2 [13:27:27] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : mod2@1.8,FML@8.0.99.99,Forge@11.14.3.1491,mcp@9.05 [13:27:27] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established [13:27:27] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [13:27:27] [Server thread/INFO]: Kriksou[local:E:ba34114d] logged in with entity id 71 at (212.03821846249332, 4.0, -1058.9954471646965) [13:27:27] [Server thread/INFO]: Kriksou joined the game [13:27:46] [Server thread/INFO]: Saving and pausing game… [13:27:47] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [13:27:47] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [13:27:47] [Server thread/INFO]: Saving chunks for level 'New World'/The End [13:27:47] [Server thread/INFO]: Stopping server [13:27:47] [Server thread/INFO]: Saving players [13:27:47] [Server thread/INFO]: Saving worlds [13:27:47] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [13:27:47] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [13:27:47] [Server thread/INFO]: Saving chunks for level 'New World'/The End [13:27:48] [Server thread/INFO] [FML]: Unloading dimension 0 [13:27:48] [Server thread/INFO] [FML]: Unloading dimension -1 [13:27:48] [Server thread/INFO] [FML]: Unloading dimension 1 [13:27:48] [Server thread/INFO] [FML]: Applying holder lookups [13:27:48] [Server thread/INFO] [FML]: Holder lookups applied [13:27:49] [Client thread/INFO]: Stopping! [13:27:49] [Client thread/INFO]: SoundSystem shutting down… [13:27:49] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future releaseMerci de ta réponse rapide je te fourni le code :
Ainsi que des Screenshots de mes classes car je ne vois pas trop ce que tu appel logs :
La classe principale :

La classe Item :

J’imagine que tu parle de ce json la ?
{ "parent": "builtin/generated", "textures": { "layer0": "mod2:items/SuperSword" }, "display": { "thirdperson": { "rotation": [ 0, 90, -35 ], "translation": [ 0, 1.25, -3.5 ], "scale": [ 0.85, 0.85, 0.85 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } }Encore une fois merci de ta réponse

-
C’est étrange car il y a aucune erreur concernant la texture ou le modèle de ton item dans les logs.
Ta texture fait bien 16x16 ? Ta fonction registerRender dans ton item est bien appelé ? -
Oui la texture je l’ai change 6 fois a chaque fois j’en est recrée une de 16x16 mais cela ne change rien
Tu parle de public static void registerRender ? Si oui aucune erreur est affiche -
Je ne te demande pas s’il y a une erreur, je te demande si la méthode est appelé quelque part.
-
Oui oui ça c’est bon
-
Je ne vois pas d’où ça vient alors, c’est étrange en théorie c’est bon

-
Je suis maudit =(
EDIT : Pour une raison qui m’ai totalement inconnu j’ai décidé de crée un item et bizarrement la texture de l’épée est apparu….A n’en rien comprendre.
:::
Petite question la classe la classe Itemsword avec dedans public class Itemsword extends ItemSword (add constructor aussi) est elle utile ?
:::
:::
J’ai quelques questions puis-je te les posées en mp ? il serait bête de recrée un topique pour ça
:::Encore merci a toi
-
@‘Kriksou’:
Petite question la classe la classe Itemsword avec dedans public class Itemsword extends ItemSword (add constructor aussi) est elle utile ?
Laquelle ?
@‘Kriksou’:J’ai quelques questions puis-je te les posées en mp ? il serait bête de recrée un topique pour ça
Non. Il est mieux de créer un sujet dans la section support pour les moddeurs.
-
Je parle de ceci :
package Items;import com.mod2.Reference;
import net.minecraft.item.*;
public class ClasseItemSword extends ItemSword
{public ClasseItemSword(ToolMaterial material)
{
super(material);
}}
-
Si tu l’utilises nul-part oui elle est inutile.
-
package ma.Yeyvo.Paladium.common; import cpw.mods.fml.common.IWorldGenerator; import ma.Yeyvo.Paladium.common.ModPaladium; import java.util.Random; import net.minecraft.init.Blocks; import net.minecraft.world.World; import net.minecraft.world.WorldProvider; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; public class WorldGenerationminerai implements IWorldGenerator { public WorldGenerationminerai() { } public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch(world.provider.dimensionId) { case -1: generateNether(world, chunkX * 16, chunkZ * 16, random); break; case 0: generateSurface(world, chunkX * 16, chunkZ * 16, random); break; case 1: generateEnd(world, chunkX * 16, chunkZ * 16, random); break; default: return; } } private void generateSurface(World world, int x, int z, Random rand) { for(int i = 0; i < 2; i++) (new WorldGenMinable(ModPaladium.AmethystOre, 0, 3, ModPaladium.amethystore)).generate(world, rand, x + rand.nextInt(16), rand.nextInt(20), z + rand.nextInt(16)); for(int i = 0; i < 1; i++) (new WorldGenMinable(ModPaladium.PaladiumOre, 0, 3, ModPaladium.Paladiumore)).generate(world, rand, x + rand.nextInt(16), rand.nextInt(20), z + rand.nextInt(16)); for(int i = 0; (double)i < 0.69999999999999996D; i++) (new WorldGenMinable(ModPaladium.TitaneOre, 0, 3, ModPaladium.titaneore)).generate(world, rand, x + rand.nextInt(16), rand.nextInt(19), z + rand.nextInt(16)); for(int i = 0; i < 50; i++) (new WorldGenMinable(ModPaladium.findiumore, 0, 3, ModPaladium.findiumore)).generate(world, rand, x + rand.nextInt(16), rand.nextInt(16), z + rand.nextInt(16)); } private void generateEnd(World world1, int i, int j, Random random) { } private void generateNether(World world1, int k, int l, Random random1) { } }Mon erreur “The constructor WorldGenMinable(Item, int, int, Block) is undefined”
un fix??
-
import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class smallring extends Item { public smallring() { func_77656_e(500); func_77625_d(1); } public void func_77663_a(ItemStack stack, World world, Entity entity, int slot, boolean selected) { if(entity instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer)entity; for(int i = 0; i < 4; i++) { ItemStack armor = player.func_82169_q(i); if(armor != null && armor.func_77960_j() > 0 && stack.func_77960_j() < stack.func_77958_k()) { stack.func_77964_b(stack.func_77960_j() + 1); armor.func_77964_b(armor.func_77960_j() - 1); } } } } }pouvez vous m’aider a trouver les truc (func_77964_b , func_77964_b ,…)
svp
:s -
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-tools/1265548-mcp-mapping-viewer
Tu essaies de faire quoi ?
-
@‘robin4002’:
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-tools/1265548-mcp-mapping-viewer
Tu essaies de faire quoi ?
un gentre d’anau qui repar ton armure et perd en dura
