3
Is there a way to kill entitys in unloaded chunks?
Because everytime i shoot a spell (in my magic datapack) into an unloaded chunk and then load the chunk and then use the spell again i get a big lagspike.
Because everytime i shoot a spell (in my magic datapack) into an unloaded chunk and then load the chunk and then use the spell again i get a big lagspike.
Create an account or sign in to comment.
5
Is there a way to kill entitys in unloaded chunks?You cant, unless you already have entity context througn something like a function (im pretty sure).
e.g.
execute as @e[custom_mob] run function custom_func
In custom_func:
Do stuff as that entity
kill that entity (using @s)
Also can you elaborate on what is casuing ur lagspike? Does you spell (assuming it's something shot like a fireball) have a max range? Did you spam a bunch in a direction and load a huge amt of entities?
Its an armorstand that executes an lagspike, no it has no max range. Umm… no i didnt spam it, the lagspike happens when i shoot one spell in an unloadet chunk, and then load that chunk and shoot another spell
what commands does your armorstand have? Does it summon any other entities as it travels to the other chunks?