What are you searching for?

FlexBorder

FlexBorder

FlexBorder adds a fully configurable world border system designed for PvP, survival, and Battle Royale–style servers.

download 3 Downloads · favorite 0 Followers · Updated 1 week ago
Adventure Game-mechanics Neoforge Utility 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 +6 more

Versions

inventory_2
FlexBorder 0.1

0.1 · 1 week ago · 34.72 KB

Neoforge 1.21.1 1.21.2 1.21.3

About

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 shrinkTime seconds per step
  • Waits pauseTime seconds 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

open_in_new View on Modrinth
Compatibility
Client: Required Server: Required
gavel LicenseRef-All-Rights-Reserved

Conversation

What are your thoughts?

Related projects

Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.3M
favorite 12,712
Utility
Mod Menu
Mod Menu

by Prospector

Adds a mod menu to view the list of mods you have installed.

download 77.7M
favorite 22,127
Library Management Utility
YetAnotherConfigLib (YACL)
YetAnotherConfigLib (YACL)

by isxander

A builder-based configuration library for Minecraft!

download 66.1M
favorite 7,607
Adventure Transportation Utility
Xaero's Minimap
Xaero's Minimap

by thexaero

Displays a map of the nearby world terrain, players, mobs, entities in the corner of your screen. Lets you create waypoints which help you find the locations you've marked.

download 60.9M
favorite 13,668
lock Cookie consent

SkinMC uses cookies to provide functionality and features.