summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-01 22:47:43 +0100
committerubq323 <ubq323@ubq323.website>2024-04-01 22:47:43 +0100
commit3ab742484740d257d147ea2640f986356f67e407 (patch)
tree009dd0bb9a21ce8f028ca7cd593c797bf94d7e30
parent252763388529179d9ca44a80a9f1fd5788088da9 (diff)
launch echest
-rw-r--r--echest.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/echest.lua b/echest.lua
index 025d031..681bcc5 100644
--- a/echest.lua
+++ b/echest.lua
@@ -24,6 +24,8 @@ local p = assert((peripheral.find"ender_storage"))
-- end
-- end
+local fp = assert(fs.open("/efreq.list","w"))
+
for x=0,15 do for y=0,15 do for z=0,15 do
term.clearLine()
local _,line = term.getCursorPos()
@@ -32,6 +34,8 @@ for x=0,15 do for y=0,15 do for z=0,15 do
p.setFrequency(2^x, 2^y, 2^z)
local name = p.getName()
if name ~= nil then
- print(name)
+ fp.writeLine(("%d %d %d : %s"):format(x,y,z,name))
+ fp.flush()
end
end end end
+fp.close()