Request: function map:get_entities_of_type(type)
Allowing to get entities of a given type would be useful to avoid a loop on all entities of the map (to make the Lua code a bit faster). This is not very important, so close the issue if you think this is unnecessary.