OfficialStamper

botAltar.lua

Feb 4th, 2023
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | Gaming | 0 0
  1. local slots
  2. local t = turtle
  3.  
  4. if #arg > 1 then
  5.     slots = arg[1]
  6. else
  7.     slots = 5
  8. end
  9.  
  10. print('Running slots: '..slots.." (3-"..slots+2..")")
  11.  
  12. for i = 3 to slots do
  13.     t.drop(1)
  14. end
  15.  
  16. repeat
  17.     print('Redstone: '..rs.getAnalogInput('front'))
  18.     os.sleep(1)
  19. until (rs.getAnalogInput('front') > 1)
  20.  
  21. t.up()
  22. t.select(2)
  23. t.drop(1)
  24. t.down()
  25. t.select(1)
  26. t.place()
  27.  
Add Comment
Please, Sign In to add comment