Advertisement
osmarks

Untitled

Jun 7th, 2021
849
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local c = peripheral.find "nc_geiger_counter"
  2. local m = peripheral.wrap "top"
  3.  
  4. while true do
  5.     local lvl = c.getChunkRadiationLevel()
  6.     print(lvl)
  7.     m.transmit(3054, 3054, {"rads/" .. os.getComputerLabel(), "radiation level", "set", lvl})
  8.     sleep(1)
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement