diff options
-rw-r--r-- | echest.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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() |