Advertisement
MaT-PT

Turtle: Market Villager

May 1st, 2025 (edited)
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | Gaming | 0 0
  1. print("Starting...")
  2.  
  3. while true do
  4.     dug, reason = turtle.dig()
  5.     if not dug then
  6.         print("Error:", reason)
  7.     end
  8.    
  9.     while not redstone.getInput("back") do
  10.         os.pullEvent("redstone")
  11.     end
  12.  
  13.     placed, reason = turtle.place()
  14.     if not placed then
  15.         print("Error:", reason)
  16.     end
  17.  
  18.     sleep(10)
  19. end
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement