Rename glass block

This commit is contained in:
2026-11-03 15:43:18 -03:00
parent c3394f69b6
commit 68b78f053a
25 changed files with 285 additions and 285 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ block goes through its own `stages`:
```json
"place_in": ["bworld:water"],
"place_on": ["bworld:dirt", "bworld:grass", "bworld:hoed_dirt"],
"place_on": ["bworld:dirt", "bworld:grass_block", "bworld:hoed_dirt"],
"components": {
"bworld:crop": {
"days": 6,
+1 -1
View File
@@ -84,7 +84,7 @@ import { test_game } from "./helpers.ts";
Deno.test("a hoe turns grass into farmland", async () => {
const { game, join, send, take } = await test_game("mods");
join(1, "alice");
game.set_block(1, 100, 1, "bworld:grass");
game.set_block(1, 100, 1, "bworld:grass_block");
send(1, { type: "move", x: 2.5, y: 101, z: 2.5, yaw: 0, pitch: 0 });
send(1, { type: "chat", text: "/give bworld:wood_hoe" });
const inventory = take(1).filter((m) => m.type === "container" && m.container === "inventory").at(-1).items;
+1 -1
View File
@@ -17,7 +17,7 @@ generates where a rule it adds puts it, see [Adding Biomes](terrain.md#adding-bi
"biome": {
"id": "bworld:dark_forest",
"surface": {
"top": "bworld:grass",
"top": "bworld:grass_block",
"filler": "bworld:dirt",
"filler_depth": 3,
"bare_cliffs": true
+2 -2
View File
@@ -138,7 +138,7 @@ A mod changes content other mods registered, like Minetest's `override_item`. `o
{
"format_version": 1,
"override": {
"block": "bworld:grass",
"block": "bworld:grass_block",
"set": { "mining": { "toughness": 1, "tool": "shovel" } },
"add_components": { "farming_plus:weeds": { "chance": 0.01 } }
}
@@ -337,7 +337,7 @@ the registry hash. Recipe types as ids with `register_type`. Check: a test mod r
server and a client end up with equal registries and hashes.
**Phase 2: overrides.** `override` and `extend` in common scripts, `overrides/*.json`, `recipes.remove`, and the
`check-mods` rules. Check: a test mod adds a component to `bworld:grass`, changes `bworld:glass`'s toughness and
`check-mods` rules. Check: a test mod adds a component to `bworld:grass_block`, changes `bworld:glass`'s toughness and
replaces the chest recipe, on both sides and in the hash.
**Phase 3: engine access.** The global engine modules and the `bworld/engine` shim, `hook`, `engine_access` in the