This does have better implimentations, check itemBehaviors, or behe bot, or blacksmith bot :)