#Despawn an entity out of player chunk

1 messages · Page 1 of 1 (latest)

errant mesa
#

An entity cannot execute events when it is outside the player's chunk (around 130 blocks away), how can you activate an event on an entity at this distance to despawn it? (I don't want to use despawn_from_distance)

tired remnant
errant mesa
tired remnant
tired remnant
#

Example:-

"minecraft:despawn":{
    "despawn_from_distance": {
        "max_distance": 128,
        "min_distance": 32
    },
    "despawn_from_chance": false,
    "despawn_from_inactivity": false,
    "despawn_from_simulation_edge": true,
    "min_range_inactivity_timer": 30 ,
    "min_range_random_chance": 800,
    "remove_child_entities": false,
    "filters":{"test": "has_damage", "target": "self"}
}
errant mesa
#

hmmm I don't know if it would work for what I'm looking for. The entity I'm using spawns when the player sleeps, but if the player go too far and sleep in another bed, I want the previous entity to despawn and summon another

#

thats why I have the chunks problem

tired remnant
#

What's the purpose of the entity?

#

You might want it to always ride the player.

#

In case if it's a dummy entity.

tired remnant
#

So, it can always run!

errant mesa
errant mesa
tired remnant
tired remnant
#

and you can spawn the other when the players sleep again.

errant mesa
errant mesa
tired remnant
#

or you can probably add something to the player or a scoreboard so when they load again they despawn.

errant mesa