const wood = [
'empyreal',
'maple',
'pine'
]
ServerEvents.recipes(event => {
wood.forEach(wood =>
event.shaped(`biomesoplenty:${wood}_pressure_plate`, [
'ABA',
'CDC',
'AEA'
], {
A:'gtceu:wood_bolt',
B:'#forge:tools/mallets',
C:`biomesoplenty:${wood}_slab`,
D:'gtceu:iron_spring',
E:'#forge:tools/screwdrivers'
}).damageIngredient('#forge:tools/mallets').damageIngredient('forge:tools/screwdrivers')
)
})
ServerEvents.recipes(event => {
wood.forEach(wood =>
event.remove({ output: `biomesoplenty:${wood}_pressure_plate` })
)})
ServerEvents.recipes(event => {
wood.forEach(wood =>
event.shaped(`2x biomesoplenty:${wood}_trapdoor`, [
'ABC',
'BDB',
'CBD'
], {
A:'gtceu:iron_bolt',
B:`biomesoplenty:${wood}_planks`,
C:'minecraft:stick',
D:'#forge:tools/screwdrivers'
}).damageIngredient('forge:tools/screwdrivers')
)
event.shaped(`biomesoplenty:${wood}_trapdoor`, [
'ABC',
'BDB',
'CBD'
], {
A:'gtceu:steel_bolt',
B:`biomesoplenty:${wood}_planks`,
C:'minecraft:stick',
D:'#forge:tools/screwdrivers'
}).damageIngredient('forge:tools/screwdrivers')
})
ServerEvents.recipes(event => {
wood.forEach(wood =>
event.remove({ output: `biomesoplenty:${wood}_trapdoor` })
)})
ServerEvents.recipes(event => {
wood.forEach(wood =>
event.shaped(`biomesoplenty:${wood}_door`, [
'ABC',
'ADE',
'AAF'
], {
A:`biomesoplenty:${wood}_planks`,
B:`biomesoplenty:${wood}_trapdoor`,
C:'#forge:tools/screwdrivers',
D:'gtceu:iron_ring',
E:'gtceu:iron_screw',
F:'#forge:tools/saws'
}).damageIngredient('forge:tools/screwdrivers')
)
})
ServerEvents.recipes(event => {
wood.forEach(wood =>
event.remove({ output: `biomesoplenty:${wood}_door` })
)})