Advertisement
UrsaMauris

warehouse 1.0

May 24th, 2019
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2. print("Vitejte v automatizovane vydejne stavebnich materialu.")
  3. print("Stone = s, Glass = g, sandstone = ss, Dirt = d, red granite = rg, black granite = bg")
  4. print("Jaky material potrebujete?")
  5. material = read()
  6. print("Kolik stacku?")
  7. mnozstvi = read()
  8.  
  9. if material == "rg" then
  10.     redstone.setBundledOutput("back", colors.blue)
  11.     sleep(2*tonumber(mnozstvi))
  12.     redstone.setBundledOutput("back", 0)
  13.  
  14. elseif
  15.  material == "bg" then
  16.  redstone.setBundledOutput("back", colors.cyan)
  17.  sleep(2*tonumber(mnozstvi))
  18.  redstone.setBundledOutput("back", 0)
  19.  
  20. elseif
  21.  material == "d" then
  22.  redstone.setBundledOutput("back", colors.purple)
  23.  sleep(2*tonumber(mnozstvi))
  24.  redstone.setBundledOutput("back", 0)
  25.  
  26. elseif
  27.  material == "ss" then
  28.  redstone.setBundledOutput("back", colors.lime)
  29.  sleep(1*tonumber(mnozstvi))
  30.  redstone.setBundledOutput("back", 0)
  31.  
  32. elseif
  33.  material == "s" then
  34.  redstone.setBundledOutput("back", colors.orange)
  35.  sleep(1*tonumber(mnozstvi))
  36.  redstone.setBundledOutput("back", 0)
  37.  
  38. elseif
  39.  material == "g" then
  40.  redstone.setBundledOutput("back", colors.yellow)
  41.  sleep(1*tonumber(mnozstvi))
  42.  redstone.setBundledOutput("back", 0)
  43. end
  44.  
  45.  
  46. term.clear()
  47. term.setCursorPos(1,1)
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement