Start working on entities
This commit is contained in:
@@ -28,6 +28,7 @@ and players. Mods define new kinds in their `entities/` folder, and draw them wi
|
||||
| `texture` | required | Any texture, stretched over the model's `texture_width` and `texture_height`. |
|
||||
| `model` | none | An [entity model](#entity-models). Without one it's drawn as its texture, facing the camera. |
|
||||
| `behavior` | `"animal"` | `"animal"`, `"monster"` or `"scripted"`, see below. |
|
||||
| `category` | see below | `"monster"` or `"creature"`, see [Natural Spawning](#natural-spawning). |
|
||||
| `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. |
|
||||
@@ -89,6 +90,10 @@ the world, so a script never finds one it doesn't know about after a restart. Th
|
||||
|
||||
## Natural Spawning
|
||||
|
||||
An entity's `category` is what natural spawning counts it as, like Minecraft's mob categories. Monsters can spawn on
|
||||
their own and go away when no player is near, creatures stay. Without one, a `"monster"` is a monster and anything else
|
||||
is a creature.
|
||||
|
||||
Monsters spawn on their own in the dark around players, the way Minecraft's do. A mod lists which ones, how often and in
|
||||
which biomes in `worldgen/spawns.json`, like NeoForge's `add_spawns` biome modifier. The Undergarden's rotwalkers:
|
||||
|
||||
@@ -109,7 +114,7 @@ which biomes in `worldgen/spawns.json`, like NeoForge's `add_spawns` biome modif
|
||||
|
||||
| Field | Default | Meaning |
|
||||
| ----------- | ----------- | --------------------------------------------------------------------------------------------------------------- |
|
||||
| `entity` | required | A `"monster"` entity. Only monsters spawn on their own for now. |
|
||||
| `entity` | required | An entity in the `"monster"` category. Only monsters spawn on their own for now. |
|
||||
| `weight` | required | How often this one is picked over the others that can spawn in the same biome. |
|
||||
| `min_count` | required | How many spawn together, at least. |
|
||||
| `max_count` | required | And at most. |
|
||||
|
||||
Reference in New Issue
Block a user