Advertisement
Bendix

Draconium 4

Dec 23rd, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.12 KB | None | 0 0
  1. tnt = "minecraft:tnt"
  2. dragonHeart = "DraconicEvolution:dragonHeart"
  3. redstoneTorch = "minecraft:redstone_torch"
  4. chargedDraconium = "DraconicEvolution:draconium"
  5. draconicCore = "DraconicEvolution:draconicCore"
  6.  
  7. for loops = 1,4 do
  8. for x= 1,5 do
  9.    item = turtle.getItemDetail(x)
  10.    turtle.select(x)
  11.    if item then
  12.       if item.name==tnt then
  13.          turtle.transferTo(1)
  14.       elseif item.name==dragonHeart then
  15.          turtle.transferTo(2)
  16.       elseif item.name==redstoneTorch then
  17.          turtle.transferTo(3)
  18.       elseif item.name==chargedDraconium then
  19.          turtle.transferTo(4)
  20.       elseif item.name==draconicCore then
  21.          turtle.transferTo(5)
  22.       else
  23.          turtle.transferTo(x+8)
  24.       end
  25.    end
  26. end
  27. for x= 6,16 do
  28.    item = turtle.getItemDetail(x)
  29.    if item then
  30.       turtle.select(x)
  31.       if item.name==tnt then
  32.          turtle.transferTo(1)
  33.       elseif item.name==dragonHeart then
  34.          turtle.transferTo(2)
  35.       elseif item.name==redstoneTorch then
  36.          turtle.transferTo(3)
  37.       elseif item.name==chargedDraconium then
  38.          turtle.transferTo(4)
  39.       elseif item.name==draconicCore then
  40.          turtle.transferTo(5)
  41.       else
  42.       end
  43.    end
  44. end
  45.  
  46. turtle.forward()
  47. turtle.forward()
  48. turtle.select(1)
  49. turtle.up()
  50. turtle.placeDown()
  51. turtle.back()
  52. turtle.select(2)
  53. turtle.drop(1)
  54. turtle.select(3)
  55. turtle.placeDown()
  56. for x=1,10 do
  57.    turtle.up()
  58. end
  59. sleep(1)
  60. for x=1,10 do
  61. turtle.down()
  62. end
  63. turtle.select(4)
  64. turtle.placeDown()
  65. turtle.forward()
  66. turtle.placeDown()
  67. turtle.forward()
  68. turtle.placeDown()
  69. turtle.turnLeft()
  70. turtle.back()
  71. turtle.placeDown()
  72. turtle.select(5)
  73. turtle.drop(16)
  74.  
  75. for x=1,10 do
  76.   turtle.up()
  77. end
  78. sleep(15)
  79. turtle.forward()
  80. turtle.turnRight()
  81. turtle.back()
  82. turtle.back()
  83. turtle.back()
  84. for x=1,10 do
  85.    turtle.down()
  86. end
  87. --turtle.down()
  88.  
  89.  
  90. turtle.select(9)
  91. turtle.forward()
  92. turtle.digDown()
  93. turtle.forward()
  94. turtle.digDown()
  95. turtle.forward()
  96. turtle.digDown()
  97. turtle.turnLeft()
  98. turtle.back()
  99. turtle.digDown()
  100. turtle.forward()
  101. turtle.turnRight()
  102. turtle.back()
  103. turtle.back()
  104. turtle.back()
  105. turtle.down()
  106. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement