Implement main game as a mod
@@ -1,21 +1,13 @@
|
||||
# bworld
|
||||
|
||||
The base game as a mod, following "The base game as a mod" in `MODS.md`.
|
||||
The base game as a mod, following "The base game as a mod" in `MODS.md`. The game loads its blocks, items, recipes and
|
||||
textures from here, the same way it loads any other mod.
|
||||
|
||||
**The game doesn't load this yet.** Until the mod loader exists, the game still registers everything from
|
||||
`common/blocks/`, `common/items/`, `server/game/crafting.ts` and `server/game/blocks.ts`. The `blocks/`, `items/` and
|
||||
`recipes/` folders here are generated from those by:
|
||||
Still built into the engine, by phase:
|
||||
|
||||
```sh
|
||||
deno task export-bworld
|
||||
```
|
||||
| Phase | What |
|
||||
| ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| 2 | Block behavior in `server/game/blocks.ts` (hoeing, chest, furnace) and the watering can's starting water. They become the `bworld:hoeable`, `bworld:storage`, `bworld:furnace` and `bworld:watering_can` components. |
|
||||
| 3 | Terrain, biomes, trees and ores in `common/generation.ts`. |
|
||||
|
||||
Run it after changing any of them. `tests/bworld_mod_test.ts` fails when this folder and the game disagree.
|
||||
|
||||
Still to move here, by phase:
|
||||
|
||||
| Phase | What |
|
||||
| ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| 1 | Textures from `assets/sprites/textures/` (the build still reads them from there). |
|
||||
| 2 | Block behavior from `server/game/blocks.ts`: `bworld:hoeable`, `bworld:storage`, `bworld:furnace`, and the watering can's `bworld:watering_can` item component. |
|
||||
| 3 | Terrain, biomes, trees and ores from `common/generation.ts`. |
|
||||
`bworld:stick` has no texture yet, so sticks show as missing.
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
"toughness": 3,
|
||||
"tool": "axe"
|
||||
},
|
||||
"drops": "bworld:log"
|
||||
"drops": "bworld:planks"
|
||||
}
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 232 B |
|
After Width: | Height: | Size: 130 B |
|
After Width: | Height: | Size: 128 B |
|
After Width: | Height: | Size: 230 B |
|
After Width: | Height: | Size: 251 B |
|
After Width: | Height: | Size: 275 B |
|
After Width: | Height: | Size: 236 B |
|
After Width: | Height: | Size: 416 B |
|
After Width: | Height: | Size: 223 B |
|
After Width: | Height: | Size: 221 B |
|
After Width: | Height: | Size: 254 B |
|
After Width: | Height: | Size: 312 B |
|
After Width: | Height: | Size: 257 B |
|
After Width: | Height: | Size: 157 B |
|
After Width: | Height: | Size: 156 B |
|
After Width: | Height: | Size: 406 B |
|
After Width: | Height: | Size: 166 B |
|
After Width: | Height: | Size: 259 B |
|
After Width: | Height: | Size: 175 B |
|
After Width: | Height: | Size: 447 B |
|
After Width: | Height: | Size: 317 B |
|
After Width: | Height: | Size: 218 B |
|
After Width: | Height: | Size: 177 B |
|
After Width: | Height: | Size: 177 B |
|
After Width: | Height: | Size: 279 B |
|
After Width: | Height: | Size: 215 B |
|
After Width: | Height: | Size: 232 B |
|
After Width: | Height: | Size: 199 B |
|
After Width: | Height: | Size: 343 B |
|
After Width: | Height: | Size: 208 B |
|
After Width: | Height: | Size: 236 B |
|
After Width: | Height: | Size: 370 B |
|
After Width: | Height: | Size: 215 B |
|
After Width: | Height: | Size: 205 B |
|
After Width: | Height: | Size: 266 B |
|
After Width: | Height: | Size: 350 B |
|
After Width: | Height: | Size: 340 B |
|
After Width: | Height: | Size: 262 B |
|
After Width: | Height: | Size: 241 B |
|
After Width: | Height: | Size: 262 B |
|
After Width: | Height: | Size: 264 B |
|
After Width: | Height: | Size: 466 B |
|
After Width: | Height: | Size: 466 B |
|
After Width: | Height: | Size: 504 B |
|
After Width: | Height: | Size: 478 B |
|
After Width: | Height: | Size: 215 B |
|
After Width: | Height: | Size: 429 B |
|
After Width: | Height: | Size: 376 B |
|
After Width: | Height: | Size: 172 B |
|
After Width: | Height: | Size: 275 B |
|
After Width: | Height: | Size: 428 B |
|
After Width: | Height: | Size: 237 B |
|
After Width: | Height: | Size: 119 B |
|
After Width: | Height: | Size: 274 B |
|
After Width: | Height: | Size: 269 B |
|
After Width: | Height: | Size: 159 B |
|
After Width: | Height: | Size: 216 B |
|
After Width: | Height: | Size: 123 B |
|
After Width: | Height: | Size: 170 B |
|
After Width: | Height: | Size: 222 B |
|
After Width: | Height: | Size: 251 B |
|
After Width: | Height: | Size: 221 B |