TheGameBoy_95

Untitled

May 21st, 2019
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. os.loadAPI("ocs/apis/sensor")
  2. local sense = sensor.wrap("top") --replace top with actual side
  3.  
  4. while true do
  5. --get reactor data
  6. local reactorData = sense.getTargetDetails("-1,4,-3") --replace coordinates with actual coordinates.
  7. --you can use sensorview to figure out what you need to index in the details table
  8. print(reactorData.Heat)
  9. sleep(0.5)
  10. end
Add Comment
Please, Sign In to add comment