Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function log(...)
- if not ... then return end
- local file = fs.open("dump.csv")
- for k,v in pairs({...}) do
- file.write(v)
- end
- file.write("\n")
- file.close()
- end
- local f = peripheral.find
- local sense = assert((("plethora:sensor") or f("manipulator") or f("neuralInterface")).sense, "Could not find entity sensor")
- for k,ent in pairs(sense()) do
- if ent.key == "minecraft:player" then
- log(ent.name, ent.id)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement