Guest User

mobtoggle

a guest
Mar 24th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. local bCool = true
  2.  
  3.  
  4. rednet.open('top')
  5.  
  6.  
  7. while bCool == true do
  8.     local senderId, message, distance = rednet.receive()
  9.     if senderId ~= nil then
  10.         if message == 'on' then
  11.             if redstone.getOutput('bottom') == false then
  12.                 redstone.setOutput('bottom',true)
  13.             end
  14.         elseif message == 'off' then
  15.             if redstone.getOutput('bottom') == true then
  16.                 redstone.setOutput('bottom',false)
  17.             end
  18.         end
  19.     end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment