Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pos = 0
- seedChecker = peripheral.wrap("agricraft_peripheral_1")
- rednet.open("top")
- rednet.broadcast("start")
- function pulse(color)
- rs.setBundledOutput("left",color)
- sleep(.5)
- rs.setBundledOutput("left",0)
- end
- while true do
- local id, msg = rednet.receive()
- if msg == "activator1" then
- pulse(colors.red)
- elseif msg == "activator2" then
- pulse(colors.green)
- elseif msg == "activator3" then
- pulse(colors.brown)
- elseif msg == "checkSeed" then
- seedChecker.analyze()
- sleep(1)
- growth, gain, strength = seedChecker.getSpecimenStats()
- print("growth "..growth)
- end
- end
Add Comment
Please, Sign In to add comment