Skip to content
 
 

Repository files navigation

VanillaGenerator

Build Latest release License Discord

VanillaGenerator adds the vanilla_overworld and vanilla_nether world generators to Axolotl-PM. The generator is ported from Glowstone, and its license notices are preserved in LICENSE.

Requirements

  • Axolotl-PM with API 5.8.0 or later.
  • PHP 8.4 for the project build and static analysis workflow.

Install

Download VanillaGenerator.phar from the latest GitHub release. Copy it into the server's plugins/ directory, then restart the server.

Choose a world generator

Set the generator under the world's folder name in pocketmine.yml:

worlds:
  world:
    generator: vanilla_overworld
  nether:
    generator: vanilla_nether

Choose the generator before creating the world. Existing chunks keep their current terrain. The selected generator creates terrain in new chunks.

Build and analysis

The GitHub Actions workflow uses AxolotlBucketLabs DevTools to build and inspect the PHAR. It runs PHPStan at level max against Axolotl-PM source and uploads the PHAR with build metadata as a workflow artifact. The workflow uses PHP 8.4.

To build locally, run the DevTools CLI from the project root:

php -d phar.readonly=0 /path/to/DevTools/bin/devtools.php build --project=. --out=build

Use as a virion

The repository also provides the generator classes as a virion for plugins that call them directly. Add muqsit/vanillagenerator from this repository to the consumer's Composer dependencies, then declare VanillaGenerator in its devtools.yml. The standalone plugin remains useful when a server needs the generator registrations without bundling the classes into another plugin.

License

VanillaGenerator is distributed under the MIT License. See LICENSE for the notices and terms.

Releases

Contributors

Languages