Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --config
- local hiveName = 'minecraft:pamapiary_0'
- local presserName = 'minecraft:pampresser_3'
- local outputName = 'minecraft:chest_6'
- local networkName = 'turtle_24'
- --
- local hive = peripheral.wrap(hiveName)
- local presser = peripheral.wrap(presserName)
- local output = peripheral.wrap(outputName)
- if not hive then
- error('Hive not found!')
- end
- if not presser then
- error('Presser not found!')
- end
- if not output then
- error('Output not found!')
- end
- local function collection()
- while true do
- sleep(0.05)
- for num = 1,18 do
- local meta = hive.getItemMeta(num)
- if meta and meta.rawName == 'item.queenbeeitem' then
- hive.pushItems(networkName,1)
- hive.pullItems(networkName,1,1,19)
- elseif meta and meta.rawName == 'item.grubitem' then
- hive.pushItems(outputName,num)
- elseif meta then
- hive.pushItems(presserName,num,1,1)
- end
- end
- for num = 2,3 do
- presser.pushItems(outputName,num)
- end
- end
- end
- collection()
Add Comment
Please, Sign In to add comment