-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRecipies.java
More file actions
126 lines (102 loc) · 5.35 KB
/
Recipies.java
File metadata and controls
126 lines (102 loc) · 5.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
package mods.simwir.puremetals;
import mods.simwir.puremetals.common.core.handlers.CraftingHandler;
import mods.simwir.puremetals.lib.ItemReferences;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.registry.GameRegistry;
public class Recipies {
public static final int WILDCARD_VALUE=Short.MAX_VALUE;
public Recipies(){
}
public static void recipies() {
//Adding ItemStacks
ItemStack pureIronStack = new ItemStack(PureMetals.pureIron);
ItemStack pureGoldStack = new ItemStack(PureMetals.pureGold);
ItemStack stickStack = new ItemStack(Item.stick);
//Adding Pure Iron Block Recipe
GameRegistry.addShapelessRecipe(new ItemStack(PureMetals.blockPureIron),
pureIronStack, pureIronStack, pureIronStack,
pureIronStack, pureIronStack, pureIronStack,
pureIronStack, pureIronStack, pureIronStack);
//Adding Pure Gold Block Recipe
GameRegistry.addShapelessRecipe(new ItemStack(PureMetals.blockPureGold),
pureGoldStack, pureGoldStack, pureGoldStack,
pureGoldStack, pureGoldStack, pureGoldStack,
pureGoldStack, pureGoldStack, pureGoldStack);
//Pure Iron Block to Pure Iron Recipe
GameRegistry.addShapelessRecipe(new ItemStack(PureMetals.pureIron, 9), new ItemStack(PureMetals.blockPureIron));
//Pure Gold Block to Pure Gold Recipe
GameRegistry.addShapelessRecipe(new ItemStack(PureMetals.pureGold, 9), new ItemStack(PureMetals.blockPureGold));
//Iron Dust Recipe
GameRegistry.addShapelessRecipe(new ItemStack(PureMetals.ironDust),
new ItemStack(PureMetals.stoneHammer,1, WILDCARD_VALUE), new ItemStack(Item.ingotIron));
//Gold Dust Recipe
GameRegistry.addShapelessRecipe(new ItemStack(PureMetals.goldDust),
new ItemStack(PureMetals.stoneHammer,1, WILDCARD_VALUE), new ItemStack(Item.ingotGold));
//Chisel Recipe
GameRegistry.addShapedRecipe(new ItemStack(PureMetals.chisel), " x", "y ",
'x', new ItemStack(Block.stone), 'y', new ItemStack(Item.stick) );
//Brick Bowl Recipe
GameRegistry.addShapelessRecipe(new ItemStack(PureMetals.brickBowl),
new ItemStack(PureMetals.chisel,1, WILDCARD_VALUE), new ItemStack(Item.brick));
//Bowl of Crushed Iron Recipe
GameRegistry.addShapelessRecipe(new ItemStack(PureMetals.bowlIron),
new ItemStack(PureMetals.brickBowl), new ItemStack(PureMetals.ironDust));
//Bowl of Crushed Gold Recipe
GameRegistry.addShapelessRecipe(new ItemStack(PureMetals.bowlGold),
new ItemStack(PureMetals.brickBowl), new ItemStack(PureMetals.goldDust));
//Bowl of Molten Iron Smelting Recipe
GameRegistry.addSmelting(PureMetals.bowlIron.itemID, new ItemStack(PureMetals.bowlMoltenIron), 0.1F);
//Bowl of Molten Gold Smelting Recipe
GameRegistry.addSmelting(PureMetals.bowlGold.itemID, new ItemStack(PureMetals.bowlMoltenGold), 0.1F);
//Pure Iron Recipe
GameRegistry.addShapelessRecipe(pureIronStack,
new ItemStack(PureMetals.chisel,1, WILDCARD_VALUE), new ItemStack(PureMetals.bowlMoltenIron));
//Pure Gold Recipe
GameRegistry.addShapelessRecipe(pureGoldStack,
new ItemStack(PureMetals.chisel,1, WILDCARD_VALUE), new ItemStack(PureMetals.bowlMoltenGold));
//Pure Iron Shovel Recipe
GameRegistry.addShapedRecipe(new ItemStack(PureMetals.pureIronShovel), " x ", " y ", " y ",
'x', pureIronStack, 'y', stickStack);
//Pure Gold Shovel Recipe
GameRegistry.addShapedRecipe(new ItemStack(PureMetals.pureGoldShovel), " x ", " y ", " y ",
'x', pureGoldStack, 'y', stickStack);
//Pure Iron Pickaxe Recipe
GameRegistry.addShapedRecipe(new ItemStack(PureMetals.pureIronPickaxe), "xxx", " y ", " y ",
'x', pureIronStack, 'y', stickStack);
//Pure Gold Pickaxe Recipe
GameRegistry.addShapedRecipe(new ItemStack(PureMetals.pureGoldPickaxe), "xxx", " y ", " y ",
'x', pureGoldStack, 'y', stickStack);
//Stone Hammer Recipe
GameRegistry.addShapedRecipe(new ItemStack(PureMetals.stoneHammer), "xxx", "xyx", " y ",
'x', new ItemStack(Block.cobblestone), 'y', stickStack);
//Pure Iron Axe Recipe
GameRegistry.addShapedRecipe(new ItemStack(PureMetals.pureIronAxe), "xx ", "xy ", " y ",
'x', pureIronStack, 'y', stickStack);
//Pure Gold Axe Recipe
GameRegistry.addShapedRecipe(new ItemStack(PureMetals.pureGoldAxe), "xx ", "xy ", " y ",
'x', pureGoldStack, 'y', stickStack);
//Pure Iron Axe Reversed Recipe
GameRegistry.addShapedRecipe(new ItemStack(PureMetals.pureIronAxe), " xx", " yx", " y ",
'x', pureIronStack, 'y', stickStack);
//Pure Gold Axe Reversed Recipe
GameRegistry.addShapedRecipe(new ItemStack(PureMetals.pureGoldAxe), " xx", " yx", " y ",
'x', pureGoldStack, 'y', stickStack);
//Pure Iron Sword Recipe
GameRegistry.addShapedRecipe(new ItemStack(PureMetals.pureIronSword), " x ", " x ", " y ",
'x', pureIronStack, 'y', stickStack);
//Pure Gold Sword Recipe
GameRegistry.addShapedRecipe(new ItemStack(PureMetals.pureGoldSword), " x ", " x ", " y ",
'x', pureGoldStack, 'y', stickStack);
/**
* Non game changing recipes
*/
//Chiseled Stone brick
GameRegistry.addShapelessRecipe(new ItemStack(Block.stoneBrick, 1 , 3),
new ItemStack(PureMetals.chisel,1, WILDCARD_VALUE), new ItemStack(Block.stone));
//Cracked Stone brick
GameRegistry.addShapelessRecipe(new ItemStack(Block.stoneBrick, 1, 2),
new ItemStack(PureMetals.stoneHammer,1, WILDCARD_VALUE), new ItemStack(Block.stoneBrick));
}
}