Rename bmod to just mod
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Mod Files
|
||||
|
||||
A mod is a folder with a `manifest.json`, some data files, textures, and up to four scripts. The build packs it into a
|
||||
single `.bmod` file, which is what servers load.
|
||||
single `.cubi` file, which is what servers load.
|
||||
|
||||
## Layout
|
||||
|
||||
@@ -109,18 +109,18 @@ this repository. That config maps the API types, which scripts import as `cubi/s
|
||||
import type { ServerContext } from "cubi/server";
|
||||
```
|
||||
|
||||
## `.bmod` Files
|
||||
## `.cubi` Files
|
||||
|
||||
A `.bmod` is a built mod in one zip file. Servers load every `.bmod` in their `server_mods/` folder, so installing a mod
|
||||
A `.cubi` is a built mod in one zip file. Servers load every `.cubi` in their `server_mods/` folder, so installing a mod
|
||||
on a server is dropping its file there and restarting.
|
||||
|
||||
```sh
|
||||
deno task pack-mod mods/copper_tools # writes copper_tools.bmod, to share
|
||||
deno task pack-mod mods/copper_tools # writes copper_tools.cubi, to share
|
||||
deno task build # packs every mod in mods/ into server_mods/
|
||||
```
|
||||
|
||||
```
|
||||
copper_tools.bmod
|
||||
copper_tools.cubi
|
||||
manifest.json # with scripts and credits pointing into the zip
|
||||
data.json # every block, model, item, entity, recipe, ore, tag and loot table, and the config
|
||||
scripts/server.js # each script bundled into one module
|
||||
@@ -134,7 +134,7 @@ copper_tools.bmod
|
||||
|
||||
- Packing checks the mod first, like `check-mods`, and refuses one with errors.
|
||||
- Packing the same mod twice gives the same bytes, so the file only changes when the mod does.
|
||||
- `deno task build` leaves other `.bmod` files in `server_mods/` alone, so mods from elsewhere can sit next to the ones
|
||||
- `deno task build` leaves other `.cubi` files in `server_mods/` alone, so mods from elsewhere can sit next to the ones
|
||||
it builds.
|
||||
- Players get a copy **without** `scripts/server.js`, `scripts/worldgen.js` and the config. See
|
||||
[Networking](../networking/index.md).
|
||||
|
||||
Reference in New Issue
Block a user