1
0
mirror of https://github.com/osmarks/random-stuff synced 2024-12-28 19:10:35 +00:00
random-stuff/computercraft/geiger.lua
2023-11-13 19:37:05 +00:00

9 lines
269 B
Lua

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