Skip to main content

KubeJS Farmers Delight

Download: Curseforge

Example:

Startup Scripts:

StartupEvents.registry("block", event => {
  event.create('example_pie', 'pie')
    .sliceItem('kubejs:example_pie_slice')
    .displayName('Example Pie')
  event.create('example_feast', 'feast')
    .servingsAmount(3)
    .servingItems(['kubejs:example_feast_serving', 'kubejs:example_feast_serving_2'])
    .displayName('Example Feast')
})

StartupEvents.registry("item", event => {
  event.create('example_knife', 'knife')
    .displayName('Example Knife')
    .tier('diamond')
})

Server Scripts: 

ServerEvents.recipes(event => {
	event.recipes.farmersdelight.cutting(
        "minecraft:cobblestone",
        "#forge:tools/pickaxes", // tool
        [ // results
            "minecraft:iron_ore",
            {
                item: "minecraft:diamond",
                chance: 0.8
            }
        ],
        "" // sound
	);

	event.recipes.farmersdelight.cooking(
	    ["minecraft:cobblestone"], // input item list
	    "minecraft:iron_ore", // output
	    "minecraft:bowl", // container
	    30, // exp
	    10, // cookTime
	);
})