FiddleComputers

Crafting katanas

Dec 17th, 2019
155
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2.     turtle.turnLeft()
  3.     for i=1,16 do
  4.         turtle.drop(64)
  5.     end
  6.     turtle.select(1)
  7.     turtle.suck(64)
  8.     while turtle.getItemDetail().name ~= "minecraft:log" do
  9.         turtle.turnRight()
  10.         turtle.drop(64)
  11.         turtle.turnLeft()
  12.         turtle.suck(64)
  13.     end
  14.     if turtle.getItemCount() > 1 then
  15.         turtle.drop(turtle.getItemCount()-1)
  16.     end --On a le bois
  17.     turtle.craft()
  18.     turtle.transferTo(5,2)
  19.     turtle.craft()
  20.     turtle.transferTo(5,2)
  21.     turtle.transferTo(2,2)
  22.     turtle.transferTo(3,2)
  23.     turtle.select(16)
  24.     turtle.turnRight()
  25.     while turtle.suck(64) do
  26.         turtle.turnLeft()
  27.         turtle.drop(64)
  28.         turtle.turnRight()
  29.     end
  30.     turtle.turnLeft()
  31.     turtle.select(6)
  32.     turtle.suck(64)
  33.     while turtle.getItemDetail().name ~= "minecraft:wool" do
  34.         turtle.turnRight()
  35.         turtle.drop(64)
  36.         turtle.turnLeft()
  37.         turtle.suck(64)
  38.     end
  39.     if turtle.getItemCount() > 2 then
  40.         turtle.drop(turtle.getItemCount()-2)
  41.     elseif turtle.getItemCount() < 2 then
  42.         turtle.select(7)
  43.         turtle.suck(64)
  44.         while turtle.getItemDetail().name ~= "minecraft:wool" do
  45.             turtle.turnRight()
  46.             turtle.drop(64)
  47.             turtle.turnLeft()
  48.             turtle.suck(64)
  49.         end
  50.         if turtle.getItemCount > 1 then
  51.             turtle.drop(turtle.getItemCount()-1)
  52.         end
  53.         turtle.transferTo(6)
  54.     end --On a la laine
  55.     turtle.craft()
  56.     turtle.transferTo(9)
  57.     turtle.select(16)
  58.     turtle.turnRight()
  59.     while turtle.suck(64) do
  60.         turtle.turnLeft()
  61.         turtle.drop(64)
  62.         turtle.turnRight()
  63.     end
  64.     turtle.suck(64)
  65.     while turtle.getItemDetail().name ~= "minecraft:diamond" do
  66.         turtle.turnRight()
  67.         turtle.drop(64)
  68.         turtle.turnLeft()
  69.         turtle.suck(64)
  70.     end
  71.     if turtle.getItemCount() > 16 then
  72.         turtle.drop(turtle.getItemCount()-16)
  73.     elseif turtle.getItemCount() < 16 then
  74.         while turtle.getItemCount() < 16 and not turtle.getItemDetail().name() == "minecraft:diamond" do
  75.             turtle.drop()
  76.             turtle.suck()
  77.             print("Veuillez mettre des diamants dans le premier slot du coffre.")
  78.         end
  79.         if turtle.getItemCount() > 16 then
  80.             turtle.drop(turtle.getItemCount()-16)
  81.         end
  82.     end
  83.     turtle.transferTo(6,8)
  84.     turtle.transferTo(3)
  85.     turtle.turnRight()
  86.     turtle.turnRight()
  87.     for i=1,8 do
  88.         turtle.craft()
  89.         turtle.drop()
  90.     end
  91.     turtle.turnLeft()
  92.     while turtle.suck(64) do
  93.         turtle.turnLeft()
  94.         turtle.drop(64)
  95.         turtle.turnRight()
  96.     end
  97.     turtle.turnLeft()
  98. end
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×