Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print (" ")
- while true do
- term.clear()
- term.setTextColor( colors.magenta )
- print(" Bonjour")
- print (" ")
- term.setTextColor( colors.orange )
- print (" Veuillez insΓ©rer 1 Coin")
- term.setTextColor( colors.white )
- print (" Dans le premier slot")
- print ("Pour utiliser la fonderie pendant 50sec")
- local details = turtle.getItemDetail(1)
- os.sleep(1)
- if details then
- if details.name == "thermalfoundation:coin" then
- if details.count > 0 then
- term.clear()
- term.setTextColor( colors.orange )
- print(" Merci , bonne utilisation ")
- turtle.select(1)
- turtle.drop(1)
- local i = 1
- repeat
- rs.setOutput("bottom",true)
- os.sleep(5.0)
- rs.setOutput("bottom",false)
- os.sleep(0.1)
- i = i + 1
- until i == 17
- else
- term.setTextColor( colors.red )
- print(" Pas assez de Coin !")
- end
- end
- end
- end
- os.sleep(1)
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement