Advertisement
Guest User

Stripmine

a guest
Feb 20th, 2020
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. -- Getting Coords
  2. print("What are my Coords?: ")
  3. io.write("X: ")
  4. CurrentX = tonumber(io.read())
  5. io.write("Z: ")
  6. CurrentZ = tonumber(io.read())
  7. print("What Are my Chest's Coords?: ")
  8. io.write("X: ")
  9. ChestX = tonumber(io.read())
  10. io.write("Z: ")
  11. ChestZ = tonumber(io.read())
  12. print("Which Direction am i facing?: ")
  13. CurrentDir = tonumber(io,read())
  14.  
  15. -- getting ready to strip mine
  16. print("How many Tunnels?: ")
  17. Tunnels = tonumber(io.read())
  18. CompletedTunnels = 0
  19. print("How long is each tunnels?: ")
  20. TunnelLength = tonumber(io,read())
  21. if     CurrentDir == 1 then
  22.  DestX = CurrentX - TunnelLength
  23. elseif CurrentDir == 2 then  
  24. end
  25. while CompletedTunnels ~= Tunnels do
  26.  
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement