Advertisement
sondrex76

Rightclick loop computercraft lua program

Apr 9th, 2023
1,020
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. -- ask user for x
  2. print("Enter the number of ticks between right clicks:")
  3. local x = tonumber(read())
  4.  
  5. -- main loop
  6. while true do
  7.   -- wait for x ticks
  8.   os.sleep(x)
  9.   -- right click with equipped item
  10.   turtle.place()
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement