70 lines
2.6 KiB
JSON
70 lines
2.6 KiB
JSON
{
|
|
"$id": "blockception.minecraft.behavior.entities.1.8.0.minecraft.despawn",
|
|
"type": "object",
|
|
"title": "Despawn 1.8.0",
|
|
"additionalProperties": false,
|
|
"description": "Despawns the associated Actor immediately or when the optional filter evaluates to true.",
|
|
"required": [],
|
|
"properties": {
|
|
"filters": {
|
|
"$ref": "../../filters/filters.json",
|
|
"description": "The list of conditions that must be satisfied before the Actor is despawned. If a filter is defined then standard despawn rules are ignored."
|
|
},
|
|
"despawn_from_chance": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Determines if `min_range_random_chance` is used in the standard despawn rules",
|
|
"title": "Despawn From Chance"
|
|
},
|
|
"despawn_from_inactivity": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Determines if the `min_range_inactivity_timer` is used in the standard despawn rules.",
|
|
"title": "Despawn From Inactivity"
|
|
},
|
|
"despawn_from_distance": {
|
|
"type": "object",
|
|
"description": "Defines the minimum and maximum distance for despawn to occur",
|
|
"title": "Despawn From Distance",
|
|
"properties": {
|
|
"max_distance": {
|
|
"title": "Maximum Distance",
|
|
"description": "Maximum distance for standard despawn rules to instantly despawn the mob.",
|
|
"type": "integer",
|
|
"default": 128
|
|
},
|
|
"min_distance": {
|
|
"title": "Minimum Distance",
|
|
"description": "Minimum distance for standard despawn rules to try to despawn the mob.",
|
|
"type": "integer",
|
|
"default": 32
|
|
}
|
|
}
|
|
},
|
|
"despawn_from_simulation_edge": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Determines if the mob is instantly despawned at the edge of simulation distance in the standard despawn rules.",
|
|
"title": "Despawn From Simulation Edge"
|
|
},
|
|
"min_range_inactivity_timer": {
|
|
"type": "integer",
|
|
"default": 30,
|
|
"description": "The amount of time in seconds that the mob must be inactive.",
|
|
"title": "Minimum Range Inactivity Timer"
|
|
},
|
|
"min_range_random_chance": {
|
|
"type": "integer",
|
|
"default": 800,
|
|
"description": "A random chance between 1 and the given value.",
|
|
"title": "Minimum Range Random Chance"
|
|
},
|
|
"remove_child_entities": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "If true, all entities linked to this entity in a child relationship (eg. leashed) will also be despawned.",
|
|
"title": "Remove Child Entities"
|
|
}
|
|
}
|
|
}
|