function getWater() turtle.placeDown() end function getMilk() turtle.place() end while true do if redstone.getAnalogInput("left") == 10 then while redstone.getAnalogInput("left") > 0 do os.sleep(0.05) end turtle.craft() elseif redstone.getAnalogInput("left") == 9 then while redstone.getAnalogInput("left") > 0 do os.sleep(0.05) end getWater() elseif redstone.getAnalogInput("left") == 8 then while redstone.getAnalogInput("left") > 0 do os.sleep(0.05) end getMilk() end os.sleep(0.05) end