Despawns the Actor when the despawn rules or optional filters evaluate to true.
Despawn Properties
| Name |
Default Value |
Type |
Description |
Example Values |
| despawn_from_chance |
true |
Boolean true/false |
Determines if "min_range_random_chance" is used in the standard despawn rules |
|
| despawn_from_distance |
not set |
Despawn From Distance item |
Specifies if the 'min_distance' and 'max_distance' are used in the standard despawn rules. |
Bat: {} |
| despawn_from_inactivity |
true |
Boolean true/false |
Determines if the "min_range_inactivity_timer" is used in the standard despawn rules. |
|
| despawn_from_simulation_edge |
true |
Boolean true/false |
Determines if the mob is instantly despawned at the edge of simulation distance in the standard despawn rules. |
|
| filters |
not set |
Minecraft filter |
The list of conditions that must be satisfied before the Actor is despawned. If a filter is defined then standard despawn rules are ignored. |
|
| min_range_inactivity_timer |
30 |
Integer number |
The amount of time in seconds that the mob must be inactive. |
|
| min_range_random_chance |
800 |
Integer number |
A random chance between 1 and the given value. |
|
| remove_child_entities |
false |
Boolean true/false |
If true, all entities linked to this entity in a child relationship (eg. leashed) will also be despawned. |
|
Despawn From Distance
Despawn From Distance Properties
| Name |
Default Value |
Type |
Description |
Example Values |
| max_distance |
128 |
Integer number |
Maximum distance for standard despawn rules to instantly despawn the mob. |
|
| min_distance |
32 |
Integer number |
Minimum distance for standard despawn rules to try to despawn the mob. |
|
Samples
"minecraft:despawn": {
"despawn_from_distance": {}
}