1
0
mirror of https://github.com/osmarks/random-stuff synced 2024-12-29 11:30:35 +00:00
random-stuff/computercraft/geiger.lua

9 lines
269 B
Lua
Raw Normal View History

2023-11-13 19:37:05 +00:00
local c = peripheral.find "nc_geiger_counter"
local m = peripheral.wrap "top"
while true do
local lvl = c.getChunkRadiationLevel()
print(lvl)
m.transmit(3054, 3054, {"rads/" .. os.getComputerLabel(), "radiation level", "set", lvl})
sleep(1)
end