forked from EnigmaticaModpacks/Enigmatica2Expert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTools.zs
128 lines (106 loc) · 6.38 KB
/
Tools.zs
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
import crafttweaker.item.IItemStack as IItemStack;
import mods.jei.JEI.removeAndHide as rh;
# *======= Recipes =======*
val toolsToRemove = [
<botania:glasspick>,
<forestry:bronze_pickaxe>,
<mysticalagriculture:inferium_pickaxe>,
<mysticalagriculture:prudentium_pickaxe>,
<mysticalagriculture:intermedium_pickaxe>,
<mysticalagriculture:superium_pickaxe>,
<thermalfoundation:tool.pickaxe_copper>,
<thermalfoundation:tool.pickaxe_tin>,
<thermalfoundation:tool.pickaxe_silver>,
<thermalfoundation:tool.pickaxe_lead>,
<thermalfoundation:tool.pickaxe_aluminum>,
<thermalfoundation:tool.pickaxe_nickel>,
<thermalfoundation:tool.pickaxe_platinum>,
<thermalfoundation:tool.pickaxe_steel>,
<thermalfoundation:tool.pickaxe_electrum>,
<thermalfoundation:tool.pickaxe_invar>,
<thermalfoundation:tool.pickaxe_bronze>,
<thermalfoundation:tool.pickaxe_constantan>,
<immersiveengineering:pickaxe_steel>,
<immersiveengineering:shovel_steel>,
<immersiveengineering:axe_steel>,
<immersiveengineering:sword_steel>,
<twilightforest:fiery_pickaxe>,
<twilightforest:steeleaf_pickaxe>.withTag({ench: [{lvl: 2 as short, id: 35 as short}]}),
<twilightforest:ironwood_pickaxe>.withTag({ench: [{lvl: 1 as short, id: 32 as short}]}),
<mysticalagradditions:inferium_paxel>,
<mysticalagradditions:prudentium_paxel>,
<mysticalagradditions:intermedium_paxel>,
<mysticalagradditions:superium_paxel>,
<mysticalagradditions:supremium_paxel>
] as IItemStack[];
for tool in toolsToRemove {
rh(tool);
}
# Vanilla tool nerfs
val toolsToNerf = [
<minecraft:golden_axe>,
<minecraft:golden_shovel>,
<minecraft:golden_hoe>,
<minecraft:golden_pickaxe>,
<minecraft:golden_sword>,
<minecraft:diamond_shovel>,
<minecraft:diamond_axe>,
<minecraft:diamond_pickaxe>,
<minecraft:diamond_hoe>,
<minecraft:iron_shovel>,
<minecraft:iron_axe>,
<minecraft:iron_pickaxe>,
<minecraft:iron_hoe>,
<minecraft:wooden_pickaxe>,
<minecraft:wooden_sword>,
<minecraft:wooden_hoe>,
<minecraft:wooden_shovel>,
<minecraft:wooden_axe>,
<minecraft:stone_pickaxe>,
<minecraft:stone_hoe>,
<minecraft:stone_axe>,
<minecraft:stone_shovel>
] as IItemStack[];
for tool in toolsToNerf {
tool.maxDamage = 1;
}
<minecraft:stone_sword>.maxDamage = 2;
<minecraft:iron_sword>.maxDamage = 10;
<minecraft:diamond_sword>.maxDamage = 20;
# Thermal Foundation Hammers
val toolRecipesToEdit = [
<thermalfoundation:tool.hammer_invar>,
<thermalfoundation:tool.hammer_bronze>,
<thermalfoundation:tool.hammer_constantan>,
<thermalfoundation:tool.hammer_iron>,
<thermalfoundation:tool.hammer_diamond>,
<thermalfoundation:tool.hammer_gold>,
<thermalfoundation:tool.hammer_copper>,
<thermalfoundation:tool.hammer_silver>,
<thermalfoundation:tool.hammer_tin>,
<thermalfoundation:tool.hammer_electrum>,
<thermalfoundation:tool.hammer_steel>,
<thermalfoundation:tool.hammer_platinum>,
<thermalfoundation:tool.hammer_nickel>,
<thermalfoundation:tool.hammer_aluminum>,
<thermalfoundation:tool.hammer_lead>
] as IItemStack[];
for tool in toolRecipesToEdit {
recipes.remove(tool);
}
# Thermal Foundation Hammers
recipes.addShaped(<thermalfoundation:tool.hammer_lead>, [[<ore:ingotLead>, <ore:blockLead>, <ore:ingotLead>],[<ore:ingotLead>, <forestry:oak_stick>, <ore:ingotLead>], [null, <forestry:oak_stick>, null]]);
recipes.addShaped(<thermalfoundation:tool.hammer_aluminum>, [[<ore:ingotAluminum>, <ore:blockAluminum>, <ore:ingotAluminum>],[<ore:ingotAluminum>, <forestry:oak_stick>, <ore:ingotAluminum>], [null, <forestry:oak_stick>, null]]);
recipes.addShaped(<thermalfoundation:tool.hammer_nickel>, [[<ore:ingotNickel>, <ore:blockNickel>, <ore:ingotNickel>],[<ore:ingotNickel>, <forestry:oak_stick>, <ore:ingotNickel>], [null, <forestry:oak_stick>, null]]);
recipes.addShaped(<thermalfoundation:tool.hammer_platinum>, [[<ore:ingotPlatinum>, <ore:blockPlatinum>, <ore:ingotPlatinum>],[<ore:ingotPlatinum>, <forestry:oak_stick>, <ore:ingotPlatinum>], [null, <forestry:oak_stick>, null]]);
recipes.addShaped(<thermalfoundation:tool.hammer_steel>, [[<ore:ingotSteel>, <ore:blockSteel>, <ore:ingotSteel>],[<ore:ingotSteel>, <forestry:oak_stick>, <ore:ingotSteel>], [null, <forestry:oak_stick>, null]]);
recipes.addShaped(<thermalfoundation:tool.hammer_electrum>, [[<ore:ingotElectrum>, <ore:blockElectrum>, <ore:ingotElectrum>],[<ore:ingotElectrum>, <forestry:oak_stick>, <ore:ingotElectrum>], [null, <forestry:oak_stick>, null]]);
recipes.addShaped(<thermalfoundation:tool.hammer_tin>, [[<ore:ingotTin>, <ore:blockTin>, <ore:ingotTin>],[<ore:ingotTin>, <forestry:oak_stick>, <ore:ingotTin>], [null, <forestry:oak_stick>, null]]);
recipes.addShaped(<thermalfoundation:tool.hammer_silver>, [[<ore:ingotSilver>, <ore:blockSilver>, <ore:ingotSilver>],[<ore:ingotSilver>, <forestry:oak_stick>, <ore:ingotSilver>], [null, <forestry:oak_stick>, null]]);
recipes.addShaped(<thermalfoundation:tool.hammer_copper>, [[<ore:ingotCopper>, <ore:blockCopper>, <ore:ingotCopper>],[<ore:ingotCopper>, <forestry:oak_stick>, <ore:ingotCopper>], [null, <forestry:oak_stick>, null]]);
recipes.addShaped(<thermalfoundation:tool.hammer_gold>, [[<ore:ingotGold>, <ore:blockGold>, <ore:ingotGold>],[<ore:ingotGold>, <forestry:oak_stick>, <ore:ingotGold>], [null, <forestry:oak_stick>, null]]);
recipes.addShaped(<thermalfoundation:tool.hammer_diamond>, [[<ore:gemDiamond>, <ore:blockDiamond>, <ore:gemDiamond>],[<ore:gemDiamond>, <forestry:oak_stick>, <ore:gemDiamond>], [null, <forestry:oak_stick>, null]]);
recipes.addShaped(<thermalfoundation:tool.hammer_iron>, [[<ore:ingotIron>, <ore:blockIron>, <ore:ingotIron>],[<ore:ingotIron>, <forestry:oak_stick>, <ore:ingotIron>], [null, <forestry:oak_stick>, null]]);
recipes.addShaped(<thermalfoundation:tool.hammer_constantan>, [[<ore:ingotConstantan>, <ore:blockConstantan>, <ore:ingotConstantan>],[<ore:ingotConstantan>, <forestry:oak_stick>, <ore:ingotConstantan>], [null, <forestry:oak_stick>, null]]);
recipes.addShaped(<thermalfoundation:tool.hammer_bronze>, [[<ore:ingotBronze>, <ore:blockBronze>, <ore:ingotBronze>],[<ore:ingotBronze>, <forestry:oak_stick>, <ore:ingotBronze>], [null, <forestry:oak_stick>, null]]);
recipes.addShaped(<thermalfoundation:tool.hammer_invar>, [[<ore:ingotInvar>, <ore:blockInvar>, <ore:ingotInvar>],[<ore:ingotInvar>, <forestry:oak_stick>, <ore:ingotInvar>], [null, <forestry:oak_stick>, null]]);