Mod config
This commit is contained in:
@@ -5,7 +5,7 @@ redstone, contraptions, trains, equipment, decoration and schematics. It aims to
|
||||
possible, and to stay fast on both the server and the client when a world has thousands of moving parts.
|
||||
|
||||
Built so far: the importer and Create's imported blocks and items, R1, R2, R3 (`transformed` and `rotating`), R4, R5,
|
||||
R8, S0, S7, and stonecutting from S9. Facts about Create come from reading `ports/create1.21.1` and
|
||||
R8, S0, S7, S12, and stonecutting from S9. Facts about Create come from reading `ports/create1.21.1` and
|
||||
`ports/create1.19.3`, and facts about bworld from its source.
|
||||
|
||||
## Sources
|
||||
@@ -270,7 +270,12 @@ and `fluid` with tanks (P5).
|
||||
|
||||
**R4. Models without blocks** (P1). Any model in `models/` can be loaded by id for visuals, baked once into a GPU
|
||||
buffer, and turned for whatever axis it's used on. Built: each model is baked the first time a visual uses it and
|
||||
uploaded the first time it's drawn, once per level.
|
||||
uploaded the first time it's drawn, once per level. Every model is packed and sent to clients whether a block uses it or
|
||||
not, and the partials P1's visuals use are all imported with their textures: `shaft`, `shaft_half`, `cogwheel_shaft`,
|
||||
`cogwheel_shaftless`, `large_cogwheel_shaftless`, `hand_crank/handle`, `gauge/dial`, `gauge/indicator`, both gauge heads
|
||||
and `rotation_speed_controller/bracket` (as `create:block_shaft_half` and so on). 0.5.0.j's water wheel is its block's
|
||||
own model. 6.0's wheels that take the wood they're made of swap the oak textures in their model, which needs their new
|
||||
art and a texture override on a model reference, so it waits for that art.
|
||||
|
||||
**R5. The model format** (P0, built). Everything Create's static models use: `parent`, `x` turns, `uvlock` on variants
|
||||
and parts, element `rotation` at any angle around one axis, and items drawn with models. An item's `model` draws it in
|
||||
@@ -366,8 +371,12 @@ are mostly those. They're components with placement rules in `mods/bworld`, like
|
||||
`mods/create/scripts/worldgen.ts`, or a data feature if STRUCTURES.md's data features exist by then. Zinc is a plain ore
|
||||
in `ores.json`.
|
||||
|
||||
**S12. Mod config** (P1). A mod's `config.json`, overridable per server, read in `setup`. Create's stress values, speed
|
||||
limits and processing times live there, and tests can set them.
|
||||
**S12. Mod config** (P1, built). A mod's settings and their defaults in its `config.json`, which the server script reads
|
||||
as `ctx.config` from `setup` on, like NeoForge's server configs. A server changes them in `config/<mod id>.json` next to
|
||||
`server_mods/`, setting by setting, and a setting the mod doesn't have or a value of the wrong kind stops it from
|
||||
starting. Players' copies of a mod leave the config out, so what clients need is sent like any other server data. Tests
|
||||
change settings with `test_game`'s fourth argument. Create's stress values, speed limits and processing times go there
|
||||
as the machines that use them are built.
|
||||
|
||||
**S13. NBT** (P11). Reading and writing structure NBT, shared with STRUCTURES.md's `common/nbt.ts`, for schematics and
|
||||
ponder scenes.
|
||||
|
||||
Reference in New Issue
Block a user