Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function move(machine, side, slot)
- if machine.list()[slot] ~= nil then
- moved = machine.pushItems(side[1], slot)
- if moved == 0 then
- machine.pushItems(side[2], slot)
- end
- end
- end
- --Clean compressor output
- function run()
- print("Running Pulverizer")
- pulverizer = peripheral.wrap("thermalexpansion:machine_pulverizer_0")
- move(pulverizer, {"right", "down"}, 2)
- move(pulverizer, {"right", "down"}, 3)
- end
- while true do
- run()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement