1
0
mirror of https://git.fellies.tech/minecraft/fellies.git synced 2021-02-13 10:18:48 +00:00
Fellies/kubejs[atm]/server_scripts/upgrade.js
2021-02-06 12:01:02 +01:00

79 lines
1.6 KiB
JavaScript

events.listen('recipes', function (e) {
function upgrade(material, previous, next) {
e.recipes.allthemodium.atmshaped_crafting({
pattern: [
'XXX',
'XYX'
],
key: {
X: {
tag: 'forge:' + material
},
Y: {
item: previous + '_helmet'
}
},
result: {
item: next + '_helmet'
}
})
e.recipes.allthemodium.atmshaped_crafting({
pattern: [
'XYX',
'XXX',
'XXX'
],
key: {
X: {
tag: 'forge:' + material
},
Y: {
item: previous + '_chestplate'
}
},
result: {
item: next + '_chestplate'
}
})
e.recipes.allthemodium.atmshaped_crafting({
pattern: [
'XXX',
'XYX',
'X X'
],
key: {
X: {
tag: 'forge:' + material
},
Y: {
item: previous + '_leggings'
}
},
result: {
item: next + '_leggings'
}
})
e.recipes.allthemodium.atmshaped_crafting({
pattern: [
'XYX',
'X X'
],
key: {
X: {
tag: 'forge:' + material
},
Y: {
item: previous + '_boots'
}
},
result: {
item: next + '_boots'
}
})
}
upgrade('ingots/iron', 'minecraft:leather', 'minecraft:iron')
upgrade('ingots/iron', 'minecraft:leather', 'minecraft:iron')
upgrade('gems/diamond', 'minecraft:iron', 'minecraft:diamond')
upgrade('ingots/allthemodium', 'minecraft:netherite', 'allthemodium:allthemodium')
})