Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("Welcome To tele helper 1.2")
- print("Side?: ")
- local side=io.read()
- local t=peripheral.wrap( side )
- local x,y,z=t.getTargetCoordinates()
- local tx,ty,tz
- local input
- local function status()
- print(" ")
- x,y,z=t.getTargetCoordinates()
- print("Current Status: ")
- print("EU Stored: "..t.getEnergyLevel())
- print("Lock?: "..tostring(t.hasLock()))
- print("Target: "..x.." "..y.." "..z)
- print("Freq: "..t.getFrequency())
- print(" ")
- end
- local function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- print(" ")
- print("Please Input Position: ")
- print("X: ")
- tx=io.read()
- print("Y: ")
- ty=io.read()
- print("Z: ")
- tz=io.read()
- t.setTargetCoordinates(tx, ty, tz)
- print(" ")
- print(" ")
- print("Lock?: ")
- input=io.read()
- if input=="yes" then
- t.acquireLock()
- print("Locked?: "..tostring(t.hasLock()))
- print("Strength: "..getLockStrength())
- else
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement