Advertisement
ccraftersanonmoose

pocketPC

Mar 2nd, 2023
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | Gaming | 0 0
  1. -- Script to use pocketPC from CCTweaked/ComputerCraft to control a turle
  2. -- written by craftersanonmoose
  3. -- version history
  4. -- version 0.1 3-2-23
  5. -- basic wasd controls for now
  6. -- wanting to add other predefined commands on turtles end as well
  7. -------------------------------------------
  8.  
  9. rednet.open("back")
  10.  
  11. event, commandChar = os.pullEvent("char")
  12.  
  13. function sendCommand()
  14.     rednet.send(19, commandChar)
  15. end
  16.  
  17. while true do
  18.     sendCommand()
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement