Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NI = peripheral.wrap("back")
- entities = NI.sense()
- for i=1, #entities do
- id = entities[i].id
- if NI.getMetaByID(id).food ~= nil then
- print(entities[i].name)
- print(entities[i].id)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement