event.shapeless(
Item.of('minecraft:knowledge_book', 1),
[
'#c:armor',
'minecraft:honeycomb'
]
).keepIngredient('#c:armor').modifyResult((grid,result)=>{
let armorPiece=grid.find(Ingredient.of('#c:armor'))
if (armorPiece.nbt.Trim==null&&armorPiece.nbt.Trim.length!==0)
return
// armorPiece.withNBT({Trim:{}})
return Item.of(armorPiece.nbt.Trim.pattern + '_armor_trim_smithing_template')
})
#modify the nbt of input ingredient
5 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
trying to modify the input armors nbt to remove its trim
If you scroll down to the entire bottom you can find the customIngredient Action https://wiki.latvian.dev/books/kubejs-legacy/page/recipeeventjs
Examples
The most basic script to add a single recipe:
onEvent('recipes', event => {
event.shap...
ah yes perfect thank you