Advertisement
MigasRocha

Redstone Switch

Dec 27th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. rednet.open("left")
  2. while true do
  3.    
  4.   local sender, message, protocol = rednet.receive()
  5.     if message == "Ligar" then
  6.         redstone.setOutput("front", true)
  7.         end
  8.     if message == "Desligar" then
  9.         redstone.setOutput("front", false)
  10.         end
  11.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement