Advertisement
nauseant

potato chef

Apr 30th, 2024 (edited)
724
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. function inventoryCheck()
  2.     if peripheral.hasType("top", "inventory") then
  3.             return true
  4.     else
  5.         print("No storage above turtle :( Goodbye")
  6.         return false
  7.     end
  8. end
  9.  
  10. function main()
  11.     print("penits")
  12.     os.sleep(1)
  13. end
  14.  
  15. while inventoryCheck() == true do
  16.     main()
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement