Example #1
0
  public void loadRecipes() {
    CoreProxy.proxy.addCraftingRecipe(
        new ItemStack(wrenchItem), "I I", " G ", " I ", 'I', "ingotIron", 'G', "gearStone");
    CoreProxy.proxy.addCraftingRecipe(
        new ItemStack(woodenGearItem), " S ", "S S", " S ", 'S', "stickWood");
    CoreProxy.proxy.addCraftingRecipe(
        new ItemStack(stoneGearItem), " I ", "IGI", " I ", 'I', "cobblestone", 'G', "gearWood");
    CoreProxy.proxy.addCraftingRecipe(
        new ItemStack(ironGearItem), " I ", "IGI", " I ", 'I', "ingotIron", 'G', "gearStone");
    CoreProxy.proxy.addCraftingRecipe(
        new ItemStack(goldGearItem), " I ", "IGI", " I ", 'I', "ingotGold", 'G', "gearIron");
    CoreProxy.proxy.addCraftingRecipe(
        new ItemStack(diamondGearItem), " I ", "IGI", " I ", 'I', "gemDiamond", 'G', "gearGold");
    CoreProxy.proxy.addCraftingRecipe(
        new ItemStack(mapLocationItem), "ppp", "pYp", "ppp", 'p', Items.paper, 'Y', "dyeYellow");

    CoreProxy.proxy.addCraftingRecipe(
        new ItemStack(engineBlock, 1, 0),
        "www",
        " g ",
        "GpG",
        'w',
        "plankWood",
        'g',
        "blockGlass",
        'G',
        "gearWood",
        'p',
        Blocks.piston);

    CoreProxy.proxy.addCraftingRecipe(
        new ItemStack(paintbrushItem),
        " iw",
        " gi",
        "s  ",
        's',
        "stickWood",
        'g',
        "gearWood",
        'w',
        new ItemStack(Blocks.wool, 1, 0),
        'i',
        Items.string);

    ItemStack anyPaintbrush = new ItemStack(paintbrushItem, 1, OreDictionary.WILDCARD_VALUE);

    for (int i = 0; i < 16; i++) {
      ItemStack outputStack = new ItemStack(paintbrushItem);
      NBTUtils.getItemData(outputStack).setByte("color", (byte) i);
      CoreProxy.proxy.addShapelessRecipe(outputStack, anyPaintbrush, EnumColor.fromId(i).getDye());
    }

    if (Loader.isModLoaded("BuildCraft|Silicon")) {
      CoreSiliconRecipes.loadSiliconRecipes();
    } else {
      CoreProxy.proxy.addCraftingRecipe(
          new ItemStack(listItem), "ppp", "pYp", "ppp", 'p', Items.paper, 'Y', "dyeGreen");
    }
  }
Example #2
0
 private void color(TravelingItem item) {
   if ((item.toCenter && item.input.getOpposite() == side)
       || (!item.toCenter && item.output == side)) {
     item.color = EnumColor.fromId(color);
   }
 }