Advertisement
MrHG

Untitled

Feb 24th, 2024 (edited)
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. -- Function to dig down until bedrock is reached
  2. os.loadAPI("t")
  3.  
  4. local function digToBedrock()
  5. while t.digDown() do
  6. t.down()
  7. t.right()
  8. t.dig()
  9. t.forward()
  10. t.digUp()
  11. end
  12. end
  13.  
  14. -- Main function to start digging
  15. local function main()
  16. -- Dig down until bedrock is reached
  17. digToBedrock()
  18. end
  19.  
  20. -- Call the main function to start digging
  21. main()
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement