Ejemplo n.º 1
0
 @Handler
 public void init(FMLInitializationEvent event) {
   craftingTableRecipes();
   registerModifiers();
   addRecipesForDryingRack();
   TConstructRegistry.equipableTab.init(travelGoggles.getDefaultItem());
   proxy.initialize();
 }
Ejemplo n.º 2
0
  private void craftingTableRecipes() {

    // Armor Recipes
    Object[] helm = new String[] {"www", "w w"};
    Object[] chest = new String[] {"w w", "www", "www"};
    Object[] pants = new String[] {"www", "w w", "w w"};
    Object[] shoes = new String[] {"w w", "w w"};
    GameRegistry.addRecipe(new ShapedOreRecipe(TinkerArmor.helmetWood, helm, 'w', "logWood"));
    GameRegistry.addRecipe(new ShapedOreRecipe(TinkerArmor.chestplateWood, chest, 'w', "logWood"));
    GameRegistry.addRecipe(new ShapedOreRecipe(TinkerArmor.leggingsWood, pants, 'w', "logWood"));
    GameRegistry.addRecipe(new ShapedOreRecipe(TinkerArmor.bootsWood, shoes, 'w', "logWood"));

    // Accessories
    GameRegistry.addRecipe(
        new ShapedOreRecipe(
            new ItemStack(TinkerArmor.heartCanister, 1, 0), "##", "##", '#', "ingotAluminum"));
    GameRegistry.addRecipe(
        new ShapedOreRecipe(
            new ItemStack(TinkerArmor.heartCanister, 1, 0), "##", "##", '#', "ingotAluminium"));
    // GameRegistry.addRecipe(new ShapedOreRecipe(new
    // ItemStack(TRepo.heartCanister, 1, 0), "##", "##", '#',
    // "ingotNaturalAluminum"));
    GameRegistry.addRecipe(
        new ShapedOreRecipe(
            new ItemStack(TinkerArmor.heartCanister, 1, 0),
            " # ",
            "#B#",
            " # ",
            '#',
            "ingotTin",
            'B',
            Items.bone));

    GameRegistry.addRecipe(
        new ItemStack(TinkerArmor.diamondApple),
        " d ",
        "d#d",
        " d ",
        'd',
        new ItemStack(Items.diamond),
        '#',
        new ItemStack(Items.apple));
    GameRegistry.addShapelessRecipe(
        new ItemStack(TinkerArmor.heartCanister, 1, 2),
        new ItemStack(TinkerArmor.diamondApple),
        new ItemStack(TinkerTools.materials, 1, 8),
        new ItemStack(TinkerArmor.heartCanister, 1, 0),
        new ItemStack(TinkerArmor.heartCanister, 1, 1));
    GameRegistry.addShapelessRecipe(
        new ItemStack(TinkerArmor.heartCanister, 1, 1),
        new ItemStack(TinkerArmor.heartCanister, 1, 3));
    GameRegistry.addShapelessRecipe(
        new ItemStack(TinkerArmor.heartCanister, 1, 4),
        new ItemStack(TinkerArmor.heartCanister, 1, 2),
        new ItemStack(TinkerArmor.heartCanister, 1, 3),
        new ItemStack(Items.golden_apple, 1, 1));
    // GameRegistry.addShapelessRecipe(new ItemStack(heartCanister, 1, 6), new
    // ItemStack(heartCanister, 1, 0), new ItemStack(heartCanister, 1, 4), new
    // ItemStack(heartCanister, 1, 5));

    GameRegistry.addRecipe(
        new ShapedOreRecipe(
            new ItemStack(TinkerArmor.knapsack, 1, 0),
            "###",
            "rmr",
            "###",
            '#',
            new ItemStack(Items.leather),
            'r',
            new ItemStack(TinkerTools.toughRod, 1, 2),
            'm',
            "ingotGold"));
    ItemStack aluBrass = new ItemStack(TinkerTools.materials, 1, 14);
    GameRegistry.addRecipe(
        new ItemStack(TinkerArmor.knapsack, 1, 0),
        "###",
        "rmr",
        "###",
        '#',
        new ItemStack(Items.leather),
        'r',
        new ItemStack(TinkerTools.toughRod, 1, 2),
        'm',
        aluBrass);
    // Drying Rack Recipes
    GameRegistry.addRecipe(
        new ShapedOreRecipe(new ItemStack(TinkerArmor.dryingRack, 1, 0), "bbb", 'b', "slabWood"));

    // Temporary recipes
    ItemStack leather = new ItemStack(Items.leather);
    ItemStack glass = new ItemStack(Blocks.glass);
    ItemStack string = new ItemStack(Items.string);
    GameRegistry.addShapedRecipe(
        travelGoggles.getDefaultItem(),
        "# #",
        "q#q",
        "g g",
        '#',
        leather,
        'q',
        glass,
        'g',
        new ItemStack(Items.gold_ingot));
    GameRegistry.addRecipe(
        new ShapedOreRecipe(
            travelWings.getDefaultItem(),
            "g g",
            "i#i",
            "i i",
            '#',
            Items.ender_pearl,
            'g',
            Items.gold_ingot,
            'i',
            "ingotBronze"));
    GameRegistry.addRecipe(
        new ShapedOreRecipe(
            travelVest.getDefaultItem(),
            "#w#",
            "#i#",
            "#w#",
            '#',
            leather,
            'i',
            "ingotAluminum",
            'w',
            new ItemStack(Blocks.wool, 1, Short.MAX_VALUE)));
    GameRegistry.addRecipe(
        new ShapedOreRecipe(
            travelBoots.getDefaultItem(),
            "#s#",
            "#i#",
            "#s#",
            '#',
            leather,
            's',
            string,
            'i',
            "ingotAluminum"));
    GameRegistry.addShapedRecipe(travelGlove.getDefaultItem(), "  #", "###", " ##", '#', leather);
    GameRegistry.addRecipe(
        new ShapedOreRecipe(
            travelBelt.getDefaultItem(),
            "###",
            "ici",
            "###",
            '#',
            leather,
            'c',
            new ItemStack(Blocks.chest),
            'i',
            "ingotAluminum"));
  }