summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-01 22:31:51 +0100
committerubq323 <ubq323@ubq323.website>2024-04-01 22:31:51 +0100
commitb0cc0c1d0d4350c9957bb9c4ae0ed80c126c216c (patch)
tree2c68248d8ebe1afbdd5ab1e401622c36909c69eb
parentaa682065c263b936cab1d30055993072093525ab (diff)
launch echest
-rw-r--r--echest.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/echest.lua b/echest.lua
index b115323..1b84a75 100644
--- a/echest.lua
+++ b/echest.lua
@@ -25,10 +25,13 @@ local p = assert((peripheral.find"ender_storage"))
-- end
for x=0,15 do for y=0,15 do for z=0,15 do
- print(x,y,z)
+ term.clearLine()
+ local _,line = term.getCursorPos()
+ term.setCursorPos(1,line)
+ io.write(("%d %d %d "):format(x,y,z))
p.setFrequency(2^x, 2^y, 2^z)
local name = p.getName()
if name ~= nil then
- print(x,y,z,name)
+ print(name)
end
end end end