local blocks = 1 local total = 0 function report () --print(os.getComputerLabel() .. " has measured " .. blocks .. " blocks.") total = blocks blocks = 1 return total end function forward () while turtle.forward() do blocks = blocks + 1 end for i = 1, blocks - 1, 1 do turtle.back() end return report() end function right() turtle.turnRight() forward() return report() end function left() turtle.turnLeft() forward() return report() end function up() while turtle.up() do blocks = blocks + 1 end for i = 1, blocks - 1, 1 do turtle.down() end return report() end function down() while turtle.down() do blocks = blocks + 1 end for i = 1, blocks - 1, 1 do turtle.up() end return report() end function back() while turtle.back() do blocks = blocks + 1 end for i = 1, blocks - 1, 1 do turtle.forward() end return report() end

measureapi #gjdh0p

zachdyerMeasure Distance 3.0


Installation Instructions

Step 1

Install our market:

pastebin get w1RtfqFd market

The HTTP API must be enabled.

Step 2

Pull down the file:

market get gjdh0p measureapi y
*y = override file

Step 3

Profit! Run file:

measureapi

View Code Download (1,012 bytes)