Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chatBox = peripheral.find("chatBox")
- function mailAlert()
- redstone.setOutput("right", true)
- chatBox.sendMessageToPlayer("§bYou've got mail! Check your enderchest.", "eruptingtiger", "Mailman", "[]")
- sleep(1)
- redstone.setOutput("right", false)
- chatBox.sendMessageToPlayer("§eShannon has not checked her mail yet.", "TechManDylan", "Mailman", "[]")
- end
- term.clear()
- term.setCursorPos(1,1)
- print("Starting Mail Alert Program")
- while true do
- if redstone.getInput("left") then
- mailAlert()
- sleep(60)
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement