It would be easier to detect animals if everyone just put is_mob=true in their definition like VoxeLibre does. That's why I propose adding it.
I already detect mods by checking for variables but is_mob would make it easier for everyone and less boilerplate.
Common Mob Interface is only used by Mobs Redo and one might want to check if an entity is a mob, so it doesn't seem to be a solution.
irc discussion: https://irc.minetest.net/minetest/2024-06-24
Each mob api works differently so being able to detect a specific one for each mob would come in handy when using it's functions, e.g. mobs redo uses self.cmi_is_mob = true, where like you say voxelLibre uses self.is_mob ... and it's a shame no-one else uses the cmi interface.
It would be easier to detect animals if everyone just put is_mob=true in their definition like VoxeLibre does. That's why I propose adding it. I already detect mods by checking for variables but is_mob would make it easier for everyone and less boilerplate. Common Mob Interface is only used by Mobs Redo and one might want to check if an entity is a mob, so it doesn't seem to be a solution. irc discussion: https://irc.minetest.net/minetest/2024-06-24
Each mob api works differently so being able to detect a specific one for each mob would come in handy when using it's functions, e.g. mobs redo uses self.cmi_is_mob = true, where like you say voxelLibre uses self.is_mob ... and it's a shame no-one else uses the cmi interface.
There are many cases where this doesn't matter at all and you just want to know whether it's a mob or not.
Yes
Now I tried and noticed
_cmi_is_mob
works. Why didn't it show up in print(dump(entity))?