Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Automatische Ein und Aus-Lagerung 0.1 CC1.31 by Willfrieden 09.04.12
- msg = print("Automatische Ein und Aus-Lagerung 0.1 CC1.31 by Willfrieden 09.04.12")
- redstone.setBundledOutput("top", colors.black, true)
- sleep(3)
- term.clear()
- term.setCursorPos(1,1)
- print("---------------- Bestell menu -------------------")
- print("| |")
- print("| Redstone [r] | Diamond [d] |")
- print("| Coal [c] | Gold [g] |")
- print("| Larpes [l] | Iron [i] |")
- print("| Copper [cr] | Tin [t] |")
- print("| RE Iron [ri] | Glas [g] |")
- print("| RF Glas [rg] | RF Stone [rs] |")
- print("| Sand [s] | Wood [w] |")
- print("| Gras [gs] | Profit [p] |")
- print("| |")
- print("-------------------------------------------------")
- redstone.setBundledOutput("top", 0)
- t = io.read()
- if t == "r" then
- print("Gewünschte Menge ?: ")
- input = io.read()
- a = input * 5
- b = input
- print(b, " Redstone werden Geliefert.")
- redstone.setBundledOutput("back", colors.red)
- sleep(a)
- redstone.setBundledOutput("back", 0)
- sleep(1)
- elseif t == "c" then
- print("Gewünschte Menge ?: ")
- input = io.read()
- a = input * 5
- b = input
- print(b, " Kohle wird Geliefert.")
- redstone.setBundledOutput("back", colors.green)
- sleep(a)
- redstone.setBundledOutput("back", 0)
- sleep(1)
- elseif t == "l" then
- print("Gewünschte Menge ?: ")
- input = io.read()
- a = input * 5
- b = input
- print(b, " Larpes Lazuli wird Geliefert.")
- redstone.setBundledOutput("back", colors.brown)
- sleep(a)
- redstone.setBundledOutput("back", 0)
- sleep(1)
- elseif t == "cr" then
- print("Gewünschte Menge ?: ")
- input = io.read()
- a = input * 5
- b = input
- print(b, " Kupfer wird Geliefert.")
- redstone.setBundledOutput("back", colors.blue)
- sleep(a)
- redstone.setBundledOutput("back", 0)
- sleep(1)
- elseif t == "ri" then
- print("Gewünschte Menge ?: ")
- input = io.read()
- a = input * 5
- b = input
- print(b, " Re Eisen wird Geliefert")
- redstone.setBundledOutput("back", colors.purple)
- sleep(a)
- redstone.setBundledOutput("back", 0)
- sleep(1)
- elseif t == "rg" then
- print("Gewünschte Menge ?: ")
- input = io.read()
- a = input * 5
- b = input
- print(b, " Rf Glass wird Geliefert.")
- redstone.setBundledOutput("back", colors.cyan)
- sleep(a)
- redstone.setBundledOutput("back", 0)
- sleep(1)
- elseif t == "s" then
- print("Gewünschte Menge ?: ")
- input = io.read()
- a = input * 5
- b = input
- print(b, " Sand wird Geliefert.")
- redstone.setBundledOutput("back", colors.lightGray)
- sleep(a)
- redstone.setBundledOutput("back", 0)
- sleep(1)
- elseif t == "gs" then
- print("Gewünschte Menge ?: ")
- input = io.read()
- a = input * 5
- b = input
- print(b, " Gras Block wird Geliefert.")
- redstone.setBundledOutput("back", colors.gray)
- sleep(a)
- redstone.setBundledOutput("back", 0)
- sleep(1)
- elseif t == "d" then
- print("Gewünschte Menge ?: ")
- input = io.read()
- a = input * 5
- b = input
- print(b, " Diamant wird Geliefert")
- redstone.setBundledOutput("back", colors.pink)
- sleep(a)
- redstone.setBundledOutput("back", 0)
- sleep(1)
- elseif t == "g" then
- print("Gewünschte Menge ?: ")
- input = io.read()
- a = input * 5
- b = input
- print(b, " Gold wird Geliefert.")
- redstone.setBundledOutput("back", colors.lime)
- sleep(a)
- redstone.setBundledOutput("back", 0)
- sleep(1)
- elseif t == "i" then
- print("Gewünschte Menge ?: ")
- input = io.read()
- a = input * 5
- b = input
- print(b, " Eisen wird Geliefert.")
- redstone.setBundledOutput("back", colors.yellow)
- sleep(a)
- redstone.setBundledOutput("back", 0)
- sleep(1)
- elseif t == "t" then
- print("Gewünschte Menge ?: ")
- input = io.read()
- a = input * 5
- b = input
- print(b, " Zin wird Geliefert")
- redstone.setBundledOutput("back", colors.lightBlue)
- sleep(a)
- redstone.setBundledOutput("back", 0)
- sleep(1)
- elseif t == "gl" then
- print("Gewünschte Menge ?: ")
- input = io.read()
- a = input * 5
- b = input
- print(b, " Glass wird Geliefert")
- redstone.setBundledOutput("back", colors.magenta)
- sleep(a)
- redstone.setBundledOutput("back", 0)
- sleep(1)
- elseif t == "rs" then
- print("Gewünschte Menge ?: ")
- input = io.read()
- a = input * 5
- b = input
- print(b, " Rf Stein wird Geliefert.")
- redstone.setBundledOutput("back", colors.orange)
- sleep(a)
- redstone.setBundledOutput("back", 0)
- sleep(1)
- elseif t == "w" then
- print("Gewünschte Menge ?: ")
- input = io.read()
- a = input * 5
- b = input
- print(b, " Holz wird Geliefert.")
- redstone.setBundledOutput("back", colors.white)
- sleep(a)
- redstone.setBundledOutput("back", 0)
- sleep(1)
- elseif t == "p" then
- print("---------------- Bestell menu -------------------")
- print("| |")
- print("| Redstone [r] | Diamond [d] |")
- print("| Coal [c] | Gold [g] |")
- print("| Larpes [l] | Iron [i] |")
- print("| Copper [cr] | Tin [t] |")
- print("| RE Iron [ri] | Glas [g] |")
- print("| RF Glas [rg] | RF Stone [rs] |")
- print("| Sand [s] | Wood [w] |")
- print("| Gras [gs] | Profit [p] |")
- print("| |")
- print("-------------------------------------------------")
- else
- print("DU hast was falsches eingegeben.")
- end
Advertisement
Add Comment
Please, Sign In to add comment