Datapack recipe for item duplication

I'm trying to add a custom recipe that'll duplicate a playerhead. Playerhead + diamond in crafting table = extra playerhead. Problem is, that requires it to copy over the NBT data so the playerhead is the same. Is this possible within a custom recipe? Or a datapack?
10 Replies
Admincraft Meta
Admincraft Meta6mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by wil_co#0
Wilco
WilcoOP6mo ago
Any ideas?
Cubicake
Cubicake6mo ago
datapacks can't detect items with custom nbt as an input iirc you're looking for a mod/plugin
QarthO
QarthO6mo ago
i thought this was changed now that item components were introduced in 1.20.5 (i could be wrong tho)
Cubicake
Cubicake6mo ago
They can output results with custom data
QarthO
QarthO6mo ago
Ah yes, that looks like what is now. Unfortunate
Cubicake
Cubicake6mo ago
yea
No description
Wilco
WilcoOP6mo ago
:Sadge: that's quite sad, thanks for the help!
Cubicake
Cubicake6mo ago
It's entirely possible to do this with a plugin btw, and shouldn't be too hard
Wilco
WilcoOP6mo ago
I'm running a fabric server, and have very minimal modding experience, so i'll skip on that for now. Its not just the initial dev part, but keeping it up to date and working for future servers thatll be the most painful thing

Did you find this page helpful?