Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local laser = peripheral.find("warpdriveLaser")
- laser.beamFrequency(1420)
- local Tx = -1
- local Ty = -1
- --local Tz = -1
- while true do
- laser.emitBeam(Tx, Ty, -1)
- local type, x, y, z, block = laser.getScanResult()
- if type == "BLOCK" then
- print(block, x, y, z)
- end
- Ty = Ty+0.1
- if Ty > 1 then
- Ty = -1
- Tx = Tx+0.1
- end
- if Tx == 1 and Ty == 1 then
- exit()
- end
- os.sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement