Advertisement
Tatantyler

Turtle RPC Bindings

Oct 27th, 2012
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.73 KB | None | 0 0
  1. rpc.new("forward", "return turtle.forward()")
  2. rpc.new("turnLeft", "return turtle.turnLeft()")
  3. rpc.new("turnRight", "return turtle.turnRight()")
  4. rpc.new("back", "return turtle.back()")
  5. rpc.new("up", "return turtle.up()")
  6. rpc.new("down", "return turtle.down()")
  7. rpc.new("dig", "return turtle.dig()")
  8. rpc.new("digUp", "return turtle.digUp()")
  9. rpc.new("digDown", "return turtle.digDown()")
  10. rpc.new("place", "local args = {...} return turtle.place(args[1])")
  11. rpc.new("placeUp", "return turtle.placeUp()")
  12. rpc.new("placeDown", "return turtle.placeDown()")
  13. rpc.new("detect", "return turtle.detect()")
  14. rpc.new("detectUp", "return turtle.detectUp()")
  15. rpc.new("detectDown", "return turtle.detectDown()")
  16. rpc.new("compare", "return turtle.compare()")
  17. rpc.new("compareTo", "local args = {...} return turtle.compareTo(tonumber(args[1]))")
  18. rpc.new("compareUp", "return turtle.compareUp()")
  19. rpc.new("compareDown", "return turtle.compareDown()")
  20. rpc.new("suck", "return turtle.suck()")
  21. rpc.new("suckUp", "return turtle.suckUp()")
  22. rpc.new("suckDown", "return turtle.suckDown()")
  23. rpc.new("drop", "return turtle.drop()")
  24. rpc.new("craft", "return turtle.craft()")
  25. rpc.new("dropUp", "return turtle.dropUp()")
  26. rpc.new("dropDown", "return turtle.dropDown()")
  27. rpc.new("select", "local args = {...} return turtle.select(tonumber(args[1]))")
  28. rpc.new("getItemCount", "local args = {...} return turtle.getItemCount(tonumber(args[1]))")
  29. rpc.new("getItemSpace", "local args = {...} return turtle.getItemSpace(tonumber(args[1]))")
  30. rpc.new("refuel", "local args = {...} return turtle.refuel(tonumber(args[1]))")
  31. rpc.new("transferTo", "local args = {...} return turtle.transferTo(tonumber(args[1]), tonumber(args[2]))")
  32. rpc.new("getFuelLevel", "return turtle.getFuelLevel()")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement