#When doing sequenced assembly, how to keep a deployed item?
50 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
prob there is something on their doc, let me see
KubeJS Create is an addon that will allow you to use KJS scripts with Create more easily.
.keepHeldItem() iirc
event.recipes.createDeploying('kubejs:incomplete_scanner', ['kubejs:incomplete_scanner', 'tfmg:screwdriver'])
Tried inserting this after the square bracket after 'tfmg:screwdriver' and it gave me an error
event.recipes.createDeploying('kubejs:incomplete_scanner', ['kubejs:incomplete_scanner', 'tfmg:screwdriver']).keepHeldItem()
?
No errors
@unborn swallow are you the plushie dude?
lemme test
Yes
I am the plushie dude

:>
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
The server the plushies launches in like 2 hours
Wdym?
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
Hmm
Well there's already a solution for the server they're made for
Which is Cosmetic armor reworked
You just need the texture?
yes, you already sent the model json on that topic, right?
This works, but how to do I make the screwdriver lose durability
As in the other recipes it is used in, it loses 1 durability anytime it gets used in sequenced assembly
.damageIngredient() maybe
where insert?
replace keepHeld with it

It's not a big deal
maybe you can find something similar on A&B code
?
Above & Beyond
a
that's only for crafting iirc
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
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