Advertisement
legolego19

Untitled

Jul 18th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 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.gray )
  10. print (" Dans le premier slot")
  11. print ("Pour utiliser nos services de transport")
  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 d'avoir choisit ")
  23. print(" notre service de transport !")
  24. turtle.select(1)
  25. turtle.drop(1)
  26. rs.setOutput("bottom",true)
  27. os.sleep(1)
  28. rs.setOutput("bottom",false)
  29. os.sleep(6)
  30. else
  31. term.setTextColor( colors.red )
  32. print(" Pas assez de Coin !")
  33. end
  34. end
  35. end
  36. end
  37. os.sleep(1)
  38. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement