So im trying to figure out how to make 7 pages to craft a chest to only one page which shows whats needed to craft 1 chest from 8 planks and 4 chest from 8 logs, basicly im trying to unify the recipes but im not sure on how to do this with out it having a error
This is the current code i have for it
// List of all wooden planks
const planks = [
'minecraft:oak_planks',
'minecraft:spruce_planks',
'minecraft:birch_planks',
'minecraft:jungle_planks',
'minecraft:acacia_planks',
'minecraft:dark_oak_planks',
'minecraft:mangrove_planks',
'minecraft:crimson_planks',
'minecraft:warped_planks',
'minecraft:cherry_planks'
];
// Loop through all planks and create a recipe to turn 2 planks into 2 sticks
planks.forEach(plank => {
event.shaped('2x minecraft:stick', [
'A',
'A'
], {
A: plank
}); // Set the output to 2 sticks
});
planks.forEach(plank => {
event.shaped('minecraft:chest', [
'AAA',
'A A',
'AAA'
], {
A: plank
}); // Set the output to 1 chest
});
});
ServerEvents.recipes(event => {
// List of all wooden logs
const logs = [
'minecraft:oak_log',
'minecraft:spruce_log',
'minecraft:birch_log',
'minecraft:jungle_log',
'minecraft:acacia_log',
'minecraft:dark_oak_log',
'minecraft:mangrove_log',
'minecraft:crimson_stem',
'minecraft:warped_stem',
'minecraft:cherry_log'
];
logs.forEach(log => {
event.shaped('4x minecraft:chest', [
'AAA',
'A A',
'AAA'
], {
A: log
}); //Set out put to 4 chest
});
});