Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local iron = "iron"
- local gold = "gold"
- local diamond = "diamond"
- local slot=3
- function Resultat()
- turtle.select(2)
- turtle.suckUp()
- turtle.drop()
- end
- function EnderPearlToIron()
- turtle.select(2)
- turtle.suckDown()
- turtle.select(16)
- for i=1,16 do
- turtle.craft()
- turtle.dropUp()
- end
- end
- function IronToGold()
- turtle.select(2)
- turtle.suckUp()
- for i=1,7 do
- turtle.transferTo(slot, 8)
- slot = slot+1
- if slot == 4 or slot == 8 then
- slot = slot+1
- end
- end
- turtle.select(16)
- for i=1,8 do
- turtle.craft()
- turtle.dropUp()
- end
- end
- function GoldToDiamond()
- turtle.select(2)
- turtle.suckUp()
- turtle.transferTo(3, 2)
- turtle.transferTo(5, 2)
- turtle.transferTo(6, 2)
- turtle.select(16)
- for i=1,2 do
- turtle.craft()
- turtle.drop()
- end
- end
- print("Quelle etape souhaitez vous ?")
- local etape = read()
- if etape == iron then
- EnderPearlToIron()
- Resultat()
- elseif etape == gold then
- EnderPearlToIron()
- IronToGold()
- Resultat()
- elseif etape == diamond then
- EnderPearlToIron()
- IronToGold()
- GoldToDiamond()
- Resultat()
- else
- print("Choix Incorrect veuillez recommencer.")
- end
Advertisement
Add Comment
Please, Sign In to add comment