Mods / Unconscious

Category: #QoL #Tweak
Author: propaneko
Side: Both
Created: 3 days ago
Last modified: 7 hours ago
Downloads: 284
Follow Unfollow 14

Latest file for v1.19.8:
Unconscious_1.3.0.zip 1-click install


ON UPDATE, REMOVE OLD CONFIG FILE OR UPDATE IT ACCORDINGLY TO THE CONFIGURATION BELOW

kinda works on 1.20-pre, they changed something with hp attributes, so the hp after revive stays the same. Will address this after stable release of 1.20.

Description


Mod that adds a new "unconscious" behavior for the player that is about to die. After getting into critically low hp that would kill you, now you will go into the state of being unconscious for 5* minutes. You can wait to bleed out.. finish yourself.. or be on a mercy of another player... but also! Someone can come in a shining armor and can pick you up if the decide to do so!

If player is unconscious you can hit him again to have a choice beetween Finishing him or leaving him be (and bleeding out), before doing so you need to wait for 3* seconds. Any attack registered on the player that want to finish the victim will close the options screen.

If you want to Revive player you need to hold (Shift + Right Click) on him, you move too much and you will cancel the action. Player that are picked up starts with 15%* of the max hp.

added SelfRevive option, default chance is set to 0%, after the timer ends you can add a chance that the plyer will "lick their wounds themself", and stand up on their own.

added PickUp mechanic (its very very rough right now but it works), similar to Revive hold (ctrl + Right mouse) until you get message that you picked player, he will move after you till he wakes up, you receive damage, you got unconscious. Or you cancel the carrying action by again clicking single time (ctrl + Right mouse) on the player you carry, while moving the unconscious person you get big debuff to move speed.



Mod also is created for and used on our RP server. Edenval RP.

*(default can be changed in config) 

Commands


/unconscious <player> - make player unconscious
/revive <player> - picks up the player

Configuration


{
  "UnconsciousDuration": 300, // in seconds
  "RevivePerTickDuration": 0.2, // this is value per tick, the lower it is the slower the revive is
  "PickupPerTickDuration": 0.75, // this is value per tick, the lower it is the slower the pickup action is
  "FinishingTimer": 10, // in seconds
  "MaxHealthPercentAfterRevive": 0.15, // 1 = 100%, 0.5 = 50%, 0.15 = 15% etc...
  "ChanceOfSelfRevival": 0.0, // 1 = 100%, 0.5 = 50%, 0.15 = 15% etc...
  "EnableCarryMechanic": true,
  "DropWeaponOnUnconscious": true,
  "UnconsciousCmdPrivilege": "ban",
  "ReviveCmdPrivilege": "ban"
}

Ideas & Bugs


- when player is in uncoscious state and starts moving his character will start animation of "walking" but he will still be down.

My other mods


Unconscious - New system which adds an unconscious behavior. Preferable added to multiplayer servers.

Notice Board - Notice board where you can post and read player notices. Focused on RP aspect.

Contribution & Thanks


- None for now

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.3.0 25 7 hours ago Show Unconscious_1.3.0.zip Install now
v1.2.1 98 1 day ago Show Unconscious_1.2.1.zip Install now
v1.2.0 4 1 day ago Show Unconscious_1.2.0.zip Install now
v1.0.1 25 1 day ago Show Unconscious_1.0.1.zip Install now
v1.0.0 78 2 days ago Show Unconscious_1.0.0.zip Install now
v0.1.0 54 3 days ago Show Unconscious_0.1.0.zip Install now

11 Comments (oldest first | newest first)

💬 Screwy, 1 day ago

Yup, works perfectly fine now =)
Thank you for responding so quick. We have all been waiting for exactly this mod!

💬 propanekoAuthor, 1 day ago

Another big patch with new features and fixes, described on the page, enjoy :3

💬 propanekoAuthor, 1 day ago

Screwy I've added a small bugfix, let me know if it works now. And how you test if the mod is working?

💬 propanekoAuthor, 1 day ago

Im gonna look into that, it's hard for me to replicate the issue without any context, and errors x3

💬 Screwy, 1 day ago

@propaneko huge thanks for this really awesome mod! I run a multiplayer server with a pretty tough survival modset and this would be a perfect match.
But unfortunately I think I have the same issue as MrPuppeteer and I wonder if there is anything I could do to make it work.
I've tested the mod locally in single player. But on my server it won't work, even if I use the exact same modset.
Is it because I host the server from a docker container? Or because the world was generated in 1.18?

💬 propanekoAuthor, 2 days ago

Yup, everything that can damage you will got you into state of unconscious. And no, after someone will pick you up, and you got damaged again, you will again go down into unconscious state. I was trying to keep it simple for now. Inflectus

💬 Inflectus, 2 days ago

I'm guessing this works even if you get knocked out by animals? Also, is there a period after getting revived where getting knocked unconscious would instantly kill you instead?

💬 propanekoAuthor, 2 days ago

Hmm that's weird it should work on preexisting saves and servers. It depends HOW old is the save but everything created on 1.19.8 should work. We added this mod to our server that is 3 months old and everythins seems to be working fine. MrPuppeteer

💬 MrPuppeteer, 2 days ago

There is only one thing I have run into so far. It seems to not work with old saves or preexisting servers. Even after putting the mod on the server and a restart. It seems to not work. @propaneko

💬 Afroman726, 3 days ago

This mod is freaking awesome! Love the concept!

💬 MrPuppeteer, 3 days ago

This is what I have been hoping for a while! Thanks for putting in the time!

(edit comment delete)