1. Wiki
  2. /Entities
  3. /minecraft:home

minecraft:home

Don't want to write this by hand? GodCraft sets minecraft:home for you with a switch.Get GodCraft

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

FieldTypeDefaultDescription
restriction_typerestriction_type"none""none" for no limit, "random_movement" to keep wandering near home, or "all_movement" to keep all movement near home.
restriction_radiusinteger0How far in blocks the entity may move from home.
home_block_liststring[]noneBlocks 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": []
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more