You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To add another incentive to use parties, when incapacitated is also installed, incapacitated players could only be revived by someone in their party, this could be toggleable in a config
Describe alternatives you've considered
Alternatively, reviving players in your party could give temporary positive potion effects to the revived player, and potentially disregard the limit for the number of times a player can be revived before permanently dying, while leaving out of party reviving as is
Mod Version
0.0.0
Mod Loader Version
Doesnt apply
Mod Loader
N/A
Additional context
No response
The text was updated successfully, but these errors were encountered:
As of Incapacitated 1.9, released for Neoforge and fabric 1.21.1, and fabric 1.20.1, it is now possible to integrate support in for this.
For fabric support, you'll want to include a listener for IncapacitatedRevivalCallback, giving you instances of the downed player and the player who may or may not be reviving.
If the reviving player can't revive the downed player, you'll want to return RevivePlayerState.INCAPABLE_OF_REVIVING,
otherwise, if they are able to revive the player, you'll want to return RevivePlayerState.CAPABLE_OF_REVIVING.
For neoforge, you'll want to subscribe to ReviveCheckEvent on the event bus. You'll have access to the same parameters as the fabric listener, but in this case, you'll want to cancel the event if the check fails, and not do anything to effect the outcome if the check succeeds. (Unless you're trying to do extra custom logic of course)
I unfortunately do not have the time or energy to support older version/mod loader combos, but support will be maintained for these event hooks into future versions.
Is your feature request related to a problem?
No
Solution(s)
To add another incentive to use parties, when incapacitated is also installed, incapacitated players could only be revived by someone in their party, this could be toggleable in a config
Describe alternatives you've considered
Alternatively, reviving players in your party could give temporary positive potion effects to the revived player, and potentially disregard the limit for the number of times a player can be revived before permanently dying, while leaving out of party reviving as is
Mod Version
0.0.0
Mod Loader Version
Doesnt apply
Mod Loader
N/A
Additional context
No response
The text was updated successfully, but these errors were encountered: