import crafttweaker.item.IItemStack; var items as IItemStack[] = loadedMods["adchimneys"].items; function changeRecipe(item as IItemStack) as bool { // do not apply function to these items if (item.definition.id == .definition.id) return false; if (item.damage != 0) return false; var pump as IItemStack = item.definition.makeStack(2); var vent as IItemStack = item.definition.makeStack(1); recipes.remove(pump); recipes.addShaped( pump, [ [vent, , vent], [, , ], [vent, , vent] ] ); return true; } for i, item in items { changeRecipe(item); }