Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tntPusher = "bottom"
- sidePusher = "right"
- weirdPusher = "left"
- timedPusher = "top"
- duper = "back"
- networkSide = "front"
- rednet.open(networkSide)
- while rednet.isOpen() do
- senderID,message,distance,protcol = rednet.receive()
- if message.command == "payload.batch.dupe" then
- if message.count >= 8 then
- rednet.broadcast({command="payload.duper.setCount",count=8})
- sleep(0.05)
- while message.count >= 8 do
- message.count = message.count - 8
- redstone.setOutput(duper,true)
- sleep(0.05)
- redstone.setOutput(duper,false)
- sleep(0.35)
- end
- end
- sleep(0.2)
- if message.count >= 1 then
- rednet.broadcast({command="payload.duper.setCount",count=1})
- sleep(0.05)
- while message.count >= 1 do
- message.count = message.count - 1
- redstone.setOutput(duper,true)
- sleep(0.05)
- redstone.setOutput(duper,false)
- sleep(0.35)
- end
- end
- rednet.broadcast({command="payload.duper.setCount",count=0})
- --alignment
- if message.align then
- sleep(0.2)
- redstone.setOutput(sidePusher,true)
- sleep(0.30)
- redstone.setOutput(sidePusher,false)
- sleep(0.2)
- redstone.setOutput(sidePusher,true)
- sleep(0.05)
- redstone.setOutput(sidePusher,false)
- sleep(0.2)
- redstone.setOutput(tntPusher,true)
- sleep(0.05)
- redstone.setOutput(tntPusher,false)
- sleep(0.05)
- redstone.setOutput(weirdPusher,true)
- sleep(0.05)
- redstone.setOutput(weirdPusher,false)
- sleep(0.2)
- redstone.setOutput(sidePusher,true)
- sleep(0.05)
- redstone.setOutput(sidePusher,false)
- end
- sleep(0.2)
- redstone.setOutput(tntPusher,true)
- sleep(0.20)
- redstone.setOutput(tntPusher,false)
- sleep(0.25)
- redstone.setOutput(tntPusher,true)
- sleep(0.20)
- redstone.setOutput(tntPusher,false)
- sleep(4-(0.05*message.fuse))
- redstone.setOutput(timedPusher,true)
- sleep(0.05)
- redstone.setOutput(timedPusher,false)
- sleep(1)
- rednet.broadcast({command="payload.batch.done"})
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement