Ferruccioboss

Minecraft>BaseEmergency

Jun 1st, 2015
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. rednet.open("right")
  2. local tmp = false
  3. while true do
  4.         event, id, text = os.pullEvent()
  5.         if event == "redstone" then
  6.         if redstone.getInput("bottom") and tmp == false then
  7.             tmp = true
  8.             redstone.setOutput("left", true)
  9.             rednet.send(24, "alarm-on")
  10.         elseif redstone.getInput("back") then
  11.             rednet.send(24, "ready-button")
  12.         end
  13.         elseif event == "rednet_message" then
  14.         if id == 24 and text == "alarm-off" and tmp == true then
  15.             redstone.setOutput("left", false)
  16.             tmp = false
  17.         end
  18.     end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment