Advertisement
william200027

SpawnerMe

Jun 27th, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.22 KB | None | 0 0
  1. --Programme--
  2.  
  3. idRednet = 1799
  4.  
  5. rednet.open("back")
  6.  
  7. while true do
  8.  
  9. id, message = rednet.receive()
  10.  
  11. if id == idRednet and message == "GhastOn" then
  12.  redstone.setBundledOutput("bottom", colors.black)
  13.  sleep(1)
  14.  redstone.setBundledOutput("bottom", colors.red)
  15. end
  16. if id == idRednet and message == "WitchOn" then
  17.  redstone.setBundledOutput("bottom", colors.black)
  18.  sleep(1)
  19.  redstone.setBundledOutput("bottom", colors.yellow)
  20. end
  21. if id == idRednet and message == "ZombieOn" then
  22.  redstone.setBundledOutput("bottom", colors.black)
  23. sleep(1)
  24.  redstone.setBundledOutput("bottom", colors.white)
  25. end
  26. if id == idRednet and message == "VillagerOn" then
  27.  redstone.setBundledOutput("bottom", colors.black)
  28.  sleep(1)
  29.  redstone.setBundledOutput("bottom", colors.orange)
  30. end
  31. if id == idRednet and message == "GolemOn" then
  32.  redstone.setBundledOutput("bottom", colors.black)
  33.  sleep(1)
  34.  redstone.setBundledOutput("bottom", colors.magenta)
  35. end
  36. if id == idRednet and message == "Restart" then
  37.  redstone.setBundledOutput("bottom", colors.black)
  38.  sleep(1)
  39.  redstone.setBundledOutput("bottom", 0)
  40.  sleep(1)
  41.  redstone.setBundledOutput("bottom", colors.black)
  42.  sleep(1)
  43.  redstone.setBundledOutput("bottom", 0)
  44.  os.reboot()
  45.  
  46. end
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement