Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arg = {...}
- assert(#arg == 2,'usage: pistonDoor (2pistons) (4pistons)')
- function open()
- rs.setOutput(arg[1],false)
- os.sleep(0.3)
- rs.setOutput(arg[2],false)
- end
- function close()
- rs.setOutput(arg[2],true)
- os.sleep(0.3)
- rs.setOutput(arg[1],true)
- end
- close()
- while true do
- event = os.pullEvent('redstone')
- open()
- os.sleep(4)
- close()
- end
Advertisement
Add Comment
Please, Sign In to add comment