
FlexBorder
FlexBorder adds a fully configurable world border system designed for PvP, survival, and Battle Royale–style servers.
About this Mod
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
Available Versions
How to Install FlexBorder on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set neoforge Loader
In the panel under "Egg", select the neoforge loader and matching Minecraft version (1.21.11).
Install Mod
Open the mod browser in the dashboard and search for "FlexBorder". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.11, 1.21.10, 1.21.9 (+8 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
FlexBorder server crashes on startup – what to do?
Most common cause: wrong neoforge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.
Is FlexBorder compatible with neoforge?
FlexBorder officially supports neoforge for Minecraft 1.21.11, 1.21.10, 1.21.9. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with FlexBorder – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if FlexBorder consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install FlexBorder with just one click on your server.