Advertisement
Lordeah18

Untitled

Jan 3rd, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. function move(machine, side, slot)
  2. if machine.list()[slot] ~= nil then
  3. moved = machine.pushItems(side[1], slot)
  4. if moved == 0 then
  5. machine.pushItems(side[2], slot)
  6. end
  7. end
  8. end
  9. --Clean compressor output
  10. function run()
  11. print("Running Pulverizer")
  12. pulverizer = peripheral.wrap("thermalexpansion:machine_pulverizer_0")
  13. move(pulverizer, {"right", "down"}, 2)
  14. move(pulverizer, {"right", "down"}, 3)
  15. end
  16.  
  17.  
  18. while true do
  19. run()
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement