This commit is contained in:
2023-09-09 17:29:47 +02:00
parent d4875ea281
commit 0ea137dc58
17 changed files with 232 additions and 19 deletions

View File

@@ -1,12 +0,0 @@
// Listen to player login event
PlayerEvents.loggedIn('player.logged_in', event => {
// Check if player doesn't have "starting_items" stage yet
if (!event.player.stages.has('starting_items')) {
// Add the stage
event.player.stages.add('starting_items')
// Give some items to player
event.player.give(Item.of('patchouli:guide_book', '{"patchouli:book": "patchouli:patatapack_guide"}'))
event.player.give('10x create:bar_of_chocolate')
event.player.give('2x create:builders_tea')
}
})

View File

@@ -0,0 +1,29 @@
ServerEvents.recipes(event => { //listen for the "recipes" server event.
console.log('Extruding recipes')
event.recipes.createMechanicalExtruderExtruding(
Item.of('minecraft:andesite'),
[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')])
.withCatalyst('minecraft:polished_andesite')
event.recipes.createMechanicalExtruderExtruding(
Item.of('minecraft:netherrack'),
[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')])
.withCatalyst('minecraft:netherrack')
event.recipes.createMechanicalExtruderExtruding(
Item.of('minecraft:end_stone'),
[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')])
.withCatalyst('minecraft:end_stone')
event.recipes.createMechanicalExtruderExtruding(
Item.of('minecraft:soul_sand'),[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')]).withCatalyst('minecraft:soul_soil')
event.recipes.createMechanicalExtruderExtruding(
Item.of('ad_astra:moon_sand'),[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')]).withCatalyst('ad_astra:moon_sand')
})

View File

@@ -0,0 +1,24 @@
ServerEvents.recipes(event => { //listen for the "recipes" server event.
console.log('Sifting recipes')
// event.recipes.create.item_application(['kubejs:crushed'], [['#forge:stripped_wood', '#forge:stripped_logs'], 'create:shadow_steel'])
event.smithing(
'kubejs:desh_mesh', // arg 1: output
'createsifter:brass_mesh', // arg 2: the item to be upgraded
'ad_astra:desh_ingot' // arg 3: the upgrade item
)
event.recipes.createsifterSifting([Item.of('minecraft:quartz').withChance(0.2),Item.of('minecraft:blaze_powder').withChance(0.1),Item.of('minecraft:ghast_tear').withChance(0.05),Item.of('minecraft:blaze_rod').withChance(0.05)], ['minecraft:soul_sand','createsifter:zinc_mesh'])
event.recipes.createsifterSifting([Item.of('minecraft:quartz').withChance(0.4),Item.of('minecraft:blaze_powder').withChance(0.2),Item.of('minecraft:ghast_tear').withChance(0.05),Item.of('minecraft:blaze_rod').withChance(0.05)], ['minecraft:soul_sand','createsifter:brass_mesh'])
event.recipes.createsifterSifting([Item.of('minecraft:chrous_fruit').withChance(0.1),Item.of('minecraft:ender_pearl').withChance(0.05)], ['minecraft:end_stone','createsifter:zinc_mesh'])
event.recipes.createsifterSifting([Item.of('minecraft:chrous_fruit').withChance(0.2),Item.of('minecraft:ender_pearl').withChance(0.1)], ['minecraft:end_stone','createsifter:brass_mesh'])
event.recipes.createsifterSifting([Item.of('ad_astra:desh_nugget').withChance(0.2),Item.of('minecraft:ostrum_nugget').withChance(0.1),Item.of('minecraft:calorite_nugget').withChance(0.05)], ['minecraft:deepslate','kubejs:desh_mesh'])
event.recipes.createsifterSifting([Item.of('ad_astra:desh_nugget').withChance(0.4),Item.of('minecraft:ostrum_nugget').withChance(0.3),Item.of('minecraft:calorite_nugget').withChance(0.1)], ['ad_astra:moon_sand','kubejs:desh_mesh'])
})