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 2 GoldenNugets")
- term.setTextColor( colors.gray )
- print (" Dans le premier slot")
- print (" Pour acheter vos 16 Betteraves")
- local details = turtle.getItemDetail(1)
- os.sleep(1)
- if details then
- if details.name == "minecraft:gold_nugget" then
- if details.count > 1 then
- term.clear()
- term.setTextColor( colors.orange )
- print(" Merci pour votre achat ")
- turtle.select(1)
- turtle.drop(2)
- local i = 1
- repeat
- rs.setOutput("bottom",true)
- os.sleep(0.1)
- rs.setOutput("bottom",false)
- os.sleep(0.1)
- i = i + 1
- until i == 17
- else
- term.setTextColor( colors.red )
- print(" Pas assez d'OR !")
- end
- end
- end
- end
- os.sleep(1)
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement