kreezxil

Select

May 14th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2. Select
  3. meant to be used in conjunction with inline
  4. batching commands. Exposes the ability to select
  5. a slot to the command line.
  6.  
  7. Changelog:
  8. 5/14/2017 Initial Design by Kreezxil
  9. --]]
  10.  
  11. local tArgs = {...}
  12.  
  13. local slot = tonumber(tArgs[1])
  14.  
  15. if slot == nil or slot < 1 or slot > 16 then
  16.   print("Please you must choose a slot number")
  17.   return
  18. end
  19.  
  20. turtle.select(slot)
Add Comment
Please, Sign In to add comment