How would I properly put my script on multiple trees?

So I have programmed a script so that when the player is within a certain distance of the tree, they can gather wood from it. My only issue is that I want to include this for every tree. Is there an easy way to do this than placing every tree individually on the map?

I’m going to suggest that the answer is No (short of procedural generation), which no offense to the OP, does not sound like an option he is ready to tackle just yet. OP originally said he doesn’t want to place them one by one which is what, in the end, still happens with prefabs. I suspect he’s asking if he can add a script to a tree, use that tree prefab in the Terrain Tree PAINTER and paint the trees - there answer is no, that will not work.
Scripts attached to trees that are painted via Terrain tree painter do not work.

I have your answer. Got a bit excited cause as noob as I am, this question I can actually answer.

To do this go into your project folder and take the tree you want the player gather from and drag it into your scene. Then attach the script to the tree in your scene. This is so you have the collider style script your referring to on that inparticular game object. Next save that tree as a seperate gameobject; save it to your asset folder.

Finally to place this tree with the collider go to heirarchy–> terrain–> add trees. Be sure to add the tree that you just put the script on . Then you can mass place trees easily.