Advertisement
Guest User

excavatorPocket.lua

a guest
Mar 23rd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. --Variables
  2.   local TunnelLenght = 0
  3.  
  4. --Functions
  5.   init = function()
  6.     TunnelLenght = 0
  7.     term.clear()
  8.     term.setCursorPos(1,1)
  9.     print("Enter tunnel lenght:")
  10.     TunnelLenght = read()
  11.     rednet.open("back")
  12.     rednet.host("excavatorCom","excavatorServer")
  13.     rednet.broadcast(TunnelLenght,"excavatorCom")
  14.   end
  15. --Main stuff
  16.   init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement