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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
for (def i in [
item("minecraft:stone_sword"),
item("minecraft:iron_sword"),
item("minecraft:golden_sword"),
item("minecraft:diamond_sword"),
item("minecraft:stone_pickaxe"),
item("minecraft:iron_pickaxe"),
item("minecraft:golden_pickaxe"),
item("minecraft:diamond_pickaxe"),
item("minecraft:stone_axe"),
item("minecraft:iron_axe"),
item("minecraft:golden_axe"),
item("minecraft:diamond_axe"),
item("minecraft:stone_shovel"),
item("minecraft:iron_shovel"),
item("minecraft:golden_shovel"),
item("minecraft:diamond_shovel"),
item("minecraft:stone_hoe"),
item("minecraft:iron_hoe"),
item("minecraft:golden_hoe"),
item("minecraft:diamond_hoe")
]) {
crafting.removeByOutput(i);
mods.jei.ingredient.yeet(i);
}
for (def i in [
item("gregtech:sword"),
item("gregtech:pickaxe"),
item("gregtech:axe"),
item("gregtech:shovel"),
item("gregtech:hoe"),
item("gregtech:mining_hammer"),
item("gregtech:spade"),
item("gregtech:scythe")
]) {
crafting.removeByOutput(i);
}
for (def i in [
"gregtech:flint" : item("minecraft:flint"),
"gregtech:iron" : item("minecraft:iron_ingot"),
"gregtech:wrought_iron" : metaitem("ingotWroughtIron"),
"gregtech:bronze" : metaitem("ingotBronze"),
"gregtech:steel" : metaitem("ingotSteel"),
"gregtech:duranium" : metaitem("ingotDuranium"),
"gregtech:tungsten_steel" : metaitem("ingotTungstenSteel"),
"gregtech:cobalt_brass" : metaitem("ingotCobaltBrass"),
"gregtech:invar" : metaitem("ingotInvar"),
"gregtech:aluminium" : metaitem("ingotAluminium"),
"gregtech:sterling_silver" : metaitem("ingotSterlingSilver"),
"gregtech:tungsten_carbide" : metaitem("ingotTungstenCarbide"),
"gregtech:rose_gold" : metaitem("ingotRoseGold"),
"gregtech:damascus_steel" : metaitem("ingotDamascusSteel"),
"gregtech:titanium" : metaitem("ingotTitanium"),
"gregtech:ultimet" : metaitem("ingotUltimet"),
"gregtech:hsse" : metaitem("ingotHsse"),
"gregtech:neutronium" : metaitem("ingotNeutronium"),
"gregtech:vanadium_steel" : metaitem("ingotVanadiumSteel"),
"gregtech:red_steel" : metaitem("ingotRedSteel"),
"gregtech:naquadah_alloy" : metaitem("ingotNaquadahAlloy"),
"gregtech:blue_steel" : metaitem("ingotBlueSteel"),
"gregtech:stainless_steel" : metaitem("ingotStainlessSteel")
]) {
crafting.addShaped(item("gregtech:sword").withNbt(["GT.Tool": ["Material": i.key]]), [
[null, i.value, null],
[null, i.value, null],
[null, ore("stickWood"), null]
]);
crafting.addShaped(item("gregtech:pickaxe").withNbt(["GT.Tool": ["Material": i.key]]), [
[i.value, i.value, i.value],
[null, ore("stickWood"), null],
[null, ore("stickWood"), null]
]);
crafting.addShaped(item("gregtech:axe").withNbt(["GT.Tool": ["Material": i.key]]), [
[i.value, i.value, null],
[i.value, ore("stickWood"), null],
[null, ore("stickWood"), null]
]);
crafting.addShaped(item("gregtech:shovel").withNbt(["GT.Tool": ["Material": i.key]]), [
[null, i.value, null],
[null, ore("stickWood"), null],
[null, ore("stickWood"), null]
]);
crafting.addShaped(item("gregtech:hoe").withNbt(["GT.Tool": ["Material": i.key]]), [
[i.value, i.value, null],
[null, ore("stickWood"), null],
[null, ore("stickWood"), null]
]);
if (i.key!="gregtech:flint") {
crafting.addShaped(item("gregtech:mining_hammer").withNbt([
"GT.Behaviours": [
"AoELayer": 0,
"MaxAoELayer": 0,
"TorchPlacing": (byte) 1,
"AoERow": 1,
"AoEColumn": 1,
"MaxAoERow": 1,
"MaxAoEColumn": 1
],
"GT.Tool": ["Material": i.key]]
), [
[i.value, i.value, i.value],
[i.value, ore("stickWood"), i.value],
[null, ore("stickWood"), null]
]);
crafting.addShaped(item("gregtech:spade").withNbt([
"GT.Behaviours": [
"AoELayer": 0,
"MaxAoELayer": 0,
"AoERow": 1,
"AoEColumn": 1,
"MaxAoERow": 1,
"MaxAoEColumn": 1
],
"GT.Tool": ["Material": i.key]]
), [
[null, i.value, null],
[i.value, ore("stickWood"), i.value],
[null, ore("stickWood"), null]
]);
crafting.addShaped(item("gregtech:scythe").withNbt([
"GT.Behaviours": [
"AoELayer": 2,
"MaxAoELayer": 2,
"AoERow": 2,
"AoEColumn": 2,
"MaxAoERow": 2,
"MaxAoEColumn": 2
],
"GT.Tool": ["Material": i.key]]
), [
[i.value, i.value, i.value],
[null, null, ore("stickWood")],
[null, null, ore("stickWood")]
]);
}
}
item("gregtech:mining_hammer").withNbt(["GT.Behaviours": ["AoELayer": 0, "MaxAoELayer": 0, "TorchPlacing": (byte) 1, "AoERow": 1, "AoEColumn": 1, "MaxAoERow": 1, "MaxAoEColumn": 1], "HideFlags": 2, "GT.Tool": ["MaxDurability": 767, "ToolSpeed": 4.8F, "AttackDamage": 3.5F, "Durability": 0, "Material": "gregtech:iron", "HarvestLevel": 2, "AttackSpeed": -3.2F]])
|