Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --minium stone slot 1 , coffre devent la turtle = reception , coffre dessous arrivée de bois , coffre du haut = buffer
- local obsidian = "obsidian"
- local iron = "iron"
- local gold = "gold"
- local diamond = "diamond"
- local slot=3
- function Resultat()
- turtle.select(2)
- turtle.suckUp()
- turtle.drop()
- end
- function WoodToObsidian()
- for i=1,2 do
- turtle.select(2)
- turtle.suckDown()
- turtle.select(3)
- turtle.suckDown()
- turtle.select(16)
- for i=1,64 do
- turtle.craft()
- turtle.dropUp()
- end
- end
- end
- function ObsidianToIron()
- turtle.select(2)
- turtle.suckUp()
- turtle.transferTo(5, 32)
- turtle.select(3)
- turtle.suckUp()
- turtle.transferTo(6, 32)
- turtle.select(16)
- for i=1,32 do
- turtle.craft()
- turtle.dropUp()
- end
- end
- function IronToGold()
- turtle.select(2)
- turtle.suckUp()
- for i=1,7 do
- turtle.transferTo(slot, 4)
- slot = slot+1
- if slot == 4 or slot == 8 then
- slot = slot+1
- end
- end
- turtle.select(16)
- for i=1,4 do
- turtle.craft()
- turtle.dropUp()
- end
- end
- function GoldToDiamond()
- turtle.select(2)
- turtle.suckUp()
- turtle.transferTo(3, 1)
- turtle.transferTo(5, 1)
- turtle.transferTo(6, 1)
- turtle.select(16)
- turtle.craft()
- turtle.drop()
- end
- print("Quelle etape souhaitez vous ?")
- local etape = read()
- if etape == obsidian then
- WoodToObsidian()
- turtle.select(2)
- for i=1,2 do
- turtle.suckUp()
- turtle.drop()
- end
- elseif etape == iron then
- WoodToObsidian()
- ObsidianToIron()
- Resultat()
- elseif etape == gold then
- WoodToObsidian()
- ObsidianToIron()
- IronToGold()
- Resultat()
- elseif etape == diamond then
- WoodToObsidian()
- ObsidianToIron()
- IronToGold()
- GoldToDiamond()
- Resultat()
- else
- print("Choix Incorrect veuillez recommencer.")
- end
Advertisement
Add Comment
Please, Sign In to add comment