Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- turtle.turnLeft()
- for i=1,16 do
- turtle.drop(64)
- end
- turtle.select(1)
- turtle.suck(64)
- while turtle.getItemDetail().name ~= "minecraft:log" do
- turtle.turnRight()
- turtle.drop(64)
- turtle.turnLeft()
- turtle.suck(64)
- end
- if turtle.getItemCount() > 1 then
- turtle.drop(turtle.getItemCount()-1)
- end --On a le bois
- turtle.craft()
- turtle.transferTo(5,2)
- turtle.craft()
- turtle.transferTo(5,2)
- turtle.transferTo(2,2)
- turtle.transferTo(3,2)
- turtle.select(16)
- turtle.turnRight()
- while turtle.suck(64) do
- turtle.turnLeft()
- turtle.drop(64)
- turtle.turnRight()
- end
- turtle.turnLeft()
- turtle.select(6)
- turtle.suck(64)
- while turtle.getItemDetail().name ~= "minecraft:wool" do
- turtle.turnRight()
- turtle.drop(64)
- turtle.turnLeft()
- turtle.suck(64)
- end
- if turtle.getItemCount() > 2 then
- turtle.drop(turtle.getItemCount()-2)
- elseif turtle.getItemCount() < 2 then
- turtle.select(7)
- turtle.suck(64)
- while turtle.getItemDetail().name ~= "minecraft:wool" do
- turtle.turnRight()
- turtle.drop(64)
- turtle.turnLeft()
- turtle.suck(64)
- end
- if turtle.getItemCount > 1 then
- turtle.drop(turtle.getItemCount()-1)
- end
- turtle.transferTo(6)
- end --On a la laine
- turtle.craft()
- turtle.transferTo(9)
- turtle.select(16)
- turtle.turnRight()
- while turtle.suck(64) do
- turtle.turnLeft()
- turtle.drop(64)
- turtle.turnRight()
- end
- turtle.suck(64)
- while turtle.getItemDetail().name ~= "minecraft:diamond" do
- turtle.turnRight()
- turtle.drop(64)
- turtle.turnLeft()
- turtle.suck(64)
- end
- if turtle.getItemCount() > 16 then
- turtle.drop(turtle.getItemCount()-16)
- elseif turtle.getItemCount() < 16 then
- while turtle.getItemCount() < 16 and not turtle.getItemDetail().name() == "minecraft:diamond" do
- turtle.drop()
- turtle.suck()
- print("Veuillez mettre des diamants dans le premier slot du coffre.")
- end
- if turtle.getItemCount() > 16 then
- turtle.drop(turtle.getItemCount()-16)
- end
- end
- turtle.transferTo(6,8)
- turtle.transferTo(3)
- turtle.turnRight()
- turtle.turnRight()
- for i=1,8 do
- turtle.craft()
- turtle.drop()
- end
- turtle.turnLeft()
- while turtle.suck(64) do
- turtle.turnLeft()
- turtle.drop(64)
- turtle.turnRight()
- end
- turtle.turnLeft()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement