Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i = 1,16 do
- turtle.select(i)
- if turtle.getItemCount(i) > 0 then
- itemData = turtle.getItemDetail(i)
- if itemData.name == "draconicevolution:draconium_capacitor" then
- while turtle.drop(i) == false do
- sleep(.05)
- end
- file = fs.open("dropped","w")
- file.write("true")
- file.close()
- sleep(8)
- turtle.suck()
- file = fs.open("dropped","w")
- file.write("false")
- file.close()
- rs.setOutput("bottom", false)
- sleep(.5)
- rs.setOutput("bottom", true)
- else
- turtle.turnRight()
- turtle.drop(i)
- turtle.turnLeft()
- end
- end
- end
- turtle.suck()
- rs.setOutput("bottom", false)
- sleep(.5)
- rs.setOutput("bottom", true)
- while true do
- event, p1, p2 = os.pullEvent("turtle_inventory")
- for i = 1,9 do
- turtle.select(i)
- if turtle.getItemCount(i) > 0 then
- itemData = turtle.getItemDetail(i)
- if itemData.name == "draconicevolution:draconium_capacitor" then
- if turtle.drop() then
- sleep(180)
- turtle.suck()
- end
- rs.setOutput("bottom", false)
- sleep(.5)
- rs.setOutput("bottom", true)
- else
- turtle.turnRight()
- turtle.drop()
- turtle.trunLeft()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement