Résolu Pas de craft
-
voial encors un nouveaux probleme cette fois si les uitem ne ce craft pas pourtant voici mes code merci de maider :
GameRegistry.addRecipe(new ItemStack(ModEmpire.swordRU), "axa", "axa", "aya", 'x', new ItemStack(ModEmpire.ruby), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.pickaxeRU), "xxx", "aya", "aya", 'x', new ItemStack(ModEmpire.ruby), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.axeRU), "xxa", "xya", "aya", 'x', new ItemStack(ModEmpire.ruby), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.shovelRU), "axa", "aya", "aya", 'x', new ItemStack(ModEmpire.ruby), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.hoeRU), "xxa", "aya", "aya", 'x', new ItemStack(ModEmpire.ruby), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.helmetEME), "xxx", "xax", "aaa", 'x', new ItemStack(ModEmpire.ruby)); GameRegistry.addRecipe(new ItemStack(ModEmpire.chestPlateEME), "xax", "xxx", "xxx", 'x', new ItemStack(ModEmpire.ruby)); GameRegistry.addRecipe(new ItemStack(ModEmpire.leggingsEME), "xxx", "xax", "xax", 'x', new ItemStack(ModEmpire.ruby)); GameRegistry.addRecipe(new ItemStack(ModEmpire.bootsEME), "aaa", "xax", "xax", 'x', new ItemStack(ModEmpire.ruby)); GameRegistry.addRecipe(new ItemStack(ModEmpire.swordSA), "axa", "axa", "aya", 'x', new ItemStack(ModEmpire.saphire), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.pickaxeSA), "xxx", "aya", "aya", 'x', new ItemStack(ModEmpire.saphire), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.axeSA), "xxa", "xya", "aya", 'x', new ItemStack(ModEmpire.saphire), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.shovelSA), "axa", "aya", "aya", 'x', new ItemStack(ModEmpire.saphire), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.hoeSA), "xxa", "aya", "aya", 'x', new ItemStack(ModEmpire.saphire), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.helmetSA), "xxx", "xax", "aaa", 'x', new ItemStack(ModEmpire.saphire)); GameRegistry.addRecipe(new ItemStack(ModEmpire.chestPlateSA), "xax", "xxx", "xxx", 'x', new ItemStack(ModEmpire.saphire)); GameRegistry.addRecipe(new ItemStack(ModEmpire.leggingsSA), "xxx", "xax", "xax", 'x', new ItemStack(ModEmpire.saphire)); GameRegistry.addRecipe(new ItemStack(ModEmpire.bootsSA), "aaa", "xax", "xax", 'x', new ItemStack(ModEmpire.saphire)); GameRegistry.addRecipe(new ItemStack(ModEmpire.swordPL), "axa", "axa", "aya", 'x', new ItemStack(ModEmpire.platine), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.pickaxePL), "xxx", "aya", "aya", 'x', new ItemStack(ModEmpire.platine), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.axePL), "xxa", "xya", "aya", 'x', new ItemStack(ModEmpire.platine), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.shovelPL), "axa", "aya", "aya", 'x', new ItemStack(ModEmpire.platine), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.hoePL), "xxa", "aya", "aya", 'x', new ItemStack(ModEmpire.platine), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.helmetPL), "xxx", "xax", "aaa", 'x', new ItemStack(ModEmpire.platine)); GameRegistry.addRecipe(new ItemStack(ModEmpire.chestPlatePL), "xax", "xxx", "xxx", 'x', new ItemStack(ModEmpire.platine)); GameRegistry.addRecipe(new ItemStack(ModEmpire.leggingsPL), "xxx", "xax", "xax", 'x', new ItemStack(ModEmpire.platine)); GameRegistry.addRecipe(new ItemStack(ModEmpire.bootsPL), "aaa", "xax", "xax", 'x', new ItemStack(ModEmpire.platine)); GameRegistry.addRecipe(new ItemStack(ModEmpire.swordPA), "axa", "axa", "aya", 'x', new ItemStack(ModEmpire.painite), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.pickaxePA), "xxx", "aya", "aya", 'x', new ItemStack(ModEmpire.painite), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.axePA), "xxa", "xya", "aya", 'x', new ItemStack(ModEmpire.painite), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.shovelPA), "axa", "aya", "aya", 'x', new ItemStack(ModEmpire.painite), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.hoePA), "xxa", "aya", "aya", 'x', new ItemStack(ModEmpire.painite), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.helmetPA), "xxx", "xax", "aaa", 'x', new ItemStack(ModEmpire.painite)); GameRegistry.addRecipe(new ItemStack(ModEmpire.chestPlatePA), "xax", "xxx", "xxx", 'x', new ItemStack(ModEmpire.painite)); GameRegistry.addRecipe(new ItemStack(ModEmpire.leggingsPA), "xxx", "xax", "xax", 'x', new ItemStack(ModEmpire.painite)); GameRegistry.addRecipe(new ItemStack(ModEmpire.bootsPA), "aaa", "xax", "xax", 'x', new ItemStack(ModEmpire.painite)); GameRegistry.addRecipe(new ItemStack(ModEmpire.swordCI), "axa", "axa", "aya", 'x', new ItemStack(ModEmpire.citrine), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.pickaxeCI), "xxx", "aya", "aya", 'x', new ItemStack(ModEmpire.citrine), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.axeCI), "xxa", "xya", "aya", 'x', new ItemStack(ModEmpire.citrine), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.shovelCI), "axa", "aya", "aya", 'x', new ItemStack(ModEmpire.citrine), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.hoeCI), "xxa", "aya", "aya", 'x', new ItemStack(ModEmpire.citrine), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.helmetCI), "xxx", "xax", "aaa", 'x', new ItemStack(ModEmpire.citrine)); GameRegistry.addRecipe(new ItemStack(ModEmpire.chestPlateCI), "xax", "xxx", "xxx", 'x', new ItemStack(ModEmpire.citrine)); GameRegistry.addRecipe(new ItemStack(ModEmpire.leggingsCI), "xxx", "xax", "xax", 'x', new ItemStack(ModEmpire.citrine)); GameRegistry.addRecipe(new ItemStack(ModEmpire.bootsCI), "aaa", "xax", "xax", 'x', new ItemStack(ModEmpire.citrine)); GameRegistry.addRecipe(new ItemStack(ModEmpire.swordOB), "axa", "axa", "aya", 'x', new ItemStack(ModEmpire.obsidian), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.pickaxeOB), "xxx", "aya", "aya", 'x', new ItemStack(ModEmpire.obsidian), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.axeOB), "xxa", "xya", "aya", 'x', new ItemStack(ModEmpire.obsidian), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.shovelOB), "axa", "aya", "aya", 'x', new ItemStack(ModEmpire.obsidian), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.hoeOB), "xxa", "aya", "aya", 'x', new ItemStack(ModEmpire.obsidian), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.helmetOB), "xxx", "xax", "aaa", 'x', new ItemStack(ModEmpire.obsidian)); GameRegistry.addRecipe(new ItemStack(ModEmpire.chestPlateOB), "xax", "xxx", "xxx", 'x', new ItemStack(ModEmpire.obsidian)); GameRegistry.addRecipe(new ItemStack(ModEmpire.leggingsOB), "xxx", "xax", "xax", 'x', new ItemStack(ModEmpire.obsidian)); GameRegistry.addRecipe(new ItemStack(ModEmpire.bootsOB), "aaa", "xax", "xax", 'x', new ItemStack(ModEmpire.obsidian)); GameRegistry.addRecipe(new ItemStack(ModEmpire.swordUH), "axa", "axa", "aya", 'x', new ItemStack(ModEmpire.uhrite), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.pickaxeUH), "xxx", "aya", "aya", 'x', new ItemStack(ModEmpire.uhrite), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.axeUH), "xxa", "xya", "aya", 'x', new ItemStack(ModEmpire.uhrite), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.shovelUH), "axa", "aya", "aya", 'x', new ItemStack(ModEmpire.uhrite), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.hoeUH), "xxa", "aya", "aya", 'x', new ItemStack(ModEmpire.uhrite), 'y', new ItemStack(Items.stick)); GameRegistry.addRecipe(new ItemStack(ModEmpire.helmetUH), "xxx", "xax", "aaa", 'x', new ItemStack(ModEmpire.uhrite)); GameRegistry.addRecipe(new ItemStack(ModEmpire.chestPlateUH), "xax", "xxx", "xxx", 'x', new ItemStack(ModEmpire.uhrite)); GameRegistry.addRecipe(new ItemStack(ModEmpire.leggingsUH), "xxx", "xax", "xax", 'x', new ItemStack(ModEmpire.uhrite)); GameRegistry.addRecipe(new ItemStack(ModEmpire.bootsUH), "aaa", "xax", "xax", 'x', new ItemStack(ModEmpire.uhrite)); //Gem ruby = new Simple().setUnlocalizedName("ruby_ingot").setTextureName(MODID + ":rubis").setCreativeTab(CreativeTabs.tabMaterials);; // saphire = new Simple().setUnlocalizedName("saphire_ingot").setTextureName(MODID + ":titacythe_ingot").setCreativeTab(CreativeTabs.tabMaterials);; // platine = new Simple().setUnlocalizedName("platine_ingot").setTextureName(MODID + ":platine").setCreativeTab(CreativeTabs.tabMaterials);; // painite = new Simple().setUnlocalizedName("painite_gem").setTextureName(MODID + ":painite").setCreativeTab(CreativeTabs.tabMaterials);; // citrine = new Simple().setUnlocalizedName("citrine_rod").setTextureName(MODID + ":citrine").setCreativeTab(CreativeTabs.tabMaterials);; // obsi = new Simple().setUnlocalizedName("obsi_rod").setTextureName(MODID + ":obsi").setCreativeTab(CreativeTabs.tabMaterials);; // uhrite = new Simple().setUnlocalizedName("uhrite_rod").setTextureName(MODID + ":uhrite").setCreativeTab(CreativeTabs.tabMaterials);;
-
Les crafts doivent être mit après l’initialisation des items.