#Shapeless Crafting recipe where one input remains unused

8 messages · Page 1 of 1 (latest)

serene hazel
#

I am trying to allow my players to mint their own currencies using Create Deco. For this, I want to give out minting permits (item underlined in red).
I need them to be able to mint coins without using up the minting permit in the crafting process.

Ideas?

Minting crafting recipe so far:
event.shapeless( Item.of('createdeco:gold_coin', 9), [ 'minecraft:gold_ingot', 'kubejs:gold_mint_permit' ] )

peak marshBOT
#

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

serene hazel
#

I am also open to changing the crafting method for coins to something different if need be, although not too convulted. We are not an economy simulator

fossil spear
#

add .keepIngredient("item id here") after closing shaped recipe

serene hazel
fossil spear
#

My apologies, I made a mistake.

#

this works for both shaped and shapeless

serene hazel
#

That worked, thank you. Code should look like this:

event.shapeless( Item.of('createdeco:gold_coin', 9), [ 'minecraft:gold_ingot', 'kubejs:gold_mint_permit' ] ).keepIngredient("kubejs:gold_mint_permit")