Should be possible, whip up a function that checks for the existance of the item in some way and returns the item (searching X tiles around the player for the item, or something along those lines. PoraComp mop actions does something similar and would be a good way to see how it’s done. ) Then just rewrite the item.type attribute to whatever item you want it replaced with.