recipes & items
BIN
web/pack/kubejs/assets/kubejs/textures/item/andesite_bucket.png
Normal file
|
After Width: | Height: | Size: 342 B |
BIN
web/pack/kubejs/assets/kubejs/textures/item/andesite_shears.png
Normal file
|
After Width: | Height: | Size: 329 B |
BIN
web/pack/kubejs/assets/kubejs/textures/item/blue_gem.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
web/pack/kubejs/assets/kubejs/textures/item/brass_shears.png
Normal file
|
After Width: | Height: | Size: 303 B |
BIN
web/pack/kubejs/assets/kubejs/textures/item/golden_potato.png
Normal file
|
After Width: | Height: | Size: 333 B |
|
After Width: | Height: | Size: 278 B |
|
After Width: | Height: | Size: 278 B |
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -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
|
||||
})
|
||||
@@ -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"), [
|
||||
|
||||
@@ -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' })
|
||||
|
||||
|
||||
})
|
||||
@@ -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'])
|
||||
|
||||
34
web/pack/kubejs/startup_scripts/start.js
Normal file
@@ -0,0 +1,34 @@
|
||||
StartupEvents.registry('item', e => {
|
||||
e.create('incomplete_netherstar', 'create:sequenced_assembly')
|
||||
|
||||
e.create('andesite_shears', 'shears')
|
||||
.displayName("Andesite Shears")
|
||||
.maxDamage(127)
|
||||
|
||||
e.create('brass_shears', 'shears')
|
||||
.displayName("Brass Shears")
|
||||
.maxDamage(450)
|
||||
|
||||
e.create('golde_potato').food(food => {
|
||||
food
|
||||
.hunger(18)
|
||||
.saturation(18)//This value does not directly translate to saturation points gained
|
||||
//The real value can be assumed to be:
|
||||
//min(hunger * saturation * 2 + saturation, foodAmountAfterEating)
|
||||
.effect('speed', 600, 0, 1)
|
||||
.removeEffect('poison')
|
||||
.alwaysEdible()//Like golden apples
|
||||
.fastToEat()//Like dried kelp
|
||||
.meat()//Dogs are willing to eat it
|
||||
.eaten(ctx => {//runs code upon consumption
|
||||
ctx.player.tell(Text.gold('Yummy Yummy!'))
|
||||
//If you want to modify this code then you need to restart the game.
|
||||
//However, if you make this code call a global startup function
|
||||
//and place the function *outside* of an event handler
|
||||
//then you may use the command:
|
||||
// /kubejs reload startup_scripts
|
||||
//to reload the function instantly.
|
||||
//See example below
|
||||
})
|
||||
})
|
||||
})
|
||||