Drunkmonkey

Computer craft/Tinkers Construct Auto pour *WORKING*

Jan 27th, 2021 (edited)
922
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Version 0.6--
  2. print("What side is the spout on?")
  3. side=read()
  4.  
  5.     while true do
  6.         print("NO CAPITALS")
  7.         print("How many block's are you smelting? Make sure its a number.")
  8.         blocks=tonumber(read())
  9.         print("What are you smelting?")
  10.         input = { gold = 15, iron = 35, bronze = 25, aluminum = 20, copper = 30, lead = 23, stone = 10, cobalt = 45, tin = 16}
  11.         time = input[io.read()]
  12.         doneIn=(time * blocks) / 60
  13.         print("It will take: " .. doneIn .. " Minutes to complete")
  14.         sleep(2)
  15.         print("Starting..")
  16.         sleep(2)
  17.  
  18.         for i=1, blocks do
  19.             redstone.setOutput(side, true)
  20.             sleep(1)
  21.             redstone.setOutput(side, false)
  22.             print("Number " .. i .. " Pouring")
  23.             sleep(time-1)
  24.             term.setBackgroundColor(colours.black)
  25.             term.clear()
  26.             term.setCursorPos(1,1)
  27.         end
  28.     end
  29.  
RAW Paste Data