Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local inputNeeded = "minecraft:sand"
- local inputAmount = 1
- local outputAmount = 1
- --------------------------------------------------------------------
- os.loadAPI("bpFuncs.lua")
- local suckItems = false
- local inputDropper = peripheral.wrap("front")
- local outputDropper = peripheral.wrap("right")
- while true do
- for slot, item in pairs(inputDropper.list()) do
- if (item.name == inputNeeded) and (bpFuncs.GetOutputItems(outputDropper) >= outputAmount) then
- if item.count >= inputAmount then
- for i = 0, outputAmount, 1 do
- bpFuncs.SpitItem("right")
- os.shutdown()
- end
- end
- else
- bpFuncs.SpitItem("front")
- end
- end
- sleep(0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement