ItemStack output = new ItemStack(Blocks.clay);
NBTTagCompound nbt = new NBTTagCompound();
nbt.setInteger("CordX", 123);
output.setTagCompound(nbt);
GameRegistry.addShapelessRecipe(output, new Object[]{
new ItemStack(Blocks.dirt),
new ItemStack(Blocks.sand),
new ItemStack(Items.water_bucket),
});
public class MyRecipe implements IRecipe {
GameRegistry.addRecipe(new MyRecipe());
ItemStack output = new ItemStack(Blocks.clay);
NBTTagCompound nbt = new NBTTagCompound();
nbt.setInteger("CordX", 123);
output.setTagCompound(nbt);
GameRegistry.addShapelessRecipe(output, new Object[]{
new ItemStack(Blocks.dirt),
new ItemStack(Blocks.sand),
new ItemStack(Items.water_bucket),
});
GameRegistry.addRecipe(ПРДЕМЕТ.addNBT(ПРДЕМЕТ(его переменная в главном классе), ПРЕДМЕТ.ПУТЬ_К_НБТ.НБТ), new Object[] {
"LWL", "SLS", "LWL", ('L'), Items.leather, ('W'), Blocks.chest, ('S'),Items.string
});