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

Add mob_rooms #157

Merged
merged 2 commits into from Apr 1, 2024
Merged

Add mob_rooms #157

merged 2 commits into from Apr 1, 2024

Conversation

DeathShadez
Copy link
Contributor

In order to resemble vanilla spawn conditions, the mob_rooms feature places the mob_room structure at around y-level 0 that scans up 100 y-levels up from there along with scanning around within a xz radius.

Once a placement has been found to have suitable spawn conditions, it is then checked to see if the the floor and ceiling of where the mob_room will be placed is solid or not.

If the floor and ceiling check fails due to not being solid then it moves on to find another suitable location.

This allows for only 1 instance of the mob_room to spawn in a particular area without any stacked instances along with resembling vanilla spawn conditions.

2023-12-16_16 11 28
2023-12-16_16 11 47
2023-12-16_16 12 12
2023-12-16_16 12 48

@Sancires Sancires linked an issue Dec 26, 2023 that may be closed by this pull request
@justaureus justaureus merged commit f774873 into PolyhedralDev:2.0 Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Monster Room (Dungeon) Generation ?
2 participants