This plugin cancels non-player caused damage.
- Native Minecraft Version:
- 1.15
- Tested Minecraft Versions:
- 1.15
- Source Code:
- https://github.com/FesterHead/CancelDamage
Uses Bukkit damage causes.
Mostly made this to nerf fall damage mob farms on my SkyBlock server.
Code (YAML):# This plugin cancels non-player caused damage.
# Use damage causes from bukkit: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html
# Case is insensitive.
# If a damage cause is not configured the defaults will apply.
# For each damage type:
# enabled: Is this damage type enabled?
# False means a damage type is processed normally and skipped from this plugin.
# If false, the other parameters are not needed.
# Default is 'false'
# percent-chance: Percent chance the damage will be cancelled.
# Default is "100". Meaning damage will be cancelled 100% of the time.
# Misconfiguration will use the default value.
# Use "rnd:min:max" for a random chance from min to max determined on each damage event. Use rnd:0:100 for 0 to 100
# percent-cancel: Percent of the damage to cancel, provided the damage is not already cancelled.
# Default is "100". Meaning 100% of the damage will be cancelled.
# Misconfiguration will use the default value.
# Use "rnd:min:max" for a random chance from min to max determined on each damage event. Use rnd:0:100 for 0 to 100
# log-level: 0 = only startup/reload messages, 1 = include enabled damage cause messages, 2 = include all damage cause messages and calculations
damage-cause:
default:
enabled: false
percent-chance: 100
percent-cancel: 100
fall:
enabled: false
percent-chance: 50
percent-cancel: rnd:80:100
log-level: 0
Configuration details:
50% of the time the damage cause will be cancelled.Code (YAML):
percent-chance: 50
Value can be 0 to 100 or a random range in the form rnd:min:max where min and max are the ranges.
If the damage cause is not completely cancelled, this is the percentage that will be cancelled.Code (YAML):
percent-cancel: rnd:80:100
Value can be 0 to 100 or a random range in the form rnd:min:max where min and max are the ranges.
Permissions:
Commands:
- canceldamage.admin - Ability to use admin commands; assigned to op by default
Dependencies:
- /canceldamage reload - Reloads the configuration
Soft dependencies:
- None
- None