Advertisement
legolego19

Coin

Apr 28th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. print (" ")
  2. while true do
  3. term.clear()
  4. term.setTextColor( colors.magenta )
  5. print(" Bonjour")
  6. print (" ")
  7. term.setTextColor( colors.orange )
  8. print (" Veuillez insΓ©rer 1 Coin")
  9. term.setTextColor( colors.white )
  10. print (" Dans le premier slot")
  11. print ("Pour utiliser la fonderie pendant 50sec")
  12.  
  13. local details = turtle.getItemDetail(1)
  14.  
  15. os.sleep(1)
  16.  
  17. if details then
  18. if details.name == "thermalfoundation:coin" then
  19. if details.count > 0 then
  20. term.clear()
  21. term.setTextColor( colors.orange )
  22. print(" Merci , bonne utilisation ")
  23. turtle.select(1)
  24. turtle.drop(1)
  25. local i = 1
  26. repeat
  27. rs.setOutput("bottom",true)
  28. os.sleep(5.0)
  29. rs.setOutput("bottom",false)
  30. os.sleep(0.1)
  31. i = i + 1
  32. until i == 17
  33. else
  34. term.setTextColor( colors.red )
  35. print(" Pas assez de Coin !")
  36. end
  37. end
  38. end
  39. end
  40. os.sleep(1)
  41. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement