Overview
minecraft:home is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Remembers where the entity spawned as its home and can keep it from wandering too far away.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
restriction_type | restriction_type | "none" | "none" for no limit, "random_movement" to keep wandering near home, or "all_movement" to keep all movement near home. |
restriction_radius | integer | 0 | How far in blocks the entity may move from home. |
home_block_list | string[] | none | Blocks that count as a valid home; if the block is gone, the limit is removed. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:home": {
"restriction_type": "none",
"restriction_radius": 0,
"home_block_list": []
}
}