Advertisement
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?")
- material = read()
- print("Kolik stacku?")
- mnozstvi = read()
- if material == "rg" then
- redstone.setBundledOutput("back", colors.blue)
- sleep(2*tonumber(mnozstvi))
- redstone.setBundledOutput("back", 0)
- elseif
- material == "bg" then
- redstone.setBundledOutput("back", colors.cyan)
- sleep(2*tonumber(mnozstvi))
- redstone.setBundledOutput("back", 0)
- elseif
- material == "d" then
- redstone.setBundledOutput("back", colors.purple)
- sleep(2*tonumber(mnozstvi))
- redstone.setBundledOutput("back", 0)
- end
- term.clear()
- term.setCursorPos(1,1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement