Expose 3 world generator options for overworld:
- natural-surface - generates surface that is natural(-ish). Currently, it may be just grass and dirt layers.
- natural-caves - generates caves inside world.
- natural-bedrock - generates natural looking bedrock pattern.
This also fixes a bug with floor and roof config option not working properly.
Fixes https://github.com/BentoBoxWorld/Level/issues/258
* old generators in new api
* add NewMaterialPopulator
* forgot to prevent physics loop
* I see... the new generator creates caves
* apply getMinHeight and getMaxHeight
* getMinHeight and getMaxHeight for populators too
* summarize
* general reformat on populators
* small typos
* comment sections
* small reformat
* warning on config
* apply new API on BlockPopulator p.1
* apply new API on BlockPopulator p.2
* apply new API on BlockPopulator p.3 (final)
* hasAI option
Changes:
- Use general player and admin command. Adding new commands will require whole addon update.
- Add default-action, new-player-action, block-mobs config options.
- Rename link for max-trusted-size and max-coop-size from island to cave.
Add AdminSwitchCommand
Optimize code that checks if player can walk on top of the world.
Remove AlternativeTeleports, as it is moved to VoidPortals addon.
There was a mistake with checking if position is changed in Y coordinate. It took from position and compare it to from position, so always fails.
This issue has been fixed now.
Also to improve ability to change these settings on the fly, I add them as world protection flags, so admins can enable and disable them via config.
MATERIALs must be blocks otherwise the world populator will throw errors
and crash the server. This commit checks that all imported materials are
blocks and if they are not logs the error.
Updated config.yml to use correct 1.13 material names for blocks.
https://github.com/BentoBoxWorld/CaveBlock/issues/11
- Add multiple event listeners that detects if blocks should be replaced or not.
- Add new config option, that allows to enable/disable beacon enabling.
Tweaks to config.yml to be more cave-y.
Entities are set to not despawn. Probabilities of materials and entities
can have decimals and be sub 1% if required. For some entities, 1% was
too high a rate.
Adds a debug setting in config.yml that will enable you to see where
entities have been spawned. It can be removed at some point.