MC/DuneTerrain
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-18 14:50:46 +02:00
..
src Generate Giedi Prime debris at deep diamond-like heights with matching configured attempts and vein size 2026-10-18 14:50:46 +02:00
build.gradle.kts Extract DuneNPC with admin GUI and timed illuminated quest camps 2026-10-13 09:53:25 +02:00
README.md Extract DuneNPC with admin GUI and timed illuminated quest camps 2026-10-13 09:53:25 +02:00
settings.gradle.kts Split DuneTerrain from DuneCore 2026-10-13 02:12:53 +02:00

DuneTerrain for Paper 1.21.4

DuneTerrain is a standalone Paper plugin that generates one Dune planet world per server. It includes the five planet profiles, terrain and ore generation, Arrakis spice deposits and sietches, safe world spawn setup, and a protected Spacing Guild navigator.

New darkstone formations are approximately 100 blocks across (45-55-block radii), with up to three flat plateaus and at most five blocks between levels. Upgrading automatically replaces the old 10/18 default radii in an existing config, while preserving customized sizes. Existing generated chunks are unchanged. With DuneCore installed, loaded spice blooms announce coordinates on Arrakis and start a fifteen-minute countdown to a network-wide Spacing Guild announcement. See Session 2.

Build and install

Build the plugin from this directory with Java 21 and Gradle 8.14 or newer:

gradle clean build

Copy build/libs/DuneTerrain-1.0.6.jar into the Paper server's plugins/ directory. Set server.planet in plugins/DuneTerrain/config.yml separately on each backend, then restart.

Valid values are arrakis, giedi_prime, kaitain, caladan, and sigma_draconis_iv. All five planet profiles are present in each server's config; change server.planet to select the world that backend creates. The generated world is named after the selected planet. Adjust its planets.<planet> settings for terrain, biome, surface, water, vegetation, ores, and spawn coordinates.

Install DuneCore alongside DuneTerrain if you want the Guild navigator to open DuneCore's travel menu. DuneCore reads the loaded planet world to identify its local backend. For proxy travel, set network.local-planet and network.servers in DuneCore's config to match the DuneTerrain selection and proxy server names.

Paper's paper-global.yml and paper-world-defaults.yml do not choose terrain generators; Paper reads those for server and world behavior settings. Terrain generators are registered through bukkit.yml. DuneTerrain loads at startup and exposes its generator to Paper. If Arrakis is the primary world (level-name=arrakis), add this to bukkit.yml:

worlds:
  arrakis:
    generator: DuneTerrain:arrakis
    biome-provider: DuneTerrain:arrakis

For another primary planet, replace both arrakis values with that planet name. When using DuneTerrain's separate planet world alongside a normal primary world named world, the plugin assigns the generator directly as it creates the planet world; no bukkit.yml entry is needed.

The generator applies to newly generated chunks. Existing chunks are never replaced by a config change. If the selected planet world already exists with non-Arrakis terrain or rivers, stop the server, back up and move that world's folder out of the server directory, then restart to create it with DuneTerrain. DuneTerrain registers the generator at startup and creates a separate planet world only after Paper has finished loading, if needed.

Arrakis uses the Desert biome throughout and has no vanilla vegetation. Sparse persistent-leaf oasis trees remain about 300 blocks apart. A larger underground cave sietch generates about every 2,000 blocks; it has a broad stone-arched cave entrance, connected sleeping and kitchen chambers, a gently winding descent to a larger bottom reservoir with a waterfall, and a personal cache per player containing at least 250 tagged spice, enchanted gold armor, planks, and bread. Raised darkstone islands generate about every 750 blocks, with broad flat sand plateaus and steep, exposed blackstone and basalt sides. Spice blows also generate about every 2,000 blocks as a magma cluster; touching one with a living entity or hitting it with an arrow or trident releases a rich suspicious-sand field worth about 15,000 Solaris at the default 15 Solaris per spice. Admins can use /dune admin spiceblow [player] to teleport to the nearest generated or erupted spice blow. Set sietches.spacing, spice-blow.spacing, and planets.arrakis.darkstone-islands.spacing to adjust structure intervals. Random spice patches generate about 35% of 600-by-600-block regions; each patch has roughly 5,000 Solaris in deposits at the default price. Adjust spice-deposits.patches for patch frequency, size, or value.

DuneCore sends new players who have not chosen a faction from Paper's default world to the local planet spawn, so they arrive in the world generated by DuneTerrain.

As of DuneTerrain 1.0.7, Guild Navigator NPC creation is handled exclusively by DuneNPC. Install DuneNPC with DuneCore for automatic Navigators and their travel menus. Existing tagged Navigators are reused. guild-npc.enabled now belongs in plugins/DuneNPC/config.yml; its legacy DuneTerrain value is imported when DuneNPC is first configured.