Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local SLOT_COUNT = 16
- local E_Orb = peripheral.wrap("bottom")
- function getItemIndex(itemName)
- for slot = 1, SLOT_COUNT, 1 do
- local item = turtle.getItemDetail(slot)
- if(item ~= nil) then
- if(item["name"] == itemName) then
- return slot
- end
- end
- end
- return 17
- end
- function dropBlazeRods(orb)
- bRods = orb.getItemDetail(2)
- if(bRods == nil) then
- turtle.dropDown(1)
- end
- end
- function handleBlazeRods()
- brod_slot = getItemIndex("minecraft:blaze_rod")
- if (brod_slot < 17) then
- turtle.select(brod_slot)
- dropBlazeRods(E_Orb)
- else
- turtle.suckUp()
- end
- end
- function handleCrystals()
- bcrystal_slot = getItemIndex("powah:crystal_blazing")
- if (bcrystal_slot < 17) then
- turtle.select(bcrystal_slot)
- turtle.dropUp()
- end
- end
- while true do
- turtle.suckDown()
- handleBlazeRods()
- handleCrystals()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement