Skip to content

Commit 46d3303

Browse files
committed
add linen clothes, rebalance recipes of tfc textile clothes #4143
1 parent 37fbec5 commit 46d3303

3 files changed

Lines changed: 208 additions & 29 deletions

File tree

kubejs/server_scripts/tfctextile/recipes.js

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,166 @@ function registerTFCTextileRecipes(event) {
55

66
event.shapeless('tfc:large_raw_hide', ['tfc_textile:crocodile_leather', '#forge:tools/knives'])
77

8+
event.replaceInput({ id: 'tfc_textile:clothing/crocodile/crocodile_hat' }, 'tfcambiental:burlap_cowl', ['tfcambiental:burlap_cowl', 'tfcambiental:silk_cowl', 'tfc_textile:linen_hat'])
9+
event.replaceInput({ id: 'tfc_textile:clothing/crocodile/crocodile_shirt' }, 'tfcambiental:burlap_shirt', ['tfcambiental:burlap_shirt', 'tfcambiental:silk_shirt', 'tfc_textile:linen_shirt'])
10+
event.replaceInput({ id: 'tfc_textile:clothing/crocodile/crocodile_pants' }, 'tfcambiental:burlap_pants', ['tfcambiental:burlap_pants', 'tfcambiental:silk_pants', 'tfc_textile:linen_pants'])
11+
event.replaceInput({ id: 'tfc_textile:clothing/crocodile/crocodile_boots' }, 'tfcambiental:burlap_shoes', ['tfcambiental:burlap_shoes', 'tfcambiental:silk_shoes', 'tfc_textile:linen_socks'])
12+
13+
event.shaped('tfc_textile:caribou_hat', [
14+
'ABA',
15+
'ACA',
16+
' D '
17+
], {
18+
A: '#forge:string',
19+
B: 'tfc_textile:caribou_fur',
20+
C: 'tfcambiental:wool_hat',
21+
D: 'tfcambiental:insulated_leather_hat'
22+
}).id('tfc_textile:clothing/caribou/caribou_hat')
23+
24+
event.shaped('tfc_textile:caribou_shirt', [
25+
'ABA',
26+
'ACA',
27+
'ADA'
28+
], {
29+
A: '#forge:string',
30+
B: 'tfc_textile:caribou_fur',
31+
C: 'tfcambiental:wool_sweater',
32+
D: 'tfcambiental:insulated_leather_tunic'
33+
}).id('tfc_textile:clothing/caribou/caribou_shirt')
34+
35+
event.shaped('tfc_textile:caribou_pants', [
36+
'ABA',
37+
'ACA',
38+
'ADA'
39+
], {
40+
A: '#forge:string',
41+
B: 'tfc_textile:caribou_fur',
42+
C: 'tfcambiental:wool_pants',
43+
D: 'tfcambiental:insulated_leather_pants'
44+
}).id('tfc_textile:clothing/caribou/caribou_pants')
45+
46+
event.shaped('tfc_textile:caribou_boots', [
47+
'ABA',
48+
'ACA',
49+
' D '
50+
], {
51+
A: '#forge:string',
52+
B: 'tfc_textile:caribou_fur',
53+
C: 'tfcambiental:wool_boots',
54+
D: 'tfcambiental:insulated_leather_boots'
55+
}).id('tfc_textile:clothing/caribou/caribou_boots')
56+
57+
event.shaped('tfc_textile:polar_bear_hat', [
58+
'ABA',
59+
'ACA',
60+
' D '
61+
], {
62+
A: '#forge:string',
63+
B: 'tfc_textile:polar_bear_fur',
64+
C: 'tfcambiental:wool_hat',
65+
D: 'tfcambiental:insulated_leather_hat'
66+
}).id('tfc_textile:clothing/polar_bear/polar_bear_hat')
67+
68+
event.shaped('tfc_textile:polar_bear_shirt', [
69+
'ABA',
70+
'ACA',
71+
'ADA'
72+
], {
73+
A: '#forge:string',
74+
B: 'tfc_textile:polar_bear_fur',
75+
C: 'tfcambiental:wool_sweater',
76+
D: 'tfcambiental:insulated_leather_tunic'
77+
}).id('tfc_textile:clothing/polar_bear/polar_bear_shirt')
78+
79+
event.shaped('tfc_textile:polar_bear_pants', [
80+
'ABA',
81+
'ACA',
82+
'ADA'
83+
], {
84+
A: '#forge:string',
85+
B: 'tfc_textile:polar_bear_fur',
86+
C: 'tfcambiental:wool_pants',
87+
D: 'tfcambiental:insulated_leather_pants'
88+
}).id('tfc_textile:clothing/polar_bear/polar_bear_pants')
89+
90+
event.shaped('tfc_textile:polar_bear_boots', [
91+
'ABA',
92+
'ACA',
93+
' D '
94+
], {
95+
A: '#forge:string',
96+
B: 'tfc_textile:polar_bear_fur',
97+
C: 'tfcambiental:wool_boots',
98+
D: 'tfcambiental:insulated_leather_boots'
99+
}).id('tfc_textile:clothing/polar_bear/polar_bear_boots')
100+
101+
event.replaceInput({ id: 'tfc_textile:clothing/direwolf/direwolf_hat' }, 'minecraft:leather_helmet', 'tfcambiental:wool_hat')
102+
event.replaceInput({ id: 'tfc_textile:clothing/direwolf/direwolf_shirt' }, 'minecraft:leather_chestplate', 'tfcambiental:wool_sweater')
103+
event.replaceInput({ id: 'tfc_textile:clothing/direwolf/direwolf_pants' }, 'minecraft:leather_leggings', 'tfcambiental:wool_pants')
104+
event.replaceInput({ id: 'tfc_textile:clothing/direwolf/direwolf_boots' }, 'minecraft:leather_boots', 'tfcambiental:wool_boots')
105+
106+
event.replaceInput({ id: 'tfc_textile:clothing/cougar/cougar_hat' }, 'minecraft:leather_helmet', 'tfcambiental:insulated_leather_hat')
107+
event.replaceInput({ id: 'tfc_textile:clothing/cougar/cougar_shirt' }, 'minecraft:leather_chestplate', 'tfcambiental:insulated_leather_tunic')
108+
event.replaceInput({ id: 'tfc_textile:clothing/cougar/cougar_pants' }, 'minecraft:leather_leggings', 'tfcambiental:insulated_leather_pants')
109+
event.replaceInput({ id: 'tfc_textile:clothing/cougar/cougar_boots' }, 'minecraft:leather_boots', 'tfcambiental:insulated_leather_boots')
110+
111+
event.replaceInput({ id: 'tfc_textile:clothing/tiger/tiger_hat' }, 'minecraft:leather_helmet', 'tfcambiental:insulated_leather_hat')
112+
event.replaceInput({ id: 'tfc_textile:clothing/tiger/tiger_shirt' }, 'minecraft:leather_chestplate', 'tfcambiental:insulated_leather_tunic')
113+
event.replaceInput({ id: 'tfc_textile:clothing/tiger/tiger_pants' }, 'minecraft:leather_leggings', 'tfcambiental:insulated_leather_pants')
114+
event.replaceInput({ id: 'tfc_textile:clothing/tiger/tiger_boots' }, 'minecraft:leather_boots', 'tfcambiental:insulated_leather_boots')
115+
116+
event.replaceInput({ id: 'tfc_textile:clothing/panther/panther_hat' }, 'minecraft:leather_helmet', 'tfcambiental:insulated_leather_hat')
117+
event.replaceInput({ id: 'tfc_textile:clothing/panther/panther_shirt' }, 'minecraft:leather_chestplate', 'tfcambiental:insulated_leather_tunic')
118+
event.replaceInput({ id: 'tfc_textile:clothing/panther/panther_pants' }, 'minecraft:leather_leggings', 'tfcambiental:insulated_leather_pants')
119+
event.replaceInput({ id: 'tfc_textile:clothing/panther/panther_boots' }, 'minecraft:leather_boots', 'tfcambiental:insulated_leather_boots')
120+
121+
event.replaceInput({ id: 'tfc_textile:clothing/sabertooth/sabertooth_hat' }, 'minecraft:leather_helmet', 'tfcambiental:insulated_leather_hat')
122+
event.replaceInput({ id: 'tfc_textile:clothing/sabertooth/sabertooth_shirt' }, 'minecraft:leather_chestplate', 'tfcambiental:insulated_leather_tunic')
123+
event.replaceInput({ id: 'tfc_textile:clothing/sabertooth/sabertooth_pants' }, 'minecraft:leather_leggings', 'tfcambiental:insulated_leather_pants')
124+
event.replaceInput({ id: 'tfc_textile:clothing/sabertooth/sabertooth_boots' }, 'minecraft:leather_boots', 'tfcambiental:insulated_leather_boots')
125+
126+
event.replaceInput({ id: 'tfc_textile:clothing/black_bear/black_bear_hat' }, 'minecraft:leather_helmet', 'tfcambiental:insulated_leather_hat')
127+
event.replaceInput({ id: 'tfc_textile:clothing/black_bear/black_bear_shirt' }, 'minecraft:leather_chestplate', 'tfcambiental:insulated_leather_tunic')
128+
event.replaceInput({ id: 'tfc_textile:clothing/black_bear/black_bear_pants' }, 'minecraft:leather_leggings', 'tfcambiental:insulated_leather_pants')
129+
event.replaceInput({ id: 'tfc_textile:clothing/black_bear/black_bear_boots' }, 'minecraft:leather_boots', 'tfcambiental:insulated_leather_boots')
130+
131+
event.replaceInput({ id: 'tfc_textile:clothing/grizzly_bear/grizzly_bear_hat' }, 'minecraft:leather_helmet', 'tfcambiental:insulated_leather_hat')
132+
event.replaceInput({ id: 'tfc_textile:clothing/grizzly_bear/grizzly_bear_shirt' }, 'minecraft:leather_chestplate', 'tfcambiental:insulated_leather_tunic')
133+
event.replaceInput({ id: 'tfc_textile:clothing/grizzly_bear/grizzly_bear_pants' }, 'minecraft:leather_leggings', 'tfcambiental:insulated_leather_pants')
134+
event.replaceInput({ id: 'tfc_textile:clothing/grizzly_bear/grizzly_bear_boots' }, 'minecraft:leather_boots', 'tfcambiental:insulated_leather_boots')
135+
136+
event.replaceInput({ id: 'tfc_textile:clothing/lion/lion_hat' }, 'minecraft:leather_helmet', 'tfcambiental:insulated_leather_hat')
137+
event.replaceInput({ id: 'tfc_textile:clothing/lion/lion_shirt' }, 'minecraft:leather_chestplate', 'tfcambiental:insulated_leather_tunic')
138+
event.replaceInput({ id: 'tfc_textile:clothing/lion/lion_pants' }, 'minecraft:leather_leggings', 'tfcambiental:insulated_leather_pants')
139+
event.replaceInput({ id: 'tfc_textile:clothing/lion/lion_boots' }, 'minecraft:leather_boots', 'tfcambiental:insulated_leather_boots')
140+
141+
event.shaped('tfc_textile:linen_hat', [
142+
'AAA',
143+
'A A'
144+
], {
145+
A: 'tfg:linen_cloth'
146+
}).id('tfg:shaped/linen_hat')
147+
148+
event.shaped('tfc_textile:linen_shirt', [
149+
'A A',
150+
'AAA',
151+
'AAA'
152+
], {
153+
A: 'tfg:linen_cloth'
154+
}).id('tfg:shaped/linen_shirt')
155+
156+
event.shaped('tfc_textile:linen_pants', [
157+
'AAA',
158+
'A A',
159+
'A A'
160+
], {
161+
A: 'tfg:linen_cloth'
162+
}).id('tfg:shaped/linen_pants')
163+
164+
event.shaped('tfc_textile:linen_socks', [
165+
'A A',
166+
'A A'
167+
], {
168+
A: 'tfg:linen_cloth'
169+
}).id('tfg:shaped/linen_socks')
8170
}

kubejs/server_scripts/tfg/equipment/recipes.repair.js

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,17 @@ function registerTFGRepairRecipes(event) {
2323

2424
const TFC_TEXTILE_TYPES = ['hat', 'shirt', 'pants', 'boots']
2525
const TFC_TEXTILE_LEATHER_REPAIR = [
26-
'caribou',
27-
'polar_bear',
28-
'cougar',
29-
'tiger',
30-
'panther',
31-
'sabertooth',
32-
'black_bear',
33-
'grizzly_bear',
34-
'direwolf',
35-
'lion'
26+
{ animal: 'caribou', repair: ['tfc:wool_cloth', 'tfg:polycaprolactam_fabric'] },
27+
{ animal: 'polar_bear', repair: ['tfc:wool_cloth', 'tfg:polycaprolactam_fabric'] },
28+
{ animal: 'cougar', repair: ['tfg:linen_cloth', 'tfc:wool_cloth', 'tfg:polycaprolactam_fabric'] },
29+
{ animal: 'tiger', repair: ['tfg:linen_cloth', 'tfc:wool_cloth', 'tfg:polycaprolactam_fabric'] },
30+
{ animal: 'panther', repair: ['tfg:linen_cloth', 'tfc:wool_cloth', 'tfg:polycaprolactam_fabric'] },
31+
{ animal: 'sabertooth', repair: ['tfg:linen_cloth', 'tfc:wool_cloth', 'tfg:polycaprolactam_fabric'] },
32+
{ animal: 'black_bear', repair: ['tfg:linen_cloth', 'tfc:wool_cloth', 'tfg:polycaprolactam_fabric'] },
33+
{ animal: 'grizzly_bear', repair: ['tfg:linen_cloth', 'tfc:wool_cloth', 'tfg:polycaprolactam_fabric'] },
34+
{ animal: 'direwolf', repair: ['tfc:wool_cloth', 'tfg:polycaprolactam_fabric'] },
35+
{ animal: 'lion', repair: ['tfg:linen_cloth', 'tfc:wool_cloth', 'tfg:polycaprolactam_fabric'] },
36+
{ animal: 'crocodile', repair: ['tfc:burlap_cloth', "tfg:linen_cloth", 'tfc:silk_cloth', 'tfg:phantom_silk', 'tfg:polycaprolactam_fabric'] }
3637
]
3738

3839
const SPECIAL_REPAIRS = [
@@ -81,15 +82,15 @@ function registerTFGRepairRecipes(event) {
8182
{ item: "tfcambiental:silk_pants", material: "tfc:silk_cloth" },
8283
{ item: "tfcambiental:silk_shoes", material: "tfc:silk_cloth" },
8384

85+
{ item: "tfc_textile:linen_hat", material: "tfg:linen_cloth" },
86+
{ item: "tfc_textile:linen_shirt", material: "tfg:linen_cloth" },
87+
{ item: "tfc_textile:linen_pants", material: "tfg:linen_cloth" },
88+
{ item: "tfc_textile:linen_socks", material: "tfg:linen_cloth" },
89+
8490
{ item: "tfcambiental:burlap_cowl", material: "tfc:burlap_cloth" },
8591
{ item: "tfcambiental:burlap_shirt", material: "tfc:burlap_cloth" },
8692
{ item: "tfcambiental:burlap_pants", material: "tfc:burlap_cloth" },
87-
{ item: "tfcambiental:burlap_shoes", material: "tfc:burlap_cloth" },
88-
89-
{ item: "tfc_textile:crocodile_hat", material: "tfc:burlap_cloth" },
90-
{ item: "tfc_textile:crocodile_shirt", material: "tfc:burlap_cloth" },
91-
{ item: "tfc_textile:crocodile_pants", material: "tfc:burlap_cloth" },
92-
{ item: "tfc_textile:crocodile_boots", material: "tfc:burlap_cloth" },
93+
{ item: "tfcambiental:burlap_shoes", material: "tfc:burlap_cloth" }
9394
]
9495

9596
repairColoredSteel('gtceu', 'red_steel');
@@ -243,19 +244,21 @@ function registerTFGRepairRecipes(event) {
243244

244245
// TFC Textile Leather Clothes
245246
TFC_TEXTILE_LEATHER_REPAIR.forEach(item => {
246-
TFC_TEXTILE_TYPES.forEach(type => {
247-
event.custom({
248-
type: 'tfg:item_repair',
249-
pattern: [
250-
"RH",
251-
],
252-
key: {
253-
R: { item: `sns:leather_strip` },
254-
H: { item: `tfc_textile:${item}_${type}` },
255-
// T: { tag: "forge:tools/hammers" }
256-
},
257-
repairPercentage: 0.25
258-
}).id(`tfg:item_repair/${item}_${type}`)
247+
item.repair.forEach(repair => {
248+
TFC_TEXTILE_TYPES.forEach(type => {
249+
event.custom({
250+
type: 'tfg:item_repair',
251+
pattern: [
252+
"RH",
253+
],
254+
key: {
255+
R: { item: repair },
256+
H: { item: `tfc_textile:${item.animal}_${type}` },
257+
// T: { tag: "forge:tools/hammers" }
258+
},
259+
repairPercentage: 0.25
260+
}).id(`tfg:item_repair/${item.animal}_${type}_${global.linuxUnfucker(repair)}`)
261+
})
259262
})
260263
})
261264

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// priority: 0
2+
"use strict";
3+
4+
StartupEvents.modifyCreativeTab('minecraft:combat', event => {
5+
event.add('tfc_textile:linen_hat')
6+
event.add('tfc_textile:linen_shirt')
7+
event.add('tfc_textile:linen_pants')
8+
event.add('tfc_textile:linen_socks')
9+
10+
//event.add('tfc_textile:cotton_hat')
11+
//event.add('tfc_textile:cotton_shirt')
12+
//event.add('tfc_textile:cotton_pants')
13+
//event.add('tfc_textile:cotton_socks')
14+
})

0 commit comments

Comments
 (0)