Last Stand (Beta)
Forge 1.20.1 · Requires Player Animator · Gecko Lib 4 · TACZ supported (optional)
Usages
Feel free to add this mod to mod packs; please remember to credit me.
Beta notice
This is an early beta. The core systems are functional and ready to be used. I intend to add proper animations and bug fixes over time.
Feedback
Found a bug or have an idea? Please report it through my Discord or comments page, with other mods installed and steps to reproduce. Thank you for testing!
Description
This mod adds a Downed But Not Out (DBNO) system that lets players revive and interact with downed players for a more cooperative experience.
Requirements
- Minecraft 1.20.1 with Forge
- Player Animator (required, client-side)
- Gecko Library 4 (this is currently unused but set as a dependency for later)
- TACZ (optional, guns are supported through the whitelists)
- Install the mod on both the server and the clients
Downed State and Bleed-Out
- Instead of dying, you are put in a downed state. You crawl in a downed pose with reduced speed.
- A bleed-out timer counts down. When it reaches zero, you die.
- Taking damage while downed will decrease the bleed meter
- Downed players can swim in water. (more can be configured)
- Optional forced camera perspective while downed.
- Creative and spectator players are never downed.
Reviving
- Teammate revive: hold right-click on a downed player to revive them over the course of 5 seconds.
- While reviving, you can drag the downed player along to pull them out of danger mid-revive.
- Reviving is cancelled if you let go, get too far away, or either player dies.
- Revived players return with 25% health.
Self-Revive Items
(Unfinished) Three consumables let a downed player get themselves back up. Which items work while downed is controlled by the whitelist.
| Item | Use time | Notes |
|---|---|---|
| Self Revive Kit | 3 seconds | Fastest standard option |
| Drone Self Revive Kit | 6 seconds | Mid-speed option |
| Makeshift Self Revive | 10 seconds | Slowest, usable only while braced in cover (by default) |
A config option can limit players to one self-revive per life. Self-revives restore 25% health.
NOTE: At the moment, these are creative mode exclusive
Cover
- Press the cover key while downed next to a block to brace against it.
- While in cover, you can use extra whitelisted items.
- Entering cover multiplies your remaining bleed-out time, rewarding smart positioning.
- An optional setting makes cover permanent once you commit to it.
- If the block you are braced against is destroyed, you are placed on safe ground automatically.
- Press the interact key shown on screen to leave cover.
Downed Loadout and Hotbar
- Item whitelist: While downed, you can only use items listed in the config. Everything else is locked out. A separate list covers items usable only in cover.
- Loadout screen: Open your inventory and press the loadout key to choose what items to use while downed. When downed, your chosen items are automatically swapped into those hotbar slots, and everything is swapped back when you recover. Items are never lost. This allows for optional hotbar customization.
- Compact hotbar: by default, the downed hotbar shows only usable slots. Players can switch to the full hotbar at any time with Shift + ` (also a config option), so nobody has to edit files to change it.
- Slot selection, scrolling, and the inventory are locked appropriately while downed.
Carrying, Human Shield and Throwing
One player can pick up a downed teammate in two different ways. You must put the player down before switching to the other mode.
Carry (G)
- Look at a downed player within reach and press G to pick them up. Press G again to put them down.
- The carried player is draped over your shoulder, and their hitbox rides behind you so they can still be hit and take damage like any downed player.
- Carriers move slower and cannot sprint or jump.
Human Shield (H)
- Press H while facing a downed player to grab them upright in front of you, lower and to the left, as a hostage shield.
- Enemies can shoot the hostage, and the hostage's bleed-out drains from the damage.
- You move at 50% speed by default while holding a hostage.
- Press H again to put them down.
Throwing (Shift + G)
- While carrying someone, press Shift + G to throw them forward. Throw strength is configurable.
Rules shared by carry and shield
- Your offhand item is stored while you hold someone and returned when you put them down.
- You cannot damage the player you are holding, and your own arrows and projectiles pass through them.
- You use a separate item whitelist while holding someone. Tools and melee weapons (swords, axes, pickaxes, shovels, hoes, and modded equivalents) are allowed automatically.
- The carried player cannot act, and the carrier cannot start a revive while holding someone.
- Holding is released safely on death, logout, dimension change, or game mode change.
TACZ and Modded Item Support
- TACZ guns, ammo, and attachments are whitelistable by their specific ID (for example
tacz:m1911). - You can also whitelist by normal registry name for any modded item.
Animations and Visuals
- Downed enter, crawl idle, crawl walk, swim, cover enter, cover idle, and stand-up animations.
- Self-revive animations.
- Carry and shield poses, with the carried player drawn on your shoulder or in front of you.
Keybinds
All keys are rebindable under the Last Stand category.
| Action | Default key |
|---|---|
| Brace for cover | X |
| Toggle downed loadout screen | ` (backtick) |
| Toggle compact / full downed hotbar | Shift + ` |
| Carry / put down | G |
| Throw carried player | Shift + G |
| Hold player as shield / put down | H |
Configuration
Everything below is adjustable in the config file.
- Downed: bleed-out time, damage-to-bleed multiplier, cover multiplier, cover lock, revive time, one self-revive per life, downed move speed, swimmable fluids, forced camera perspective.
- Item lists: allowed downed items, allowed cover items, carry loadout, shield loadout.
- Carry and shield: carrier move speed, shield move speed, carry range, throw velocity, automatic tool allowance.
- Client: compact downed hotbar (also togglable in game).
Known Limitations (Beta)
- Carry, shield, and hostage poses are placeholders. Dedicated animations are planned for later.
- The hostage hitbox is a small box that follows the carrier's look direction. (I plan to revamp this system)
- In first person while carrying, the carrier's head (and any helmet) is hidden so it doesn't block the view. (This may not always work; I am currently looking for a workaround)
- TACZ bullets can be stopped by the hostage's hitbox on a direct hit; however, this is rare.
- No damage modifiers for shields yet.
- A first-person self-revive animation is planned.