[HELP] autogather

Hello, I enabled my villagers to build ‘‘Shrine’’ because I wanted to put ‘‘autogather’’ but I can’t, how do I have automatic collection here?

Or, how to put autogather on any structure or unit

look in proto.xml for vanilla units that do it and simply copy paste this.
Will be a “protoaction” and in many cases part of the relevant code is also in the tactics file of that unit (Autogather)