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

[Suggestion] Add a Fixed sampleDistance option, and a sampleDistanceOffset to SpawnType #5

Open
Dillsfawn opened this issue Mar 2, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Dillsfawn
Copy link

Dillsfawn commented Mar 2, 2021

There should be an option to make sampleDistance be fixed angles around the player. So if I input 45, 90, 180, or 360 it limits the spawn location of that mob template to specific cardinal directions.
45: limits spawn location to 8 cardinal directions
90: limits spawn location to 4 cardinal directions
180: limits spawn location to 2 cardinal directions
360: limits spawn location to 1 direction

And an additional variable that offsets the angle AFTER the sampleDistance angle is set would allow invasion developers greater control of where mobs spawn. For example:
Normally, setting sampleDistance to 90 will spawn mobs from the north, east, south, and west directions. Adding a sampleDistanceOffset of 45 should then spawn mobs from the north-east, south-east, south-west, and north-west directions.
Similarly, while a sampleDistance of 0 or 360 will always spawn mobs at angle 0, an offset of 90 should always spawn mobs at angle 90.
This would allow invasion developers to set the spawn location of mob templates essentially anywhere they need, and allow for waves to focus their numbers from certain directions rather than being spread out.

@Dillsfawn Dillsfawn changed the title [Suggestion] Add sampleDistanceOffset to SpawnType [Suggestion] Add a Fixed sampleDistance option, and a sampleDistanceOffset to SpawnType Mar 6, 2021
@SekretOne SekretOne added the enhancement New feature or request label Mar 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants