Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("ocs/apis/sensor")
- local sen = sensor.wrap("bottom")
- -- Funktion zum Anzeigen der Informationen über ein Ziel
- local function printTargetInfo(targetName, targetInfo)
- print("Zielname: " .. targetName)
- print("Zielinformation: " .. textutils.serialize(targetInfo))
- print("--------------------------")
- end
- -- Schleife durch alle gefundenen Ziele
- for targetName, targetInfo in pairs(sen.getTargets()) do
- if targetName == "MagmaLP" then
- printTargetInfo(targetName, targetInfo)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement