#ModifyResult on smithing table recipe?

12 messages · Page 1 of 1 (latest)

buoyant plank
#

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?

wheat shardBOT
#

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

keen lantern
#

you can only use all modifyResult and others on crafting table recipes

buoyant plank
#

thanks. I see theres an event.custom that might work to change the output? I'm not super familiar with it.

#

hm... maybe not, actually.. Is there another way to possibly do logic to the output of a smithing table recipe?

wheat shardBOT
#

Ticket closed!

buoyant plank
#

Sorry, i know that isn't much help

#

I'll check my scripts later to verify

buoyant plank