#How do I make a recipe that returns item container after craft

24 messages · Page 1 of 1 (latest)

normal hamlet
#

I want to make a recipe, that uses a modded water bottle and changes it to an empty bottle after craft instead of fully consuming it

proud widgetBOT
#

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

blissful pagoda
#

if youre using the crafting table, you can add chain .replaceIngredient('water bottle ID', 'empty bottle ID') at the end of the recipe

normal hamlet
blissful pagoda
#
ServerEvents.recipes(e => {
  e.shapeless('dirt', 'water_bottle').replaceIngredient('water_bottle', 'bottle')
})
final cedarBOT
#

You can add, remove, and modify recipes with KubeJS. The wiki has a page on that!
If you want to learn how to add recipes to any mod, click the Custom button.

vestal basalt
#

In Lexxie's example, you can see that if the namespace is minecraft, you can omit it. But this only is the case with minecraft namespace

#

For modded items, you must provide the namespace

blissful pagoda
#

it was mostly just placeholders in what i wrote
not sure if thats the correct id for the bottles

vestal basalt
#

For water bottles and other potions

#

And minecraft:glass_bottle for empty, glass bottles

blissful pagoda
#

there you go uwu

vestal basalt
#

Potions are differentiated by NBT, and potion without NBT is an uncraftable potion

blissful pagoda
#

lol

#

always found it weird to add random things like that, when theres no need to differentiate it

vestal basalt
#

Anyways, find out correct item IDs and item syntaxes using a command:
/kjs hand
while holding a desired item

normal hamlet
#

Aight thanks a lot

#

I'll check it out when I can

blissful pagoda
#

this is a regular recipe hmmm

#

it just had the extra thing added at the end

normal hamlet
#

Yep it's working thanks a lot