Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local event = require("event")
- redstone=component.proxy(component.list("redstone")())
- function growing(cmd)
- if cmd == "start" then
- redstone.setOutput(sides.north, 0)
- redstone.setOutput(sides.top, 0)
- print("Growing is started")
- elseif cmd == "stop" then
- redstone.setOutput(sides.north, 15)
- redstone.setOutput(sides.top, 15)
- print("Growing is stopped")
- else print("invalid command - use start or stop")
- end
- end
- while true do
- local cmd=io.read()
- if not cmd then return end
- if
- growing(cmd)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement