recipes & items

This commit is contained in:
2024-09-15 13:01:06 +02:00
parent c163f38ee5
commit 14c3a1c764
16 changed files with 221 additions and 11 deletions

View File

@@ -6,4 +6,28 @@ ServerEvents.recipes(event => {
event.recipes.create.mixing(['minecraft:obsidian'], [Fluid.water(1000), Fluid.lava(1000)])
let inter = 'kubejs:incomplete_netherstar' // making a variable to store the transitional item makes the code more readable
event.recipes.create.sequenced_assembly([
Item.of('nether_star'), // this is the item that will appear in JEI as the result
], 'prismarine_shard', [ // 'flowering_azalea_leaves' is the input
// the transitional item is a variable, that is 'kubejs:incomplete_spore_blossom' and is used during the intermediate stages of the assembly
event.recipes.createPressing(inter, inter),
// like a normal recipe function, is used as a sequence step in this array. Input and output have the transitional item
event.recipes.createFilling(inter, [inter, Fluid.water(420)]),
event.recipes.createPressing(inter, inter),
event.recipes.createFilling(inter, [inter, Fluid.of('create_enchantment_industry:experience', 250)]),
]).transitionalItem(inter).loops(8) // set the transitional item and the number of loops
let interPainting = 'minecraft:painting' // making a variable to store the transitional item makes the code more readable
event.recipes.create.sequenced_assembly([
Item.of('dimpaintings:end_painting'), // this is the item that will appear in JEI as the result
], interPainting, [ // 'flowering_azalea_leaves' is the input
// the transitional item is a variable, that is 'kubejs:incomplete_spore_blossom' and is used during the intermediate stages of the assembly
event.recipes.createPressing(inter, inter),
event.recipes.createPressing(inter, inter),
// like a normal recipe function, is used as a sequence step in this array. Input and output have the transitional item
event.recipes.createFilling(inter, [inter, Fluid.of('create_enchantment_industry:experience', 1000)]),
]).transitionalItem(inter).loops(1) // set the transitional item and the number of loops
})

View File

@@ -19,7 +19,7 @@ ServerEvents.recipes((event) => {
event.recipes
.createMechanicalExtruderExtruding(Item.of("minecraft:netherrack"), [
Item.of("minecraft:blue_ice"),
Fluid.of("minecraft:water"),
Fluid.of("minecraft:lava"),
])
.biome("minecraft:is_nether")
.withCatalyst("minecraft:netherrack");
@@ -34,6 +34,7 @@ ServerEvents.recipes((event) => {
Fluid.of("minecraft:lava"),
Fluid.of("minecraft:water"),
])
.max_height(1)
.withCatalyst("minecraft:deepslate");
event.recipes
@@ -41,7 +42,7 @@ ServerEvents.recipes((event) => {
Item.of("minecraft:blue_ice"),
Fluid.of("minecraft:lava"),
])
.withCatalyst("minecraft:diamond_block");
.withCatalyst("minecraft:obsidian");
event.recipes
.createMechanicalExtruderExtruding(Item.of("minecraft:soul_soil"), [

View File

@@ -14,6 +14,18 @@ ServerEvents.recipes(event => {
I: 'create:brass_ingot'
}
)
event.shaped('minecraft:elytra', [// arg 1: output
'CDC',
'MNM', // arg 2: the shape (array of strings)
'M M'
], {
C: 'minecraft:chorus_fruit',
N: 'minecraft:nether_star',
M: 'minecraft:phantom_membrane', //arg 3: the mapping object
D: 'minecraft:diamond', //arg 3: the mapping object
}
)
//SHAPELESS
event.shapeless('minecraft:blaze_rod', [ // arg 1: output
'6x minecraft:blaze_powder'
@@ -31,4 +43,11 @@ event.smelting('6x minecraft:blaze_powder', 'minecraft:blaze_rod')
// 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.remove({ output: 'dimpaintings:end_painting' })
})

View File

@@ -15,6 +15,11 @@ ServerEvents.recipes(event => { //listen for the "recipes" server event.
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('minecraft:cocoa_beans').withChance(0.1),Item.of('minecraft:red_mushroom').withChance(0.1),Item.of('minecraft:brown_mushroom').withChance(0.1)], ['minecraft:dirt','createsifter:brass_mesh'])
event.recipes.createsifterSifting([Item.of('minecraft:prismarine_shard').withChance(0.3)], ['minecraft:sand','createsifter:brass_mesh']).waterlogged()
//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'])