Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pa--Avant tout chose placer bone meal slot 2 , les seeds and co dans les slots 1,5,9,13 correpondant à leurs noms puis remplir les slots 6,7,8,10,11,12,14,15 avec de la bouse ne pas oublier le sceau d eau dans la slot 16 ,Merci et bonne utilisation !
- local slot = 0
- local carrot = "carrot"
- local wheat = "wheat"
- local cocoa_beans = "cocoa_beans"
- local potatoes = "potatoes"
- print("Veuillez entrez une semence")
- local input = read()
- if input == carrot then
- slot = 5
- elseif input == wheat then
- slot = 1
- elseif input == cocoa_beans then
- slot = 9
- elseif input == potatoes then
- slot = 13
- else
- print("Choix incorrect veuillez recommencer")
- end
- while true do
- turtle.select(slot)
- turtle.place()
- turtle.select(2)
- for i=1,3 do
- turtle.place()
- if turtle.getItemCount(2) == 0 then --si plus de bone meal
- turtle.suckDown() --on fait le plein dans le coffre sous la turtle
- end
- end
- turtle.select(16)
- turtle.placeUp()
- sleep(0.2)
- turtle.placeUp()
- turtle.select(slot)
- turtle.suck() --on recupere les items
- turtle.select(3)
- turtle.turnLeft()
- turtle.drop() --on vide dans le coffre de devant
- turtle.select(4)
- turtle.drop() --idem
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment