Pathfinding data

This commit is contained in:
2026-11-21 13:16:12 -03:00
parent 277664d2d9
commit dd53613758
6 changed files with 32 additions and 0 deletions
+2
View File
@@ -32,6 +32,8 @@ and players. Mods define new kinds in their `entities/` folder, and draw them wi
| `width`, `height` | required | Its collision box in blocks, up to 16. `width` is for both x and z. Its eyes are at 85% of the height. |
| `max_health` | `10` | In half hearts. |
| `movement_speed` | `0.25` | Minecraft's per tick speed, 0.25 for most animals. |
| `jumps` | `true` | Whether it jumps onto blocks in its way. Without, it still steps up 0.6 blocks and swims up in water. |
| `max_fall` | `3` | How many blocks it drops on its way. `0` never walks off an edge, to keep monsters out of pits. |
| `attack_damage` | `2` | What a monster's hits do, in half hearts. |
| `physical_shielding` | `0` | Protection from physical damage. Not used yet. |
| `arcane_shielding` | `0` | Protection from arcane damage. Not used yet. |
+8
View File
@@ -78,6 +78,14 @@ back. Depend on the mod whose tag you change, so your file loads after its. chec
| `#bworld:leaves` | blocks | Every kind of leaves. |
| `#c:ingots` | items | `#c:ingots/copper`, `#c:ingots/tin`, `#c:ingots/iron`, `#c:ingots/gold`. |
## The Engine's Tags
The engine reads these by name. No mod owns `cubi`, so adding to them needs no dependency.
| Tag | Registry | What's in it |
| ------------------------- | -------- | ------------------------------------------------------------------------------------------------- |
| `#cubi:mobs_path_through` | blocks | Blocks mobs' paths go through, like doors: a mob runs into a closed one and waits for it to open. |
## Using Tags in Data
- **Recipes**: anywhere a recipe takes an item (shaped `key` values, smelting `input`, fuel `item`) it can take an item