Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local iddesti = 0
- local turbine = peripheral.wrap("bottom")
- local data = {}
- rednet.open("top")
- while true do
- local p = 0
- if turbine.getActive() then p = 1 end
- data["active"] = p
- data["rotor"] = turbine.getRotorSpeed()
- data["energy"] = turbine.getEnergyProducedLastTick()
- rednet.send(iddesti,textutils.serialize(data))
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement