A lightweight plugin that enhances your server's combat mechanics by allowing you to customize weapon damage, armor durability, and adding an exciting critical hit system!
⚔️ Features
• Customize damage multipliers for swords and axes
• Modify armor durability rates
• Critical hit system with configurable chance and multiplier
• Sword blocking defense system
• Simple and clean configuration file
• Easy reload command
Commands
- /damagemodifier reload - Reloads the plugin configuration
- Permission: damagemodifier.reload
⚙️ Configuration
Everything can be easily customized in the config.yml:
# WEAPONS CONFIGURATION
# ===========================================
# Damage multipliers for swords
# Values greater than 1.0 increase damage
# Values less than 1.0 reduce damage
# Example: 1.3 = 30% more damage
sword_damage_modifiers:
WOOD_SWORD: 1.0 # Base damage for wooden sword
STONE_SWORD: 1.1 # 10% more damage than base
IRON_SWORD: 1.2 # 20% more damage than base
GOLD_SWORD: 1.0 # Same damage as base
DIAMOND_SWORD: 1.3 # 30% more damage than base
NETHERITE_SWORD: 1.4
# Damage multipliers for axes
# Works the same as sword multipliers
axe_damage_modifiers:
WOOD_AXE: 1.0 # Base damage for wooden axe
STONE_AXE: 1.1 # 10% more damage than base
IRON_AXE: 1.2 # 20% more damage than base
GOLD_AXE: 1.0 # Same damage as base
DIAMOND_AXE: 1.4 # 40% more damage than base
NETHERITE_AXE: 1.5
# ===========================================
# DEFENSE CONFIGURATION
# ===========================================
# Defense modifier when blocking with sword
# Lower value = more defense
# Example: 0.5 means damage is reduced by half
sword_block_defense_multiplier: 0.5
# Shield Settings
shield_configuration:
damage_reduction: 0.5 # Reduces damage by 50%
durability_multiplier: 1.0 # Shield Durability Multiplier
disable_duration: 1.0 # Duration in seconds that the shield is disabled when hit by an axe
# ===========================================
# DURABILITY CONFIGURATION
# ===========================================
# Durability modifiers for armor
# enabled: true/false - Enables or disables the modifier
# multiplier: Value that affects durability
# - Values greater than 1.0 = more durability
# - Values less than 1.0 = less durability
armor_durability_multipliers:
LEATHER:
enabled: true
multiplier: 1.0 # Base durability for leather
CHAINMAIL:
enabled: true
multiplier: 1.2 # 20% more durability than base
IRON:
enabled: true
multiplier: 1.5 # 50% more durability than base
GOLD:
enabled: true
multiplier: 1.0 # Same durability as base
DIAMOND:
enabled: true
multiplier: 2.0 # Double durability than base
NETHERITE:
enabled: true
multiplier: 2.5 # More durable than diamond
# ===========================================
# CRITICAL HITS CONFIGURATION
# ===========================================
# Critical hits system
critical_hits:
enabled: true # true = enabled, false = disabled
default_multiplier: 1.5 # Default critical hit multiplier (1.5 = 50% more damage)
chance: 0.2 # Critical hit chance (0.2 = 20% chance)
visual_effect: true # Set too false to disable the critical hit visual effect
# Weapon-specific critical multipliers
weapon_multipliers:
WOOD_SWORD: 1.5
STONE_SWORD: 1.5
IRON_SWORD: 1.5
GOLD_SWORD: 2.0 # Gold weapons do double critical damage
DIAMOND_SWORD: 1.5
NETHERITE_SWORD: 1.5
WOOD_AXE: 1.5
STONE_AXE: 1.5
IRON_AXE: 1.5
GOLD_AXE: 2.0 # Gold weapons do double critical damage
DIAMOND_AXE: 1.5
NETHERITE_AXE: 1.5
# ===========================================
# DAMAGE CALCULATION CONFIGURATION
# ===========================================
damage_calculation:
round_damage: true # Whether the damage should be rounded
decimal_places: 2 # Number of decimal places for rounding
ignore_empty_hands: true # Whether empty-handed punches should be ignored
Installation
Stop your server
Place the plugin .jar in your plugins folder
Start the server
Configure the plugin in config.yml
Use /damagemodifier reload to apply changes
Support
If you find any bugs or have suggestions, please report them in the discussion section.