Advertisement
Drunkmonkey

Cobblestone Generator v0.1

Mar 15th, 2022
1,154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.97 KB | None | 0 0
  1. print("What side is the spout on?")
  2. print("Options: front, back, left, right, top, bottom")
  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 = 20, 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement