#create recipe
15 messages · Page 1 of 1 (latest)
You can add, remove, and modify recipes with KubeJS. The wiki has a page on that!
If you want to learn how to add recipes to any mod, click the Custom button.
check the custom page
what am i missing in this ServerEvents.recipes(Event => {
Event.custom({
"type":create.sequenced_assembly
}
Item.of('pointblank:ammo12gauge').withChance(90.0), // this is the item that will appear in JEI as the result
Item.of('supplementaries:ash').withChance(85.0), // the rest of these items will be part of the scrap
Item.of('minecraft:gunpowder').withChance(15.0)
], 'alltheores:copper_plate', [ // 'alltheores:copper_plate' is the input
// the transitional item set by transitionalItem('create:incomplete_large_cogwheel') is the item used during the intermediate stages of the assembly
allthemods.recipes.createDeploying('alltheores:copper_plate', ['immersiveengineering:empty_shell', 'alltheores:copper_plate']),
// like a normal recipe function, is used as a sequence step in this array. Input and output have the transitional item
allthemods.recipes.createDeploying('immersiveengineering:empty_shell', ['immersiveengineering:empty_casing', 'minecraft:gunpowder']),
allthemods.recipes.createPressing('immersiveengineering:empty_shell', ['create:cardboard', '']),
]).transitionalItem('immersiveengineering:empty_shell').loops(1) // set the transitional item and the number of loops
}) and why am i getting a error
You can write your code in a codeblock by typing it between the codeblock delimiters:
Note that these are backticks, not apostrophes
```js :arrow_left:
ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
``` :arrow_left:
This example will look like this:
ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
Please send your KubeJS server log. It can be found at /minecraft/logs/kubejs/server.log.
If you are on 1.18 or 1.16 it will be called server.txt.
Please send the file directly, without links or snippets.
Paste version of server.log from @pulsar jasper
theres the server log i have no clue of how to add recipes via custom even with the example im use to using create kubejs but its not out for neoforge and is only on 1.20.1 so far
nvm figured it out
even if there was a KubeJS Create AddOn on 1.21 your code doesn't work either and a sequence in custom event should looks like this
Paste version of custom_sequence.js from @pseudo halo
Ticket closed!