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

Added flatlands generator #845

Merged
merged 2 commits into from
May 10, 2024
Merged

Conversation

sh0inx
Copy link
Contributor

@sh0inx sh0inx commented May 10, 2024

  • also added some logging about the generator type to ensure that server admins know what the correct enum values are

- also added some logging about the generator type to ensure that server admins know what the correct enum values are
@PeachesMLG
Copy link
Member

PeachesMLG commented May 10, 2024

 /home/runner/work/IridiumSkyblock/IridiumSkyblock/src/main/java/com/iridium/iridiumskyblock/IridiumSkyblock.java:104: error: cannot find symbol
                getLogger().warning("Invalid generator type [" + IridiumSkyblock.getInstance().getConfiguration().generatorType + "], valid types are " + Arrays.toString(GeneratorType.values()));

Looks like you are missing an import or something?

@sh0inx
Copy link
Contributor Author

sh0inx commented May 10, 2024

tbh i might be lol, let me fix it rq

@PeachesMLG PeachesMLG merged commit 0801168 into ocean-generator-&-others May 10, 2024
5 checks passed
@PeachesMLG PeachesMLG deleted the flat-generator branch May 10, 2024 19:14
PeachesMLG added a commit that referenced this pull request Dec 28, 2024
* implementing the ocean generator

* Cleanup

* Updated Generators

updated generators to allow server owners to set the default biome and whether they'd like their oceans to be decorated or not (includes ores, deposits, and geodes, no caves)

* Update OceanGenerator.java

cleaned up some residual das code

* fixed the generator!

uh so we basically create a duplicate of the world on first generation of an island that will then be used to copy and paste the terrain under the islands

the first generation is slow because it has to create the worlds, but once this is done its exactly like the deleting blocks method except in reverse

* refactored world generation to createWorld()

- moved the cache world creation to the create world method so that the plugin does not lag on island creation
- changed setting to GeneratorType enum
- added vanilla generation option (takes advantage of null chunk generator)
- deletes and regenerates cache world on bad seed comparison so that the cache world matches even on generator change

* added generator type logging

* Updated calls to regenerateTerrain to use .join()

- moved the check for if the generator is a terrain generator to the methods that call regenerateTerrain

* das suggested we format the enum differently so we did

Co-authored-by: Daniel Scherf <35780068+dlsf@users.noreply.github.com>

* Added flatlands generator (#845)

* Added flatlands generator

- also added some logging about the generator type to ensure that server admins know what the correct enum values are

* forgot to import arrays, silly me

* added a more explicit comment

* made the delete world method a lil nicer (ty das)

Co-authored-by: Daniel Scherf <35780068+dlsf@users.noreply.github.com>

* removed generateChunkData

* reverted deleteWorld method overhaul

* remove imports

* Re-implemented ChunkData method, cleaned up cache world creation

* Removed shouldGenerateDecorations methods (temporarily)

* Update IridiumSkyblock.java

plugin would incorrectly report invalid generator type for VOID

because i didnt add the case for void, so it would default

* Fix imports

---------

Co-authored-by: Shyanne <randomgirlisweird@gmail.com>
Co-authored-by: Daniel Scherf <35780068+dlsf@users.noreply.github.com>
Co-authored-by: Daniel Scherf <munita.gavai@gmail.com>
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.

2 participants