Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local status = "waiting"
- local InputDir = "left"
- local InterfaceDir = "top"
- local GantryDir = "bottom"
- function MoveGantry()
- redstone.setAnalogueOutput(GantryDir, 15)
- redstone.setAnalogueOutput(InterfaceDir, 15)
- os.sleep(60)
- redstone.setAnalogueOutput(GantryDir, 0)
- redstone.setAnalogueOutput(InterfaceDir, 0)
- end
- while true do
- if redstone.getAnalogueInput(InputDir) > 0 then
- MoveGantry()
- end
- os.sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement