Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --http://www.youtube.com/watch?v=Eq27GOX71TU
- mech = peripheral.wrap("right") --attach robot controller
- mechX, mechY, mechZ = mech.getLocation(1) --assign the mechs coordinates to variables
- print("x: "..mechX.." y: "..mechY.." z: "..mechZ) -- print mech location
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement