All checks were successful
continuous-integration/drone/push Build is passing
56 lines
1.6 KiB
JavaScript
56 lines
1.6 KiB
JavaScript
ServerEvents.recipes((event) => {
|
|
// Suspended stairs
|
|
global.embellishcraft.suspendedStairs.forEach((suspendedStair) => {
|
|
event
|
|
.shaped(
|
|
Item.of(suspendedStair['id'], 1),
|
|
[
|
|
' P',
|
|
' PS',
|
|
'PS '
|
|
],
|
|
{
|
|
'P': { 'item': suspendedStair['ingredient'] },
|
|
'S': { 'tag': 'forge:rods/wooden' }
|
|
}
|
|
)
|
|
.id(suspendedStair['id']);
|
|
});
|
|
});
|
|
|
|
ServerEvents.tags('block', (event) => {
|
|
let pickaxe_mineable_blocks = [
|
|
'embellishcraft:steel_wall_ladder',
|
|
'embellishcraft:steel_rungs',
|
|
'embellishcraft:sturdy_steel_door',
|
|
'embellishcraft:warning_steel_door'
|
|
];
|
|
|
|
pickaxe_mineable_blocks.forEach((block) => {
|
|
if (Object.keys(global.embellishcraft.CustomBlocks).includes(block)) {
|
|
event.add('minecraft:mineable/pickaxe', block);
|
|
}
|
|
})
|
|
|
|
let door_blocks = [
|
|
'embellishcraft:sturdy_steel_door',
|
|
'embellishcraft:warning_steel_door'
|
|
];
|
|
|
|
door_blocks.forEach((block) => {
|
|
if (Object.keys(global.embellishcraft.CustomBlocks).includes(block)) {
|
|
event.add('minecraft:doors', block);
|
|
}
|
|
})
|
|
|
|
let ladder_blocks = [
|
|
'embellishcraft:steel_wall_ladder',
|
|
'embellishcraft:steel_rungs'
|
|
];
|
|
|
|
ladder_blocks.forEach((block) => {
|
|
if (Object.keys(global.embellishcraft.CustomBlocks).includes(block)) {
|
|
event.add('minecraft:climbable', block);
|
|
}
|
|
})
|
|
}) |