39 lines
1.8 KiB
JSON
39 lines
1.8 KiB
JSON
{
|
|
"$id": "blockception.minecraft.behavior.entities.minecraft.home",
|
|
"type": "object",
|
|
"title": "Home",
|
|
"description": "Saves a home pos for when the the entity is spawned.",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"restriction_radius": {
|
|
"title": "Restriction Radius",
|
|
"description": "The radius that the entity will be restricted to in relation to its home.",
|
|
"type": "integer",
|
|
"default": -1
|
|
},
|
|
"home_block_list": {
|
|
"title": "Home Block List",
|
|
"description": "Optional block list that the home position will be associated with. If any of the blocks no longer exist at that position, the home restriction is removed. Example syntax: minecraft:sand. Not supported: minecraft:sand:1",
|
|
"type": "array",
|
|
"items": {
|
|
"title": "Home Block",
|
|
"description": "Optional block that the home position will be associated with. If any of the blocks no longer exist at that position, the home restriction is removed. Example syntax: minecraft:sand. Not supported: minecraft:sand:1",
|
|
"type": "string",
|
|
"$ref": "../../../../general/item/identifier.json"
|
|
}
|
|
},
|
|
"restriction_type": {
|
|
"title": "Restriction Type",
|
|
"description": "Defines how the the entity will be restricted to its home position. The possible values are:\n- 'none', which poses no restriction.\n- 'random_movement', which restricts randomized movement to be around the home position.\n- [Beta] 'all_movement', which restricts any kind of movement to be around the home position. However, entities that somehow got too far away from their home will always be able to move closer to it, if prompted to do so.",
|
|
"enum": [ "none", "random_movement", "all_movement" ],
|
|
"default": "none"
|
|
}
|
|
},
|
|
"examples": [
|
|
{
|
|
"restriction_radius": -1,
|
|
"home_block_list": [ ]
|
|
}
|
|
]
|
|
}
|