#I have been trying to make a sequenced recipe for a personal modpack, no errors shown

50 messages · Page 1 of 1 (latest)

pearl shore
#

event.custom({ type: 'create:sequenced_assembly', results: 'pneumaticcraft:printed_circuit_board', ingredient: 'immersiveengineering:circuit_board', sequence: [{ type: 'create:deploying', ingredients: ['immersiveengineering:circuit_board', 'refinedstorage:raw_basic_processor'], results: 'immersiveengineering:circuit_board' }, {type: 'create:deploying', ingredients: ['immersiveengineering:circuit_board', 'immersiveengineering:wire_copper'], results: 'immersiveengineering:circuit_board' }, {type: 'create:deploying', ingredients: ['immersiveengineering:circuit_board', 'immersiveengineering:electron_tube'], results: 'immersiveengineering:circuit_board' }], transitionalItem: 'pneumaticcraft:unassembled_pcb' });

I've reloaded the world i've been in multiple times and been trying to debug the code every now and then, im not too experienced on the subject but i have some exposure to kubejs code. Recipe just does not register.

I want the sequenced recipe to be:
Input: IE Circuit backplate
Deployer 1: raw basic processor
**Deployer 2: **copper wire
Deployer 3: vacuum tube
Output: pncr finished pcb

azure torrentBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

plush iris
north raptorBOT
#

You can write your code in a codeblock by typing it between the codeblock delimiters:

```js :arrow_left:

ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})

``` :arrow_left:

As an example, :arrow_up: will look like this:

ServerEvents.recipes(event => {
  event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
#

You can find your KubeJS server log in /minecraft/logs/kubejs/server.log.
If you are on 1.18 or below it will be called server.txt.
Please send it if asked, as it contains helpful information.

pearl shore
#

trying out the create addon for kubejs rn so i'll see how far i can get with it

pearl shore
#

yeah no im having trouble trying out the addon

#

doesnt seem like the example codes are showing kubejs 6+ code

pliant night
#

onEvent moment despair

#

generally only the onEvent line should change (probably to ServerEvents.recipes(event => {, tho idk how the examples look like)

#

otherwise, everything should stay the same

pearl shore
#

gonna tweak the example code then

pliant night
#

the wiki seems to be up to date

pearl shore
#

'''js
onEvent('recipes', event => {
event.recipes.createSequencedAssembly([ // start the recipe
Item.of('create:precision_mechanism').withChance(130.0), // this is the item that will appear in JEI as the result
Item.of('create:golden_sheet').withChance(8.0), // the rest of these items will part of the scrap
Item.of('create:andesite_alloy').withChance(8.0),
Item.of('create:cogwheel').withChance(5.0),
Item.of('create:shaft').withChance(2.0),
Item.of('create:crushed_gold_ore').withChance(2.0),
Item.of('2x gold_nugget').withChance(2.0),
'iron_ingot',
'clock'
],'create:golden_sheet',[ // 'create:golden_sheet' is the input
// the transitional item set by "transitionalItem('create:incomplete_large_cogwheel')" is the item used during the intermediate stages of the assembly
event.recipes.createDeploying('create:incomplete_precision_mechanism',['create:incomplete_precision_mechanism','create:cogwheel']),
// like a normal recipe function, is used as a sequence step in this array. Input and output have the transitional item
event.recipes.createDeploying('create:incomplete_precision_mechanism',['create:incomplete_precision_mechanism','create:large_cogwheel']),
event.recipes.createDeploying('create:incomplete_precision_mechanism',['create:incomplete_precision_mechanism','create:iron_nugget'])
]).transitionalItem('create:incomplete_precision_mechanism').loops(5) // set the transitional item and the loops (amount of repetitions)
'''

#

damn

pliant night
#

??codeblock

north raptorBOT
# pliant night ??codeblock

You can write your code in a codeblock by typing it between the codeblock delimiters:

```js :arrow_left:

ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})

``` :arrow_left:

As an example, :arrow_up: will look like this:

ServerEvents.recipes(event => {
  event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
pliant night
pliant night
#

where did you get it from

pliant night
#

...

#

refer to the 2nd link

pearl shore
#

i did

plush iris
#
ServerEvents.recipes((event) => {

    let input = "minecraft:dirt"
    let output = "minecraft:grass_block"
    let transitionalItem = "minecraft:rooted_dirt"

    event.recipes.create.sequenced_assembly([
            output
        ], input, [
            event.recipes.createDeploying(transitionalItem, [transitionalItem, 'minecraft:flint']).keepHeldItem(),
            event.recipes.createPressing(transitionalItem, [transitionalItem]),
            event.recipes.createFilling(transitionalItem, [transitionalItem, Fluid.of("minecraft:water",500)]),
        ]).transitionalItem(transitionalItem).loops(2)

});

#

^typo minecraft:grass_block

#

Your original should be like that

ServerEvents.recipes((event) => {
    
    let input = 'immersiveengineering:circuit_board'
    let output = 'pneumaticcraft:printed_circuit_board'
    let transitionalItem = 'pneumaticcraft:unassembled_pcb'

    event.recipes.create.sequenced_assembly([
        output
    ], input, [
        event.recipes.createDeploying(transitionalItem, [transitionalItem, 'refinedstorage:raw_basic_processor']),
        event.recipes.createDeploying(transitionalItem, [transitionalItem, 'immersiveengineering:wire_copper']),
        event.recipes.createDeploying(transitionalItem, [transitionalItem, 'immersiveengineering:electron_tube'])
    ]).transitionalItem(transitionalItem).loops(1)


});

#

althought I think the last ingredient is create:electron_tube

#

but idk IE might have electron_tube too heh

pearl shore
#

nah its vacuum tube from IE

plush iris
#

ayt

pearl shore
#

starting to think my game has some wacky line of code i forgot i implemented

#

some of the sequenced recipes that are in base create just doesnt exist DeathStare

#

precision mechanism recipe is gone

plush iris
#

checks logs for that, in logs/kubejs

pearl shore
#

duped recipe

plush iris
#

you can post the full log file or the file thats causing problem

pearl shore
north raptorBOT
#

Paste version of server.log from @pearl shore

pearl shore
#

it works

pearl shore
plush iris
#

Go ahead

pearl shore