Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p = peripheral.wrap("bottom")
- local items = {
- ["minecraft:redstone_block"]="right",
- ["minecraft:nether_star"]="top",
- ["powah:blazing_crystal_block"]="front"
- }
- while true do
- sleep(0.5)
- if p.getItemDetail(1) == nil then
- local count = 2
- for item, side in pairs(items) do
- local list = peripheral.call(side, "list")
- for k, v in pairs(list) do
- if v.name == item then
- if item == "minecraft:redstone_block" then
- p.pullItems(side, k, 1, count)
- count = count + 1
- p.pullItems(side, k, 1, count)
- count = count + 1
- else
- p.pullItems(side, k, 1, count)
- count = count + 1
- end
- break
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement