plugins/DuneRealms-minecraft-only
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-27 23:43:05 +00:00
..
src Fresh production baseline [skip ci] 2026-11-27 23:43:05 +00:00
ARRAKIS_TRAVEL_RULES.md Fresh production baseline [skip ci] 2026-11-27 23:43:05 +00:00
ARRAKIS_WATER.md Fresh production baseline [skip ci] 2026-11-27 23:43:05 +00:00
build.gradle.kts Fresh production baseline [skip ci] 2026-11-27 23:43:05 +00:00
FACTION_ABILITIES.md Fresh production baseline [skip ci] 2026-11-27 23:43:05 +00:00
IMPERIAL_APPOINTMENTS.md Fresh production baseline [skip ci] 2026-11-27 23:43:05 +00:00
MINECRAFT_ONLY_SCOPE.md Fresh production baseline [skip ci] 2026-11-27 23:43:05 +00:00
NETWORK_SETUP.md Fresh production baseline [skip ci] 2026-11-27 23:43:05 +00:00
POLITICS_SETUP.md Fresh production baseline [skip ci] 2026-11-27 23:43:05 +00:00
README.md Fresh production baseline [skip ci] 2026-11-27 23:43:05 +00:00
settings.gradle.kts Fresh production baseline [skip ci] 2026-11-27 23:43:05 +00:00
SHARED_DATABASE_SETUP.md Fresh production baseline [skip ci] 2026-11-27 23:43:05 +00:00

DuneCore for Paper 1.21.4

The detailed player and administrator manual includes the complete Arrakis guide, command reference, configuration defaults, and reserved chapters for all other planets. DuneCore 1.0.5 renders sandworms as Sniffers while retaining native zombie AI through invisible Husk controllers; /dune summon sandworm [x y z] is available to admins.

Requires Java 21 and Gradle 8+. Build each project folder separately. Install Vault, then DuneEss, DuneCore, DuneNPC, and DuneTerrain into Paper's plugins/ directory. The downloadable server package includes Vault 2.5.0. DuneEss owns Solaris and Guild/admin travel and registers its economy through Vault; DuneCore provides factions, spice gameplay, politics, and jobs; DuneTerrain generates the planet worlds. Remove the old DuneRealms.jar when upgrading.

Commands: /dune choose fremen|harkonnen|corrino|atreides|ordos, /dune kit, /dune guildnpc (OP), /dune givespice (OP), /duneess balance, /duneess sell, /duneess travel [planet], and /duneess admin .... Use /dune help or /duneess help for the spaced, boxed chat guide with clickable Previous/Next links. /duneess help <page> opens a page directly and /duneess help menu opens the inventory guide.

For proxy travel, configure network.local-planet for this backend and the network.servers proxy names. The selected world is generated by DuneTerrain, with server.planet in plugins/DuneTerrain/config.yml set to the same planet. DuneTerrain applies terrain generation only when the world is first created; existing worlds and generated chunks are not replaced. On Arrakis, defaults place cave sietches and spice blows about every 2,000 blocks, and raised darkstone islands about every 750 blocks, with broad flat sand plateaus and steep exposed blackstone and basalt sides. Sietches include a stone-arched cave entrance, sleeping and kitchen chambers, a gently winding descent to a larger reservoir with a waterfall, and a personal cache with at least 250 tagged spice, enchanted gold armor, planks, and bread. Hitting a spice blow with an arrow or trident, or touching it with a living entity, releases a rich spice field worth about 15,000 Solaris. Oasis trees remain sparse at roughly 300-block spacing. Admins can use /duneess admin teleport <arrakis|sietch|spiceblow> [player] for Arrakis landmarks, /duneess admin spicebloom [player] to place an untriggered bloom about 50 blocks ahead, and /duneess admin solari <player> <amount> to grant Solaris. Hostile Haunted Fremen husks spawn on Arrakis, with an increased chance near fields worth more than 5,000 Solaris; configure them under spice-raiders in DuneCore's config.

Suspicious sand on Arrakis is harvestable spice. Use the tagged netherite spice shovel from /dune kit. Spice can be sold with /duneess sell and Solaris spent through Guild travel. Each faction has a passive perk; Fremen harvest double spice. Faction data persists in plugins/DuneCore/players.yml; DuneEss imports legacy balances from old Dune player files and stores them in its own balances file or shared economy table.

Limitations: this is a gameplay prototype, not a fully polished mod. Custom equipment uses vanilla items and colored names, not resource-pack models. Worlds have themed terrain, but no cities, unique buildings, or detailed biome decorations. Guild NPCs are placed by operators. No permissions-based faction change for ordinary players. The plugins compile with Java 21; live Paper/Velocity gameplay verification remains pending.

Admins with dune.admin can force teleport to Arrakis or generated landmarks with /duneess admin teleport <destination> [player]. Omit the player name to teleport yourself. From console, specify an online player. These commands require the Arrakis world to be loaded on that backend.

Sandworms (Shai-Hulud)

Visible oversized Sniffers with invisible Husk controllers supplying native zombie AI spawn on sandy surfaces near players only on Arrakis, at most once per hour serverwide by default. The successful spawn time is saved in the plugin config, so a restart does not reset the cooldown. They have 500 health, 8 melee damage, a controller movement attribute of 0.33, and visible scale 3.5, and play a Warden roar when emerging. Settings are under sandworms in config.yml. Admins can use /dune summon sandworm [x y z] to summon one explicitly. Arrakis sightings include coordinates and a fifteen-minute warning before the Vaerkring informs the network. See Session 2 for timer persistence, proxy delivery, and plateau settings.

Spice contracts and sandworm blooms

  • On Arrakis, defeating a sandworm generates a broad patch of suspicious-sand spice deposits with a target base harvest value of 100,000 Solaris (actual value depends on available sandy terrain and faction bonuses).
  • Players begin on their faction's homeworld after choosing a faction and respawn there.
  • /dune exchange shows open spice contracts.
  • /dune job post <spice quota> creates a contract.
  • /dune job accept <player> accepts another player's contract and transports the worker to Arrakis.
  • Contract harvesting pays 15% of spice sale value to the worker and 85% to the sponsor automatically, with no double sale of contracted spice.
  • /dune job finish leaves a job; /dune job cancel cancels an unclaimed listing.
  • A sponsor's job remains listed across restarts, but active worker assignments must be reaccepted after restart.

Session 2 builds all three plugin JARs and runs automated terrain, announcement, and command-validation tests.

Hourly server-issued CHOAM jobs

Edit plugins/DuneCore/server-jobs.yml to configure job title, spice-required, pay, and time-limit-minutes. offers-per-hour controls how many are randomly selected. Listings rotate every hour at UTC hour boundaries. Existing accepted contracts persist through restarts, including their original deadlines; if a definition is removed while active, that contract expires without a fine.

Commands: /dune serverjobs (list), /dune serverjobs accept <id> (accept), /dune serverjobs reload (admin; reload definitions). Harvesting spice with the stillsuit and axe advances the active server contract. Successful completion pays the configured amount. Failure after the deadline incurs a 5% fine on the configured pay, rounded up. Fines can produce negative Solaris balances (debt). Contracts expire even while players are offline, checked every 10 seconds while the server is running.

Server-issued contracts are separate from player-to-player exchange contracts. Harvesting can advance both simultaneously; server jobs pay their own fixed completion reward, and normal spice drops/player contract earnings remain unchanged.

Chest-style GUI

/dune or /dune gui opens the native Minecraft chest inventory menu. It has navigation for guild travel, faction choice, harvesting kit, spice sales, balance, hourly server contracts, and player-to-player spice jobs. GUI clicks invoke the same permission-checked commands or existing travel logic. The exchange supports preset 100/500/1000-spice postings; arbitrary amounts remain available through /dune job post <amount>. No external ChestCommands plugin dependency is required.

Dune Navigator menu item

Each joining player receives a persistent-data-tagged Nether Star named Dune Navigator (unless already present). Left-click or right-click while holding it in the main hand opens the main chest GUI. Interaction is cancelled to avoid accidentally hitting or activating blocks. /dune menuitem gives a replacement when missing; /dune and /dune gui still work. The menu item is recognized by its plugin tag, not its display name.

Fully configurable GUI (gui.yml)

The GUI is now configured by plugins/DuneCore/gui.yml, copied from resources on first startup. Every menu has an editable title, chest size (9–54 in multiples of 9), and items with icon, slot, name, lore, and action. Use /dune guireload (admin) after editing. Supported actions are open:<menu-id>, dune:<subcommand>, close, and none. Arbitrary console commands are intentionally not supported. Dynamic CHOAM jobs, factions, and planets use editable dynamic sections, including icon, starting slot, step, lore, and action. Placeholders: %player%, %balance%, %travel_cost%, %active_job%, %id% (dynamic). Menu opener item continues to work with either mouse button.

NOTE: Player-to-player exchange listings can still be accepted through /dune job accept <player>; the configurable exchange menu currently includes configurable posting/cancel/leave controls but does not yet render dynamic player listings.

Faction-colored glass pane backgrounds

The chest menus use configurable stained glass panes as the backdrop, based on the player's selected faction: Harkonnen red, Ordos/Fremen green, Atreides blue, Corrino purple. Unassigned players get gray. Interactive items overwrite background panes. On the faction selector, each faction choice is itself represented by its corresponding colored glass pane. Colors can be changed under backgrounds: in gui.yml, and individual menus can disable the backdrop with faction-background: false. /dune choose ordos is accepted as an alias for Fremen; this does not change existing saved faction data.

Faction-colored stillsuits

/dune kit now grants four leather armor pieces dyed to match the player's faction GUI background: Harkonnen red, Ordos/Fremen green, Atreides blue, Corrino purple. The items keep their stillsuit persistent-data identifier, so full-set spice harvesting continues to work. Existing already-issued armor is not recolored automatically; use /dune kit to obtain a newly dyed set.

Expanded faction palette

Fremen now have orange armor and orange glass; Ordos is a distinct green faction with green armor and green glass. Harkonnen remains red, Atreides blue, Corrino purple. Vaerkring is reserved as a black visual/armor color (spacing_guild) but is not a selectable player faction, so no Guild armor is issued through /dune kit yet. Ordos currently shares Arrakis as a starting planet. Color values are hardcoded for dyed armor; GUI glass materials are configured in gui.yml.

Netherite-strength armor and winged stillsuit

Each stillsuit armor piece has the same armor points (3/8/6/3), armor toughness (+3 per piece), and knockback resistance (+0.1 per piece) as vanilla netherite armor. Leather stillsuit pieces retain their faction dyes; vanilla leather durability is unchanged.

/dune elytra or the main menu's Winged Stillsuit Upgrade merges the currently worn stillsuit chestplate with one Elytra from inventory for 1,000,000 Solaris. The worn chestplate and Elytra are consumed and replaced with a real Elytra that has netherite chestplate defense and retains the stillsuit tag, allowing harvesting with the full suit. Elytra flight works normally. The winged chestpiece is an Elytra item and therefore cannot display the leather chestplate's faction dye without a resource pack. It uses a faction-colored display name instead. Existing armor needs reissuing with /dune kit to gain the new attributes.

IMPORTANT: Code is source-only and not yet compiled or in-game tested.

Arrakis burning sun

Players on Arrakis without all four stillsuit pieces (including a winged stillsuit Elytra chestpiece) ignite visually when standing in direct daytime sunlight. A 300-second continuous exposure timer kills them when it expires. Shade beneath a solid roof, caves, night, rain, wearing a full stillsuit, and leaving Arrakis stop exposure and reset the timer. Creative/spectator players are exempt. The burning effect is visual during the countdown: fire-tick damage is suppressed while exposed, so the countdown lasts the configured five minutes. The timer is in memory and resets on restart. Configure arrakis-sun in config.yml.

Contrasting faction armor trims and Ordos homeworld

Each newly issued leather stillsuit piece receives a distinctive vanilla smithing armor trim, contrasting with its faction dye:

Faction Base dye Trim pattern Trim material / visual color
Harkonnen Red Rib Diamond / cyan
Ordos Green Sentry Redstone / red
Atreides Blue Coast Copper / orange
Corrino Purple Spire Gold / yellow
Fremen Orange Dune Lapis / blue
Vaerkring (reserved) Black Eye Quartz / white

Ordos starts and respawns on its own generated planet sigma_draconis_iv (Sigma Draconis IV). Its dark, snowy terrain profile is configured by DuneTerrain. The Vaerkring remains a non-playable faction and does not receive its own kit through normal gameplay. Existing armor is not automatically upgraded; issue a fresh kit.

Wearing a complete Ordos stillsuit and using an ender pearl activates Shadow Step: the player and armor are invisible for five seconds. The armor is returned after the effect, on logout, or when the plugin shuts down. The Ordos kit also includes a reusable Implosion Charge: its Wind Charge projectile primes TNT immediately on impact and replaces the charge in your inventory after launch.

The trims are Minecraft's built-in vanilla patterns, not custom resource-pack models. This source has not been compiled or tested on Paper.

Proxy mode

See NETWORK_SETUP.md for the five-server Velocity topology, required per-server config, and critical shared-data limitations.

Contracts now have a 30-minute real-time deadline, including offline time and server downtime. The remaining time appears in the mission menu and /dune smuggle status. Expired missions consume no cargo and pay no reward. When the last mission expires, the source smuggler returns to green particles and normal roaming, and its temporary lighting is removed. Contracts created before 1.0.8 receive one initial 30-minute window when first upgraded; subsequent restarts preserve their saved deadline.

Block-display sandworm (Core 1.0.13)

sandworms.model: display renders the existing Husk/Sniffer pair as a 27-part segmented block-display worm. The Sniffer remains the damageable hitbox, and the current AI, health and reward paths are retained. This model needs no custom resource pack. Use sandworms.model: sniffer for the original appearance.

The display model rises, follows the controller path, flashes on damage and sinks on death. Movement history is capped at 256 samples; initial terrain sampling avoids loading chunks. Model parts are non-persistent and are removed when the plugin stops. Display-spawn failure removes partial parts and keeps the Sniffer visible. Visual body segments have no additional collision hitboxes. Client appearance and large worm populations should be assessed in gameplay before raising the configured population cap.