
FlexBorder
FlexBorder adds a fully configurable world border system designed for PvP, survival, and Battle Royale–style servers.
This mod is a reimagining of my old mod Border like Battle Royale
What This Mod Adds
This mod adds a single, powerful command:
/flexborder
All setup and control is done through its subcommands.
🧭 Features
- 📦 Asymmetric rectangular border (any X/Z coordinates)
- 🔄 Smooth animation of shrinking or repositioning
- 🧲 Soft pushing toward the safe zone when slightly outside
- 🕳️ "Rescue" teleportation with dark screen + impulse if far away
- 🩸 Health penalty system that reduces max HP on each death (down to 1 HP), like a Mediumcore mod
- 🕒 Configurable development phase (safe exploration period)
- 🏁 Built-in Battle Royale mode: automatic shrinking with pause phases
- 🔃 Fully resyncs on player join or dimension switch
- ✅ Persistent state (saved in world data)
- Translation to hardcore in "battle mode"
Command Reference
/flexborder set <x1> <z1> <x2> <z2> [dimension]
Set the rectangular border in the given dimension (or current one).
Coordinates define the opposite corners.
/flexborder get [dimension]
Display current border settings.
/flexborder dev <duration> <shrinkDistance> <shrinkTime> <pauseTime> <minSize>
Start a development phase for the given number of seconds.
During this phase:
- Players lose max HP on death (but stay alive)
- Border stays still
When time is up, Battle Royale mode starts automatically.
🧪 Example: /flexborder dev 300 10 15 10 50
→ Wait 5 minutes, then start shrinking every 10 blocks, taking 15s per step, with 10s pauses, until the zone is 100×100 (minSize=50).
/flexborder brstart <shrinkDistance> <shrinkTime> <pauseTime> <minSize>
Start shrinking the border in steps:
- Shrinks by
shrinkDistance(on both X and Z) - Takes
shrinkTimeseconds per step - Waits
pauseTimeseconds between steps - Stops when either half-size reaches
minSize
Example:
/flexborder brstart 5 10 10 50
/flexborder brstop
Stop any ongoing shrinking animation.
/flexborder hploss <amount>
Set how much maximum HP is lost per death during development phase.
HP never goes below 1 HP and never reduces more than 20 total HP.
Example:
/flexborder hploss 2.0
Each death removes 2.0 max HP from the player.
/flexborder hpreset [targets]
Reset max HP penalty. Restores players' original HP cap.
Heals players by the lost amount (but not above new max).
If no targets specified, resets for command sender.
Examples:
/flexborder hpreset
/flexborder hpreset @a
🔒 Permissions
All /flexborder subcommands require level 4 permission (admin by default).
Only the command sender sees any messages in chat.
📌 Requirements
- 📦 NeoForge 21.1.200+
- ⚙️ Must be installed on both client and server (for rendering + logic)
- 🧠 No mixins, cleanly integrated via event hooks
- 💾 Border data saved per-dimension (via world capabilities)
- Completely removes vanilla worldborder, do not use with mods that change worldborder
💡 Use Cases
- Hardcore survival servers with soft boundaries
- Battle Royale gamemodes
- PvP arenas with dynamic safe zones
- RPG maps with exploration followed by collapse