Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Programme--
- idRednet = 1799
- rednet.open("back")
- while true do
- id, message = rednet.receive()
- if id == idRednet and message == "GhastOn" then
- redstone.setBundledOutput("bottom", colors.black)
- sleep(1)
- redstone.setBundledOutput("bottom", colors.red)
- end
- if id == idRednet and message == "WitchOn" then
- redstone.setBundledOutput("bottom", colors.black)
- sleep(1)
- redstone.setBundledOutput("bottom", colors.yellow)
- end
- if id == idRednet and message == "ZombieOn" then
- redstone.setBundledOutput("bottom", colors.black)
- sleep(1)
- redstone.setBundledOutput("bottom", colors.white)
- end
- if id == idRednet and message == "VillagerOn" then
- redstone.setBundledOutput("bottom", colors.black)
- sleep(1)
- redstone.setBundledOutput("bottom", colors.orange)
- end
- if id == idRednet and message == "GolemOn" then
- redstone.setBundledOutput("bottom", colors.black)
- sleep(1)
- redstone.setBundledOutput("bottom", colors.magenta)
- end
- if id == idRednet and message == "Restart" then
- redstone.setBundledOutput("bottom", colors.black)
- sleep(1)
- redstone.setBundledOutput("bottom", 0)
- sleep(1)
- redstone.setBundledOutput("bottom", colors.black)
- sleep(1)
- redstone.setBundledOutput("bottom", 0)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement