I'm trying to use .modifyResult to change the nbt of the result of a smithing table recipe:
event.smithing("simplyswords:runic_longsword", Item.of("simplyswords:runic_longsword").ignoreNBT(), "kubejs:essence_ascension")
.modifyResult((inventory, itemstack) => { return ascendWeapon(inventory, itemstack) })
This doesnt cause any kubejs errors, but it doesnt appear that ascendWeapon is even called (a console.log at the top of the function does not appear in the server log when the recipe is crafted. Does modifyResult support smithing table recipes? If not, is there an alternative that does?