daily pastebin goal
8%
SHARE
TWEET

FloorReporting

a guest Mar 25th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("bottom")
  2. local function getfloor()
  3.   local data = rs.getBundledInput("back")
  4.   local floorF = (math.log10(data)/math.log10(2))+1
  5.   return floorF
  6. end
  7.  
  8. while true do
  9.   rednet.broadcast(getfloor(), "ElevatorFloor")
  10.   os.sleep(0.10)
  11. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top