Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PaperFarLands

PaperFarLands is a PaperMC plugin that generates overworld terrain with a configurable "Far Lands" transition. Each configured world can choose the X/Z coordinate where the distortion begins in config.yml.

Features

  • Configurable x and z coordinates for when Far Lands distortion starts.
  • Automatic world creation for configured worlds.
  • Support for Paper's getDefaultWorldGenerator(...) entrypoint for manual server generator binding.
  • Deterministic terrain model with stepped cliffs, folded ridges, and stretched caves in the Far Lands zone.

Build

mvn test package

The plugin JAR will be written to target/paper-farlands-0.1.0-SNAPSHOT.jar.

Default Usage

  1. Drop the plugin into your Paper server's plugins/ directory.
  2. Start the server once so plugins/PaperFarLands/config.yml is created.
  3. Edit the worlds section in config.yml.
  4. Restart the server.

If auto-create: true, the plugin will create the world during startup with the configured generator.

Manual Generator Binding

The plugin also exposes JavaPlugin#getDefaultWorldGenerator(...), so you can bind a world manually with the configured world key as the generator id:

worlds:
  farlands:
    generator: PaperFarLands:farlands

When the server asks for the generator:

  • worldName resolves the config key if it matches.
  • id overrides that and lets you point a differently named world at a specific config block.

Config Example

worlds:
  farlands:
    enabled: true
    auto-create: true
    environment: NORMAL
    seed: ""
    far-lands:
      start:
        x: 12550821
        z: 12550821
      transition-width: 256
      coordinate-snap: 12.0
      horizontal-shear: 48.0
      height-boost: 96
    terrain:
      sea-level: 63
      base-height: 72
      height-variation: 34
      cave-threshold: 0.64
    vanilla-features:
      decorations: false
      mobs: true
      structures: false

Design Notes

  • The terrain before the configured boundary stays stable and overworld-like.
  • Once the configured boundary is crossed, the generator snaps and shears the noise domain to create the stretched, jagged Far Lands look.
  • The implementation uses only public Paper API hooks, so it does not depend on NMS internals.

References

About

PaperMC plugin with configurable Far Lands style terrain generation

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages