
Only Fight or Flight
A simple, highly-configurable mod that restricts building while in combat.
Screenshots

About this Mod
Only Fight or Flight adds a simple and highly-configurable system similar to open-world sandbox rpgs where players cannot place blocks in the middle of a fight!
No more instant blockades or quick block bridging away during fighting! Discourage making holes and blocking their entrance as the ultimate strategy! Use to reinforce roleplay, make horror entities more dangerous, or just to try something new! Even contains configs for better fine-tuning!
To get into specifics:
Different actions will set the player into combat, in which case they will be unable to build blocks (or certain blocks) until a period of uninterrupt time has passed. Actions that trigger combat include:
- Dealing damage to a mob or player
- Taking damage from a mob or player
- Being targeted by a hostile mob close-by
Each action can set different lengths of combat time. All these times are configurable!
Other configuration includes:
- Whitelist any placeable blocks or set a blacklist to allow only certain blocks to be affected.
- Turn this feature off for certain mobs, or only only have it affect a selection of mobs of your choice.
- Option to enable in-combat effects when in proximity with mobs.
The mod also adds an optional ui icon for when you are in combat, and a reminder when you attempt to place a block!

Feel free to use this in modpacks within Modrinth or Curseforge!
If you find any bugs or have any suggestions, check out the discord!
Or if you like to donate and support my work, check out my Ko-Fi! ^-^
Available Versions
How to Install Only Fight or Flight on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set forge Loader
In the panel under "Egg", select the forge loader and matching Minecraft version (1.21.1).
Install Mod
Open the mod browser in the dashboard and search for "Only Fight or Flight". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.1, 1.20.1
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Only Fight or Flight server crashes on startup – what to do?
Most common cause: wrong forge 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.1). You can switch loaders with one click in the panel.
Is Only Fight or Flight compatible with forge and neoforge?
Only Fight or Flight officially supports forge, neoforge for Minecraft 1.21.1, 1.20.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Only Fight or Flight – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Only Fight or Flight 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 Only Fight or Flight with just one click on your server.

