#anyone know how to add 2 items received when crafting?

1 messages · Page 1 of 1 (latest)

idle musk
#

I have set the iron sword to #minecraft:swords (so it is any sword) I want it do give you back the sword with -15 durability

spiral runeBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1737049143:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

meager sparrow
#

Short answer: you can't

meager sparrow
#

Long answer: there is a way using the crafting remainder component I think but that requires you to modify that

idle musk
#

where is that?

mental frigate
#

The way I'd do it is by making an advancement that detects when the player crafts this recipe, and have it run a function as a reward that gives the bread. Then the actual recipe can instead give the damaged sword as the output

#

But there may be another newer method I'm unfamiliar with

idle musk
#

i was literally doing that 😭

#

you dead ass read my mind

#

wait is there a way to make that bread at the top have a custom model data?

mental frigate
#

Suggests we're both in the right track

idle musk
#

damn it

mental frigate
#

Custom recipes don't currently support ingredients with specific components

idle musk
#

yet?

mental frigate
# idle musk *yet?*

There's no way I could possibly answer that because I'm not Mojang. We can presume we'll get it eventually, but it's probably just as or even more likely that we'll just get data driven items instead, eliminating most need for components on ingredients

mental frigate
royal pivot
#

the thing i did in my datapack is craft something that has the same name(it was a book w/ name) and then in tick, check items entity container.* for it, and if it is there, then in another function, clear you 1 time of that item, then give you 1 with mcstacker give command.
Worked pretty well, but I cant help with the model inside the crafting recipe. Might just have to deal with that.