Files
2024-10-25 23:02:11 +02:00

93 lines
2.8 KiB
JavaScript

console.log("Starting server recipes");
ServerEvents.recipes(event => {
event.shaped("kubejs:golden_potato", [// arg 1: output
'RIR',
'IPI', // arg 2: the shape (array of strings)
'RIR'
], {
I: 'minecraft:gold_ingot',
R: 'minecraft:blaze_rod',
P: 'minecraft:potato', //arg 3: the mapping object
}
)
//SHAPED
event.shaped('minecraft:totem_of_undying', [// arg 1: output
'NCN',
'EIE', // arg 2: the shape (array of strings)
'RNR'
], {
C: 'minecraft:chorus_fruit',
R: 'minecraft:blaze_rod',
N: 'create:brass_nugget',
E: 'minecraft:emerald', //arg 3: the mapping object
I: 'create:brass_ingot'
}
)
event.shaped('minecraft:elytra', [// arg 1: output
'BDB',
'MNM', // arg 2: the shape (array of strings)
'M M'
], {
B: 'bonfires:titanite_slab',
N: 'minecraft:nether_star',
M: 'minecraft:phantom_membrane', //arg 3: the mapping object
D: 'minecraft:diamond', //arg 3: the mapping object
}
)
event.shaped('kubejs:andesite_shears', [// arg 1: output
' A ',
'S A', // arg 2: the shape (array of strings)
' S '
], {
S: 'minecraft:stick',
A: 'create:andesite_alloy', //arg 3: the mapping object
}
)
event.shaped('kubejs:brass_shears', [// arg 1: output
' B ',
'S B', // arg 2: the shape (array of strings)
' S '
], {
S: 'create:brass_ingot',
A: 'create:andesite_alloy', //arg 3: the mapping object
}
)
//SHAPELESS
event.shapeless(['minecraft:bone', 'minecraft:porkchop'], [ // arg 1: output
'1x doggytalents:training_treat'
])
event.shapeless('minecraft:blaze_rod', [ // arg 1: output
'6x minecraft:blaze_powder'
])
event.shapeless('minecraft:string', [ // arg 1: output
'4x #minecraft:leaves'
])
// Cook 4 blaze_powder into 1 blaze_rod in a Furnace:
//event.smelting('minecraft:blaze_rod', '4x minecraft:blaze_powder')
// Cook 1 stone into 3 gravel in a Furnace:
event.smelting('6x minecraft:blaze_powder', 'minecraft:blaze_rod')
// Smoke glass into tinted glass in the Smoker:
//event.smoking('minecraft:leather', 'minecraft:rotten_flesh')
// Burn sticks into torches on the Campfire:
//event.campfireCooking('minecraft:leather', 'minecraft:rotten_flesh')
event.recipes.melterMelting(Fluid.of('minecraft:lava', 1000),"minecraft:obsidian").processingTime(200);
event.recipes.melterMelting(Fluid.of('create:honey', 1000),"minecraft:honey_block").processingTime(200);
event.recipes.melterMelting(Fluid.of('minecraft:lava', 500),"#forge:stone").processingTime(200);
event.recipes.melterMelting(Fluid.of('kubejs:super_glue', 250),"#forge:slimeballs").processingTime(200);
event.remove({ output: 'dimpaintings:end_painting' })
})