Add the ability to store global user scripts
vakokako opened this issue ยท 1 comments
I love scarpet and use it whenever I want to test something in creative. The problem is every script I write ends up in the specific world save folder.
There are already built-in scripts provided by carpet that you can load from any world. Would be very nice to have a place to store a user-created library of scripts, e.g. in ~/.minecraft/scripts/
folder.
Relates directly to (duplicates/is duplicated by) #416.
Could be done by adding a check for script files present in FabricLoader#getConfigDir
/carpet/scripts
at CarpetScriptServer#listAvailableModules(true)
. Probably prioritising scripts in world folder against config when loading them (at #getModule
). That would also allow for global scripts in servers (where the same server path is reused but world is changed).