From 3ab742484740d257d147ea2640f986356f67e407 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 1 Apr 2024 22:47:43 +0100 Subject: launch echest --- echest.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3