How would i go on with modding?

Hello there! i was wondering about how i’d go to add built in modding support for my game
The idea i had is pretty complex, but hear me out for a little
i was thinking in making some sort of “development project” with stub classes and a character folder, the stub scripts gives minimal functionality (excludes networking and other unsafe things which are featured on base game), it would be placed inside a Exclude folder, which, as the name suggests, would be excluded when the project is exported as a package
but i wanted to know, how could i load the .pck’s? and would it’s CS scripts automatically inherit the true classes (with the exact same name)?

the “export resources excluding ones selected” option on exporting menu seems promising.
please give me help on how i can do that without wanting to punch my computer!
thanks in advance

v4.5.1

You can read about mod support in the documentation:

Check the comments about C# support.

i managed to add in loading with gdscript, its really easy, but the problem i have is, is there any way to know the path of the scenes which were added in? no sort of looping through directory seems to help, so i wanted to know is theres a way to dynamically load them in and instantiate without having to know their exact paths