Advertisement
Guest User

startup.lua

a guest
Jun 7th, 2021
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  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/base", "radiation level in main base", "set", lvl})
  8.     sleep(1)
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement