mods & recipes

This commit is contained in:
2024-09-15 03:02:33 +02:00
parent fd3c45f29c
commit aa3ddc7776
29 changed files with 437 additions and 103 deletions

View File

@@ -0,0 +1,9 @@
ServerEvents.recipes(event => {
event.recipes.create.milling('createsifter:crushed_end_stone', 'minecraft:end_stone')
event.recipes.create.milling('createsifter:dust', 'minecraft:sand')
event.recipes.create.mixing(['minecraft:clay'], [Fluid.water(500), 'createsifter:dust'])
event.recipes.create.mixing(['minecraft:obsidian'], [Fluid.water(1000), Fluid.lava(1000)])
})

View File

@@ -0,0 +1,53 @@
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"),
])
.max_height(30)
.withCatalyst("minecraft:polished_andesite");
event.recipes
.createMechanicalExtruderExtruding(Item.of("minecraft:sandstone"), [
Fluid.of("minecraft:lava"),
Fluid.of("minecraft:water"),
])
.max_height(50)
.withCatalyst("minecraft:sandstone");
event.recipes
.createMechanicalExtruderExtruding(Item.of("minecraft:netherrack"), [
Item.of("minecraft:blue_ice"),
Fluid.of("minecraft:water"),
])
.biome("minecraft:is_nether")
.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:deepslate"), [
Fluid.of("minecraft:lava"),
Fluid.of("minecraft:water"),
])
.withCatalyst("minecraft:deepslate");
event.recipes
.createMechanicalExtruderExtruding(Item.of("minecraft:obsidian"), [
Item.of("minecraft:blue_ice"),
Fluid.of("minecraft:lava"),
])
.withCatalyst("minecraft:diamond_block");
event.recipes
.createMechanicalExtruderExtruding(Item.of("minecraft:soul_soil"), [
Fluid.of("minecraft:lava"),
Fluid.of("minecraft:water"),
])
.withCatalyst("minecraft:soul_soil");
});

View File

@@ -0,0 +1,34 @@
console.log("Starting server recipes");
ServerEvents.recipes(event => {
//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'
}
)
//SHAPELESS
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')
})

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.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:chorus_fruit').withChance(0.1),Item.of('minecraft:ender_pearl').withChance(0.05)], ['createsifter:crushed_end_stone','createsifter:zinc_mesh'])
event.recipes.createsifterSifting([Item.of('minecraft:chorus_fruit').withChance(0.2),Item.of('minecraft:ender_pearl').withChance(0.1)], ['createsifter:crushed_end_stone','createsifter:brass_mesh'])
event.recipes.createsifterSifting([Item.of('minecraft:chorus_fruit').withChance(0.3),Item.of('minecraft:ender_pearl').withChance(0.3)], ['createsifter:crushed_end_stone','createsifter:advanced_brass_mesh'])
event.recipes.createsifterSifting([Item.of('resource_cracker:nugget_diamond').withChance(0.2),Item.of('resource_cracker:nugget_emerald').withChance(0.1),Item.of('minecraft:netherite_scrap').withChance(0.01)], ['minecraft:basalt','createsifter:brass_mesh'])
event.recipes.createsifterSifting([Item.of('resource_cracker:nugget_diamond').withChance(0.5),Item.of('resource_cracker:nugget_emerald').withChance(0.4),Item.of('minecraft:netherite_scrap').withChance(0.1)], ['minecraft:basalt','createsifter:advanced_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','createsifter:brass_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','createsifter:brass_mesh'])
})