#create sequenced assembly issues

43 messages · Page 1 of 1 (latest)

wanton granite
#

i am working on recipes where the outcome is different depending what item is put on at the beginning but after the next item it changes to a whole other recipe how can i fix this i tried using the recipe id in nbt data but still didnt work...

ServerEvents.recipes(e => {
    e.custom({
        type: "create:sequenced_assembly",
        ingredient: {
          item: 'kubejs:ball_bottom_tier1'
        },
        results: [
          {
            item: 'cobblemon:great_ball'
          }
        ],
        loops: 1,
        sequence: [
          {
            type: "create:deploying",
            ingredients: [
              {
                item: 'kubejs:ball_bottom_tier1'
              },
              {
                item: 'kubejs:great_ball_top'
              }
            ],
            results: [
              {
                item: 'kubejs:ball_bottom_tier1'
              }
            ]
          },
          {
            type: "create:pressing",
            ingredients: [
              {
                item: 'kubejs:ball_bottom_tier1'
              }
            ],
            results: [
              {
                item: 'kubejs:ball_bottom_tier1'
              }
            ]
          },
          {
            type: "create:deploying",
            ingredients: [
              {
                item: 'kubejs:ball_bottom_tier1'
              },
              {
                item: 'kubejs:base_assembly_parts'
              }
            ],
            results: [
              {
                item: 'kubejs:ball_bottom_tier1'
              }
            ]
          },
          {
            type: "create:pressing",
            ingredients: [
              {
                item: 'kubejs:ball_bottom_tier1'
              }
            ],
            results: [
              {
                item: 'cobblemon:great_ball'
              }
            ]
          }
          
        ],
        transitionalItem: {
          item: 'kubejs:ball_bottom_tier1'
        }
      }).id('kubejs:greatball_assembly')
}),
//_____________________________________________________________________________
// LureBall
ServerEvents.recipes(e => {
    e.custom({
        type: "create:sequenced_assembly",
        ingredient: {
          item: 'kubejs:ball_bottom_tier1'
        },
        loops: 1,
        results: [
          {
            item: 'cobblemon:lure_ball'
          }
        ],
        sequence: [
          {
            type: "create:deploying",
            ingredients: [
              {
                item: 'kubejs:ball_bottom_tier1'
              },
              {
                item: 'kubejs:lure_ball_top'
              }
            ],
            results: [
              {
                item: 'kubejs:ball_bottom_tier1'
              }
            ]
          },
          {
            type: "create:pressing",
            ingredients: [
              {
                item: 'kubejs:ball_bottom_tier1'
              }
            ],
            results: [
              {
                item: 'kubejs:ball_bottom_tier1'
              }
            ]
          },
          {
            type: "create:deploying",
            ingredients: [
              {
                item: 'kubejs:ball_bottom_tier1'
              },
              {
                item: 'kubejs:base_assembly_parts'
              }
            ],
            results: [
              {
                item: 'kubejs:ball_bottom_tier1'
              }
            ]
          },
          {
            type: "create:pressing",
            ingredients: [
              {
                item: 'kubejs:ball_bottom_tier1'
              }
            ],
            results: [
              {
                item: 'cobblemon:lure_ball'
              }
            ]
          }
        ],
        transitionalItem: {
          item: 'kubejs:ball_bottom_tier1'
        }
      }).id('kubejs:lureball_assembly')
})
lone lanceBOT
#

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

jolly plank
#

??kjslogs

unborn patioBOT
# jolly plank ??kjslogs

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.

queen ocean
#

??neversay

unborn patioBOT
# queen ocean ??neversay

Never say 'it crashed', 'it errored', or 'it didn't work' without providing the full crash report, log, and scripts!

topaz steeple
#

Try using cutom transitional items for each recipe

wanton granite
#

dont wanna change the item thats being put in

#
  • that would mean 24 differen items i need to add again
wanton granite
queen ocean
#

we should make a macro for this ahujel

#

not all ahujel

#

server

wanton granite
unborn patioBOT
#

Paste version of server.log from @wanton granite

analog pumice
#

I was about to say KJS Create

#

But it's not on Fabric 1.20.1 yet hih

wanton granite
#

xD i am doing it all by custom xD

topaz steeple
# wanton granite dont wanna change the item thats being put in

the transitional item doesn't have to be the same as the input
they don't need to have unique textures I just think that create is getting confused by the same item being the transitional for lots of recipes since the transitional is how it keeps track of the recipe.

analog pumice
#

The transitional item has to be a separate item though from the input item

wanton granite
topaz steeple
#

It's worth trying ¯_(ツ)_/¯

analog pumice
#

Not the recipes within the sequenced assembly recipe

wanton granite
#

the thing is the id changes after the second fase xD

analog pumice
#

...wha

wanton granite
#

i put in the lure item to get the lureball crafting id after the press it turns into the greatball recipe id D

#

xD

analog pumice
#

Yeah, the ingredient item changes into the transitional item during the entire sequenced assembly process

wanton granite
#

Item.of('kubejs:ball_bottom_tier1', '{SequencedAssembly:{Progress:0.5f,Step:1,id:"kubejs:greatball_assembly"}}')

analog pumice
#
    event.recipes.createSequencedAssembly([
        Item.of('create:precision_mechanism').withChance(120.0),
        Item.of('create:golden_sheet').withChance(8.0),
        Item.of('create:andesite_alloy').withChance(8.0),
        Item.of('create:cogwheel').withChance(5.0),
        Item.of('minecraft:gold_nugget').withChance(3.0),
        Item.of('create:shaft').withChance(2.0),
        Item.of('create:crushed_raw_gold').withChance(2.0),
        'minecraft:iron_ingot',
        'minecraft:clock'
    ], 'create:golden_sheet', [
        event.recipes.create.deploying('create:incomplete_precision_mechanism', ['create:incomplete_precision_mechanism', 'create:cogwheel']),
        event.recipes.create.deploying('create:incomplete_precision_mechanism', ['create:incomplete_precision_mechanism', 'create:large_cogwheel']),
        event.recipes.create.deploying('create:incomplete_precision_mechanism', ['create:incomplete_precision_mechanism', '#forge:nuggets/iron'])
    ]).transitionalItem('create:incomplete_precision_mechanism').loops(3).id('create:sequenced_assembly/precision_mechanism')
#

This is the JS equivalent of Create's precision mechanism recipe

wanton granite
#

i saw

analog pumice
wanton granite
#

thats how i was trying to make it work...

analog pumice
#

It's not required to make a custom Create transitional item for the sequenced assembly recipe to work, Create tracks that for you the moment the transitional item "appears" during the assembly process

#

But if you're trying to use the transitional item from the first recipe in another sequenced assembly recipe, that's not recommended

#

Create only uses the NBT data from the transitional item mostly for tooltip progress display purposes, but that's about it

#

Basically:

  • Don't add NBT data to the transitional item, Create takes care of that for you.
  • Don't use the transitional item as an ingredient item in another sequenced assembly recipe
analog pumice
#

As for your initial support ticket question...

You will need to use a different ingredient item and transitional item per output item

#

Sure you can keep the same sequenced process for each item, but what you're trying to do is not possible with Create and you will need to separate them out into different recipes