Version 1.0.19b
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
ServerEvents.recipes(event => {
|
||||
let patterns = { helmet: ['XXX', 'XYX'], chestplate: ['XYX', 'XXX', 'XXX'], leggings: ['XXX', 'XYX', 'X X'], boots: ['XYX', 'X X'] }
|
||||
let tiers = [
|
||||
{ material: '#forge:ingots/iron', previous: 'minecraft:leather', makes: 'minecraft:iron' },
|
||||
{ material: '#forge:gems/diamond', previous: 'minecraft:iron', makes: 'minecraft:diamond' },
|
||||
]
|
||||
for (const tier of tiers) {
|
||||
for (const [armorItem, armorPattern] of Object.entries(patterns)) {
|
||||
event.custom({
|
||||
type: 'allthemodium:atmshaped_crafting',
|
||||
pattern: armorPattern,
|
||||
key: {
|
||||
X: Ingredient.of(tier.material).toJson(),
|
||||
Y: Item.of(`${tier.previous}_${armorItem}`).toJson()
|
||||
},
|
||||
result: Item.of(`${tier.makes}_${armorItem}`).toJson()
|
||||
}).id(`kubejs:keep_enchants/${tier.previous.replace(':', '/')}_${armorItem}_upgrade`)
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,6 @@
|
||||
ServerEvents.recipes(event => {
|
||||
event.shaped('kubejs:piglich_heart_block', ['HHH','HHH','HHH'],{
|
||||
H: 'allthemodium:piglich_heart'
|
||||
}).id('kubejs:shaped_heart_block')
|
||||
event.shapeless('9x allthemodium:piglich_heart', 'kubejs:piglich_heart_block').id('kubejs:shapeless_piglich_heart')
|
||||
})
|
||||
Reference in New Issue
Block a user