Add the oak_ on the oak blocks

This commit is contained in:
2026-10-03 18:56:44 -03:00
parent 41fa75e864
commit cb7d655f0c
26 changed files with 40 additions and 44 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ An id looks like `namespace:name`, like `farmersdelight:cabbage`:
- `namespace` is the id of the mod that registers it, 1-32 characters of `a-z`, `0-9` and `_`.
- `name` is `a-z`, `0-9` and `_`.
- A mod only registers ids in its own namespace. It can _refer to_ any id, like using `bworld:planks` in a recipe.
- A mod only registers ids in its own namespace. It can _refer to_ any id, like using `bworld:oak_planks` in a recipe.
- Registering an id that's already registered, by the same mod or another, is an error.
Two namespaces are reserved:
+2 -2
View File
@@ -59,8 +59,8 @@ with a texture per face. `models/slab.json`:
}
```
A block using it sets `"model": "copper_tools:slab"` and `"textures": { "side": "bworld:planks" }`, and gets planks on
every face, since `top` and `bottom` default to `#side`.
A block using it sets `"model": "copper_tools:slab"` and `"textures": { "side": "bworld:oak_planks" }`, and gets planks
on every face, since `top` and `bottom` default to `#side`.
| Field | Meaning |
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+1 -1
View File
@@ -13,7 +13,7 @@ For the crafting grid in the player's inventory screen:
"recipe": {
"type": "shaped",
"pattern": ["PPP", "P P", "PPP"],
"key": { "P": "bworld:planks" },
"key": { "P": "bworld:oak_planks" },
"result": { "id": "bworld:chest", "count": 1 }
}
}
+3 -2
View File
@@ -4,7 +4,8 @@ A tag is a named list of blocks, items or entities, like every kind of planks. R
they take an id, and any mod can add to any tag, so a mod's planks can make sticks just by adding them to
`#bworld:planks`. Tags work like [NeoForge's](https://docs.neoforged.net/docs/resources/server/tags).
A tag's id starts with `#` where it's used, so `#bworld:planks` is the tag and `bworld:planks` is the oak planks item.
A tag's id starts with `#` where it's used, so `#bworld:planks` is the tag of every kind of planks, and
`bworld:oak_planks` is one of them.
## Tag Files
@@ -104,5 +105,5 @@ Mods' own [recipe types](recipes.md#custom-recipe-types) should take tags like t
choice into the items it stands for, so the mod's server script can check and match them:
```ts
const ingredient = ctx.tags.expand(json.ingredient); // "#bworld:planks" -> ["bworld:planks", "bworld:spruce_planks", ...]
const ingredient = ctx.tags.expand(json.ingredient); // "#bworld:planks" -> ["bworld:oak_planks", "bworld:spruce_planks", ...]
```