Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local alternate = 0
- local done = false
- local nOne = 0
- local nTwo = 0
- while not done do
- local bOne = false
- local bTwo = false
- bOne = redstone.getInput("left")
- bTwo = redstone.getInput("front")
- if bOne == true and nOne < 3 then
- redstone.setOutput("back", true)
- redstone.setOutput("back", false)
- nOne = nOne + 1
- print("Dispensing One")
- end
- if bTwo == true and nTwo < 3 then
- redstone.setOutput("right", true)
- redstone.setOutput("right", false)
- nTwo = nTwo + 1
- print("Dispensing Two")
- end
- if nOne == 3 and nTwo == 3 then
- print("Should be building...")
- sleep(10)
- nOne = 0
- nTwo = 0
- else
- sleep(5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment