UrsaMauris

storage

Mar 8th, 2019
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  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. local material = read()
  6. print("Kolik stacku?")
  7. local mnozstvi = read()
  8.  
  9. if material == "RG" or "rg" then
  10.     redstone.setBundledOutput("back", colors.blue)
  11.     sleep(2*tonumber(mnozstvi))
  12.     redstone.setBundledOutput("back", 0)
  13.  
  14. elseif
  15.  material == "BG" or "bg" then
  16.  redstone.setBundledOutput("back", colors.cyan)
  17.  sleep(2*tonumber(mnozstvi))
  18.  redstone.setBundledOutput("back", 0)
  19.  
  20. elseif
  21.  material == "D" or "d" then
  22.  redstone.setBundledOutput("back", colors.purple)
  23.  sleep(2*tonumber(mnozstvi))
  24.  redstone.setBundledOutput("back", 0)
  25. end
  26.  
  27. print(2*mnozstvi)
  28. sleep(2)
  29. term.clear()
  30. term.setCursorPos(1,1)
  31. end
Add Comment
Please, Sign In to add comment