local args = {...} local count if args[1] == nil then count = 1 else count = tonumber(args[1]) end turtle.craft(count)