SHARE
TWEET

startup

a guest May 24th, 2019 72 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. end
  26.  
  27. term.clear()
  28. term.setCursorPos(1,1)
  29. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top