Description
! This mod is will not work with the reworked version of Create: Garnished !
Since 1.21 is not currently available for this mod, here are some example scripts to use without this mod installed:
Bulk Freezing:
let freezingRecipe = (input, output, count) => {
event.custom({
type: "garnished:freezing",
ingredients: [
{
item: input
}
],
results: [
{
item: {
id: output
},
count: count
}
]
})
}
Bulk Red Dyeing (change red -> any of the 16 colours for your need):
let redDyeBlowingRecipe = (input, output, count) => {
event.custom({
type: "garnished:red_dye_blowing",
ingredients: [
{
item: input
}
],
results: [
{
item: {
id: output
},
count: count
}
]
})
}
Kubejs Create: Garnished integration.
Supported recipe types:
- Bulk Dyeing of all basic 16 colours
- Bulk Freezing
Supported item types:
- Hatchets
Bulk Dyeing can be achieved just like most other recipes in the following format:
event.recipes.garnished.red_dye_blowing('rubymod:ruby', 'minecraft:emerald', 200).id('garnished_kubejs:red_dye_blowing/ruby_from_emerald')
To use any of the other available colours, simply change 'event.recipes.garnished.red_dye_blowing' to instead be 'event.recipes.garnished.<colour>_dye_blowing.'
Bulk Freezing can be achieved similarly:
event.recipes.garnished.freezing('minecraft:powder_snow_bucket', 'minecraft:water_bucket', 200).id('garnished_kubejs:freezing/powder_snow_bucket_from_water_bucket')
Hatchets are an interesting case, as it's quite simple to implement a custom hatchet for your project. Register an item just like how you would usually, but insert 'garnished:hatchet' for the item type as shown below:
event.create('bone_hatchet', 'garnished:hatchet').displayName('Bone Hatchet').unstackable().texture('kubejs:item/bone_hatchet').tier('netherite')

