Advertisement
Guest User

MoveBack.lua

a guest
Dec 6th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. rednet.open("top")
  2. redstone.setOutput("bottom", false)
  3.  
  4. while true do
  5.     id, message = rednet.receive()
  6.    
  7.     if id==1 and message=="B" then
  8.         write("Moving...")
  9.         redstone.setOutput("bottom", true)
  10.         sleep(.5)
  11.         redstone.setOutput("bottom", false)
  12.     end
  13.    
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement