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
- player = mech.getPlayerData(1, "remorsless") --get info on player
- print("Player at: X "..player.position.x.." Y "..player.position.y.." Z "..player.position.z) --print player location
- mech.goto(1, player.position.x + mechX, player.position.y + mechY, player.position.z + mechZ) --go to the position of player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement