Описание
Build several packages from one codebase
Library System lets you (or your AI agent) list, install, remove and publish libraries without leaving the s&box editor. Keep every system you want to share as a library inside one game project, test it there, and ship each one as its own package.
Two ways to use it
- Editor menu: Tools > Library System opens a window listing the libraries in your project, each with Versions, Publish and Remove buttons, plus an Install box for any sbox.game ident.
- MCP: the same actions are four tools on the editor's MCP server, for scripts and AI agents.
MCP tools
- library_versions: lists a library's published versions and the version you have installed.
- library_install: installs a published library into the project by ident.
- library_uninstall: removes an installed library and deletes its folder.
- library_publish: compiles the library (if it has code), uploads its files and publishes a new version with your change title.
How to use
- Install Library System into your game project and restart the editor.
- Put each system you want to share in the Libraries folder as its own library.
- Open Tools > Library System and press Publish, or call library_publish from any MCP client with the library's ident.
New packages start Hidden. When a package is ready, switch it to Released on its sbox.game edit page.
Editor-only: nothing ships with your game.