#modify the nbt of input ingredient

5 messages · Page 1 of 1 (latest)

honest salmon
#
    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')
    })
frigid oasisBOT
#

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

honest salmon
#

trying to modify the input armors nbt to remove its trim

lucid geode
honest salmon
#

ah yes perfect thank you