1.0.0
Compatibility
Changes
Adds a highly configurable /heal command used to heal players.
The mod is configured via gamerules:
healAmountsets how much each/healrestores, defaulting to 200 (100 hearts).healCostsets how much health each/healremoves from the healer, defaulting to 0.healsPerLifesets how many uses of/healeach player has, defaulting to 1 (set to -1 for infinite uses).deathsRestoringHealscontrols now many deaths will restore healing capacity, defaulting to -1 (set to -1 for unlimited deaths).healPermissionsRequirementis what permissions level is needed to run/heal, defaulting to 0 (anyone can use it).safeHealingcontrols, given that there is ahealCost, whether or not players can fatally damage themselves by/healing other players. Defaults totrue; players are prevented from using/healwhen they have less health than is needed to pay the cost.
The /heal command itself uses a relatively simple syntax with several options at the moment.
/heal <player> heals the target by the current healAmount and damages the healer by healCost. It is available to any player with permissions higher than healPermissionsRequirement.
/heal query uses <player> displays the number of /heal uses that the target has expended, as well as the current value of healsPerLife. It is available to any player with a permission level of at least 2.
/heal query deaths <player> displays the number of deaths that the target has remaining that will restore healing capacity. It is available to any player with a permission level of at least 2.
/heal restore uses <player> restores all /heal uses to the target. It is available to any player with a permission level of at least 2.
/heal restore uses <player> n restores n uses of /healto the target; this can exceed healsPerLife total uses, giving that player extra capacity. It is available to any player with a permission level of at least 2.
/heal restore deaths <player> resets the deaths counter for the target. It is available to any player with a permission level of at least 2.
/heal restore deaths <player> n restores n deaths to the target; this can exceed deathsRestoringHeals total deaths, giving that player extra capacity. It is available to any player with a permission level of at least 2.
Supplementary resources
| File | Type | Size | |
|---|---|---|---|
| heal-mod-1.0.0-sources.jar | Unknown | 11.38 KiB |
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:J8yFZidd:l3o8oWne"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:J8yFZidd:l3o8oWne"
}

