Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getSlot(name, damage)
- for i=1,16 do
- local data = turtle.getItemDetail(i)
- if data and data.name == name and data.damage == damage then
- return i
- end
- end
- return 0
- end
- function update()
- local slots = {
- getSlot("Botania:manaResource", 0),
- getSlot("Botania:manaResource", 1),
- getSlot("Botania:manaResource", 2)
- }
- for i,slot in ipairs(slots) do
- if slot == 0 then
- return
- end
- end
- for i,slot in ipairs(slots) do
- turtle.select(slot)
- turtle.dropDown(1)
- end
- end
- print("super cool terrasteel thing")
- while true do
- update()
- sleep(10)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement