Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local event = require("event")
- local analyzer = component.agricraft_peripheral
- local running = true
- function analyzer.specimenChanged(current_specimen)
- local specimen = analyzer.getSpecimen()
- return specimen ~= current_specimen
- end
- local current_speciment = nil
- while running do
- if analyzer.specimenChanged(current_specimen) then
- current_specimen = analyzer.getSpecimen()
- print("Specimen changed to:")
- print(current_specimen)
- end
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement