#entity go to unloaded chunk

1 messages · Page 1 of 1 (latest)

fringe glacier
#

I was thinking of entities going to specific locations to do something (find structures or blocks), I was wondering if this is possible? I heard entities unload and stay at a position when far away.

Is it also possible to access entity from unloaded chunks?

wary rock
#

No, but you could track its location and then load the chunk that the entity is in to use it. You would just keep a lot of entities in the world.

left root
#

you can have something called tick entities but that means that chunk is loaded 24/7

fringe glacier
#

show docs

left root
unkempt falcon
#

is there is quite a few entities it can be really performance heavey

gilded current
#

I think the minecraft:persistent:{} component that might prevent unloading

unkempt falcon
gilded current
#

yes

gilded current
#

You should check the docs for it

regal sand
# wary rock No, but you could track its location and then load the chunk that the entity is ...

On this topic of loading chunks what is the best method to "pre-load" chunks currently?

Currently trying to dynamically assign and remove ticking areas to remain under the built-in 10 ticking area limit while also not overwriting player defined ticking areas.

Also saw there is TickingAreaManager but this is in Beta currently so waiting for it to go full stable

Contents of the @minecraft/server.TickingAreaManager class.

boreal sedge
#

Oh yes, forgot about tickingAreaManager it got added in late preview. It is really useful

unkempt falcon
#

idk it said sth when i used to use /tickingarea

wary rock