Advertisement
Guest User

startup

a guest
Oct 18th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. local farbe
  2. print("Bitte geben sie das Ziel an. Es gibt folgende Ziele")
  3. print("Walddorf, Saalbach, Snowpoint, Redtown, Muehlhafen")
  4. print("Das Ziel muss genau eingegeben werden")
  5. local ziel = read()
  6. if (ziel == Walddorf) then
  7.   farbe = colors.white
  8. elseif (ziel == Saalbach) then
  9.   farbe = colors.lightBlue
  10. elseif (ziel == Snowpoint) then
  11.   farbe = colors.orange
  12. elseif (ziel == Redtown) then
  13.   farbe = colors.magenta
  14. elseif (ziel == Muehlhafen) then
  15.   farbe = colors.yellow
  16. else
  17.   print("Falsche eingabe. System neustart")
  18.   end
  19.  
  20. print("Sie haben 20 sekunden um zum Teleporter zu kommen")
  21. sleep(20)
  22. redstone.setBundledOutput("back", farbe)
  23. sleep(1)
  24. redstone.setBundledOutput("back", 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement