Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Kill all mobs / entities within the radius of the strip #28

Open
OrdinatorStouff opened this issue Sep 22, 2023 · 1 comment
Assignees

Comments

@OrdinatorStouff
Copy link

Is your feature request related to a problem?
Deletion is slow. Killing ALL entities speeds stripping substantially

Describe the solution you'd like
Perhaps during "stripping" you can suspend any/all processing of entities. Like all AI, pathfinding, etc. Not sure what can be "paused" for item entities. Alternatively, you could just void all non-player loaded entities but that'd be extremely destructive and only useful for debugging/testing (which is all I use this mod for anyway)

Describe alternatives you've considered
I use /tp @e[type=!player] ~ ~-999 ~ to "kill" all entities (tping to void also voids mod drops so I don't need to run this twice to cleanup the drops from a /kill command)

Additional context
I have the deletion range set to 100-by-100 and on a fresh loaded world of a large 1.20.1 pack stripping took ~21 seconds. I then /spreadplayers to a new random location and killed entities and ran again, this time it only took ~14 seconds. Here's a video of this test: https://streamable.com/igefns

Note: the effect doesn't seem so bad here on the fresh world (33% decrease) but in other testing I've done on a more established world, the difference was much more noticeable. The same 100x100 would take over a minute, and after killing entities it was more like 10-15 secs.

@EwyBoy
Copy link
Owner

EwyBoy commented Sep 28, 2023

A solution would be to wipe all mobs within the radius the world will be stripped.
Adding this to my todo list for the next update.

Thank you

@EwyBoy EwyBoy changed the title [Feature] Pause entity AI [Feature] Kill all mobs / entities within the radius of the strip Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants