minecraft:tick_world for you with a switch.Get GodCraftOverview
minecraft:tick_world is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Keeps the chunks around the entity loaded and running, even with no player close by. Use it carefully, since it costs performance.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
radius | integer | 2 | How many chunks around the entity are kept active.Range: 2 to 6 |
distance_to_players | number | 128 | How close a player must be for the entity to stay; farther away it can despawn. Ignored when never_despawn is true.Range: 128 to … |
never_despawn | boolean | true | If true, the entity stays in the world no matter how far away players are. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:tick_world": {
"radius": 2,
"distance_to_players": 128,
"never_despawn": true
}
}