Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Apiary automation
- epd="down" --exportdirection
- wantProducts=false
- function wrapPs(peripheralName)
- periTab = {}
- sideTab = {}
- if peripheralName == nil then
- print("Fehler")
- end
- local peripherals = peripheral.getNames()
- local i2 = 1
- for i = 1, #peripherals do
- if peripheral.getType(peripherals[i]) == peripheralName then
- periTab[i2] = peripheral.wrap(peripherals[i])
- sideTab[i2] = peripherals[i]
- i2 = i2 + 1
- end
- end
- if periTab ~= {} then
- return periTab, sideTab
- else
- return nil
- end
- end
- apis=wrapPs("apiculture_0_name")
- while true do
- for i=1,#apis do
- if apis[i].getAllStacks()[1]~=nil and wantProducts then
- for i2=3,9 do
- apis[i].pushItem(epd,i2)
- end
- else
- apis[i].condenseItems()
- end
- end
- sleep(30)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement