Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. local iddesti = 0
  2. local turbine = peripheral.wrap("bottom")
  3. local data = {}
  4.  
  5. rednet.open("top")
  6.  
  7. while true do
  8. local p = 0
  9. if turbine.getActive() then p = 1 end
  10. data["active"] = p
  11. data["rotor"] = turbine.getRotorSpeed()
  12. data["energy"] = turbine.getEnergyProducedLastTick()
  13.  
  14. rednet.send(iddesti,textutils.serialize(data))
  15.  
  16. os.sleep(1)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement