diff options
author | ubq323 <ubq323@ubq323.website> | 2024-04-01 22:47:43 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-04-01 22:47:43 +0100 |
commit | 3ab742484740d257d147ea2640f986356f67e407 (patch) | |
tree | 009dd0bb9a21ce8f028ca7cd593c797bf94d7e30 | |
parent | 252763388529179d9ca44a80a9f1fd5788088da9 (diff) |
launch echest
-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() |