Advertisement
legg0028

frostmaw_spawn_receive

Jul 26th, 2021
1,006
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. local modem = peripheral.wrap("bottom")
  2. modem.open(00001)
  3.  
  4. redstone.setOutput("left",false)
  5.  
  6. while true do
  7.     local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
  8.  
  9.     if message == "1" then
  10.         redstone.setOutput("left",true)
  11.     else
  12.         redstone.setOutput("left",false)
  13.     end
  14.     sleep(1)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement