Leader Mod

A mod based on leadership. It allows for a new play style.

5

Leader Mod

Leader Mod

Leader Mod adds a full political leadership system to Fabric servers. Players vote for an elected leader, fund a shared realm treasury, support decrees, claim bounties, or organize a rebellion to overthrow the throne.

Built for Java 21 with Java 21.

Features

- Player-driven leader elections - Persistent leader, vote, treasury, decree, rebel, and bounty data - Configurable leader abilities with cooldowns - Passive leader aura for nearby allies - Treasury and tribute economy using a configurable item - Leader tax collection from online players - Realm-wide decrees that affect gameplay - Bounties funded from the treasury - Rebellion system that can remove the current leader - Temporary sanctuary zones that prevent PvP - Optional sacrifice ritual - Operator commands for forcing, clearing, and reloading leadership state

Leadership

Players elect an online candidate with:

```text /leader vote <player> ```

When a candidate reaches the configured vote threshold, they become the leader. The role persists until the leader abdicates, an operator clears it, or enough players join a rebellion.

Useful commands:

```text /leader current /leader votes /leader realm /leader abdicate ```

Leader Powers

The elected leader can use dramatic realm powers:

```text /leader lightning <player> /leader imprison <player> /leader rally /leader judgement <player> /leader pardon <player> /leader sacrifice <player> /leader exile <player> /leader sanctuary /leader warcry /leader beacon /leader feast /leader summon <player> /leader loyalty <player> /leader crown /leader proclaim <message> /leader locate <player> ```

Examples:

- Proclaim strikes a target with lightning effects and damage. - Proclaim traps a target in a temporary cage. - Proclaim buffs nearby players. - Proclaim marks and weakens a target. - Proclaim clears negative effects and removes rebel status. - Proclaim teleports a target into the wilderness. - Proclaim creates a temporary no-PvP area. - Proclaim damages, weakens, and knocks back nearby players. - Proclaim grants utility buffs to nearby players. - Proclaim spends treasury resources to heal and feed nearby players. - Proclaim pulls a target to the leader after a warning delay. - Proclaim broadcasts a royal message to the server.

Realm Systems

Leader Mod includes realm management beyond the leader role:

```text /leader tribute <amount> /leader tax /leader decree <none|war|peace|prosperity|storm> /leader rebel /leader rebels /leader bounty <player> <reward> /leader bounties /leader clearbounty <player> ```

Treasury

Players can contribute the configured treasury item, defaulting to emeralds. The leader can spend treasury resources on feasts and bounties.

Decrees

Leaders can set realm-wide decrees:

- `none` - no active decree - `war` - leader attacks hit harder - `peace` - PvP damage is reduced - `prosperity` - ore mining can create bonus rewards - `storm` - leader attacks can trigger lightning sparks

Rebellion

Players can join or leave a rebellion with `/leader rebel`. If enough eligible online players rebel, the current leader is overthrown and the throne becomes empty.

Bounties

The leader can fund bounties from the treasury. When a bounty target is killed by another player, the killer receives the configured reward item and experience.

Configuration

Leader Mod generates a JSON config at:

```text config/leadermod.json ```

Major configurable values include:

- vote threshold - minimum online voters - ability cooldowns - damage values - ability durations - leader aura radius - treasury material - tax amount - rebellion threshold - bounty reward limits - decree effects - sacrifice enable/disable

World-specific leader, vote, treasury, rebel, and bounty data is saved in the world folder under `leadermod/`.

Admin Commands

Operator-level players can use:

```text /leader force <player> /leader clear /leader reload ```

Requirements

- Minecraft 1.21.1 - Fabric Loader 0.18.4 or newer - Fabric API - Java 21

This is a server-side Fabric mod. Clients normally do not need to install it when joining a server that runs the mod.

ADS