#When doing sequenced assembly, how to keep a deployed item?

50 messages · Page 1 of 1 (latest)

unborn swallow
#

Using KubeJS Create to make sequenced assembly recipes. And I want to have a specific item to not be consumed during the process. How do I do this?

calm cosmosBOT
#

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

loud sky
#

prob there is something on their doc, let me see

ember wyvernBOT
#

KubeJS Create is an addon that will allow you to use KJS scripts with Create more easily.

timber remnant
#

.keepHeldItem() iirc

unborn swallow
#

event.recipes.createDeploying('kubejs:incomplete_scanner', ['kubejs:incomplete_scanner', 'tfmg:screwdriver'])

unborn swallow
timber remnant
#
event.recipes.createDeploying('kubejs:incomplete_scanner', ['kubejs:incomplete_scanner', 'tfmg:screwdriver']).keepHeldItem()

?

unborn swallow
#

No errors

loud sky
#

@unborn swallow are you the plushie dude?

unborn swallow
#

lemme test

unborn swallow
#

I am the plushie dude

loud sky
unborn swallow
#

:>

loud sky
#

are you interested in sending me the textures of the plushie ? I'm trying to implement a new addon that will give more customizable way for people to create blocks and your example would be perfect

unborn swallow
#

The server the plushies launches in like 2 hours

loud sky
#

I will give you credits if I manage to use your plushie as an example

#

like making it possible to be weareable

#

currently it is not

unborn swallow
#

Hmm

#

Well there's already a solution for the server they're made for

#

Which is Cosmetic armor reworked

#

You just need the texture?

loud sky
#

yes, you already sent the model json on that topic, right?

unborn swallow
#

a

#

ye

loud sky
#

👌

#

thanks 🙂

unborn swallow
#

As in the other recipes it is used in, it loses 1 durability anytime it gets used in sequenced assembly

timber remnant
#

.damageIngredient() maybe

unborn swallow
#

where insert?

timber remnant
#

replace keepHeld with it

unborn swallow
#

Gives erroer

#

It's a "Can't find method" error

timber remnant
unborn swallow
#

It's not a big deal

timber remnant
#

maybe you can find something similar on A&B code

unborn swallow
#

?

timber remnant
#

Above & Beyond

unborn swallow
#

a

near island
#

iirc deployer recipes don't support damaging items

#

you could bodge it and use something like Lychee to add applying

#

which I know supports it and because you can do it manually it should also work with deployers

#

but I'm not sure about in a sequenced recipe

main bough
#

Deployer will damage an item if it has durability.
You can use .keepHeldItem()

event.recipes.create.deploying('kubejs:incomplete_scanner', [Item.of('kubejs:incomplete_scanner'), Item.of('tfmg:screwdriver')]).keepHeldItem(true);

This works on 1.20.1 with the KubeJS Create Addon