Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- print("Vitejte v automatizovane vydejne stavebnich materialu.")
- print("Stone = S, Glass = G, sandstone = SS, Dirt = D, red granite = RG, black granite = BG")
- print("Jaky material potrebujete?")
- local material = read()
- print("Kolik stacku?")
- local mnozstvi = read()
- if material == "RG" or "rg" then
- redstone.setBundledOutput("back", colors.blue)
- sleep(2*tonumber(mnozstvi))
- redstone.setBundledOutput("back", 0)
- elseif
- material == "BG" or "bg" then
- redstone.setBundledOutput("back", colors.cyan)
- sleep(2*tonumber(mnozstvi))
- redstone.setBundledOutput("back", 0)
- elseif
- material == "D" or "d" then
- redstone.setBundledOutput("back", colors.purple)
- sleep(2*tonumber(mnozstvi))
- redstone.setBundledOutput("back", 0)
- end
- print(2*mnozstvi)
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- end
Add Comment
Please, Sign In to add comment