Résolu Problème decrafter un block
-
Bonjour j’ai un problème j’aimerais decrafter mon block avec les 9 slot mais sela fonctionne seulement avec les 3 slot du milieu voici mon code:
GameRegistry.addRecipe(new ItemStack(ItemMod.composite, 9), new Object[]{" ", " . ", " ", '.', BlockMod.block_composite});
Voici a quoi ressemble quand ca marche
https://cdn.discordapp.com/attachments/547075542470623247/623565991305281536/unknown.png
et qand ca marche pas
https://cdn.discordapp.com/attachments/547075542470623247/623566300853305355/unknown.png
Merci de votre réponse
-
GameRegistry.addRecipe(new ItemStack(ItemMod.composite, 9), new Object[] { "C "," "," ", 'C', BlockMod.block_composite}); GameRegistry.addRecipe(new ItemStack(ItemMod.composite, 9), new Object[] { " C "," "," ", 'C', BlockMod.block_composite}); GameRegistry.addRecipe(new ItemStack(ItemMod.composite, 9), new Object[] { " C"," "," ", 'C', BlockMod.block_composite}); GameRegistry.addRecipe(new ItemStack(ItemMod.composite, 9), new Object[] { " ","C "," ", 'C', BlockMod.block_composite}); GameRegistry.addRecipe(new ItemStack(ItemMod.composite, 9), new Object[] { " "," C "," ", 'C', BlockMod.block_composite}); GameRegistry.addRecipe(new ItemStack(ItemMod.composite, 9), new Object[] { " "," C"," ", 'C', BlockMod.block_composite}); GameRegistry.addRecipe(new ItemStack(ItemMod.composite, 9), new Object[] { " "," ","C ", 'C', BlockMod.block_composite}); GameRegistry.addRecipe(new ItemStack(ItemMod.composite, 9), new Object[] { " "," "," C ", 'C', BlockMod.block_composite}); GameRegistry.addRecipe(new ItemStack(ItemMod.composite, 9), new Object[] { " "," "," C", 'C', BlockMod.block_composite});
Tout simplement ^^’
-
Bonsoir,
Il faut utiliser addShapelessRecipe pour ça.
https://www.minecraftforgefrance.fr/topic/1297/les-recettes#les-recettes-de-craft-avec-un-positionnement-dynamique -
Merci a vous deux