Перейти к содержимому
Mineforgian

Damage Plugin

Supercharge your combat! This plugin introduces a configurable charged attack mechanic, allowing players to hold their attack for increased damage with tiered bonuses and visual HUD feedback.

Загрузки
84
Подписчики
0
Обновлён
9 мая 2025 г.
Лицензия
MIT

Опубликован 9 мая 2025 г.

DamagePlugin: Unleash Devastating Charged Attacks!

Transform your server's combat with DamagePlugin! This highly configurable plugin introduces a dynamic charged attack mechanic, allowing players to strategically power up their strikes for significant bonus damage. Move beyond simple click-spam and add a new layer of skill and timing to melee encounters.


Key Features:

  • 🔋 Charged Attack System:

    • Players can hold a configured key combination (default: Sneak + Right-Click) with designated tools to build up a charge.
    • The longer the charge, the greater the potential bonus damage on their next hit!
  • 🔧 Fully Configurable Damage Tiers:

    • Define multiple tiers of charging in config.yml.
    • Set custom charge durations (seconds) required to reach each tier.
    • Assign specific bonus damage amounts for each tier.
    • Damage is interpolated if a player releases their charge between defined tier thresholds, providing a smooth damage progression.
  • 📊 Visual HUD Feedback:

    • Players receive real-time feedback via a customizable action bar HUD.
    • Choose between a "DETAILED" style (showing a prefix, percentage, and a visual bar) or a "SIMPLE_PERCENTAGE" style (showing only the charge percentage).
    • Customize the HUD prefix, percentage color, and the characters/colors used for the visual bar's different states (tier 1, tier 2, tier 3, default fill, empty).
    • Set the total number of segments for the visual bar.
  • 🐌 Slowness Effect During Charge:

    • To add a risk/reward element, players experience a slowness effect while charging.
    • The slowness level (I, II, III) automatically corresponds to the damage tier currently being charged, increasing as the charge gets stronger.
    • This effect is immediately removed upon executing the charged attack or cancelling the charge.
  • ⚙️ Customizable Activation & Cancellation:

    • Activation Method: Choose precisely how players initiate a charge via config.yml:
      • SNEAK_RIGHT_CLICK (Default)
      • LEFT_CLICK (Normal left-click, without sneaking)
      • SNEAK_LEFT_CLICK
    • Cancellation Method: Allow players to cancel an ongoing charge:
      • LEFT_CLICK (Default): A single left-click will cancel the current charge.
      • NONE: Charge only cancels upon attacking, switching items, or other standard game actions.
  • 🗡️ Selectable Chargeable Items:

    • You have full control over which tools and weapons can utilize the charged attack mechanic.
    • Simply list the Minecraft Material names (e.g., DIAMOND_SWORD, NETHERITE_AXE) in the chargeable-items section of config.yml.
  • 💬 All Messages Configurable (with Color Codes!):

    • Tailor every player-facing message to fit your server's theme and language.
    • Customize HUD text, charge cancellation messages, successful attack notifications, permission errors, and command usage instructions.
    • Full support for standard Minecraft color codes using the & symbol.
  • 🔄 Reload Command:

    • Easily apply configuration changes without needing a full server restart using the /chargedattack reload command.
    • Aliases: /ca reload, /damagecharge reload.
    • Permission: damageplugin.command.reload (defaults to OP).
    • Tab completion for the reload subcommand is included.

Why DamagePlugin?

  • Enhanced Combat: Adds depth and strategy to PvP and PvE.
  • Highly Customizable: Tailor almost every aspect to fit your server's unique needs and balance.
  • User-Friendly: Clear HUD feedback and configurable messages ensure players understand the mechanic.
  • Server Performance: Designed to be lightweight and efficient.

Getting Started:

  1. Download the latest DamagePlugin.jar.
  2. Place it in your server's plugins folder.
  3. Start or restart your server. A default config.yml will be generated.
  4. Open plugins/DamagePlugin/config.yml and customize the settings to your preference.
  5. Use /chargedattack reload in-game or via the console to apply your changes.
  6. Grant the damageplugin.command.reload permission to any staff members who should be able to reload the config.

*We hope you and your players enjoy the new charged attack dimension DamagePlugin brings to your server! Please report any issues or suggestions on our Modrinth page .

Ченджлог

1.0.0Релиз1.21.3, 1.21.4, 1.21.5 · 9 мая 2025 г.

DamagePlugin - Changelog

Version 1.0.0 - Initial Release (09/05/2025)

Welcome to the first release of DamagePlugin!

✨ New Features:

  • Charged Attack Mechanic: Hold down the configured activation key (default: Sneak + Right-Click) with a chargeable tool to power up your next attack.
  • Tiered Damage Bonuses:
    • Configure multiple damage tiers in config.yml based on charge duration.
    • Each tier provides a configurable additional damage bonus.
    • Damage is interpolated if the charge time falls between defined tiers.
  • Visual HUD Feedback:
    • An action bar HUD displays the current charge percentage.
    • HUD style is configurable ("DETAILED" with a bar, or "SIMPLE_PERCENTAGE").
    • The visual bar's segment count and fill characters are customizable.
  • Slowness Effect:
    • Players receive a slowness effect while charging.
    • The slowness level (I, II, III) corresponds to the charge tier reached.
    • The effect is removed after attacking or cancelling the charge.
  • Configurable Activation & Cancellation:
    • Choose how to activate the charge (activation-method: SNEAK_RIGHT_CLICK, LEFT_CLICK, SNEAK_LEFT_CLICK).
    • Choose how to cancel an ongoing charge (cancellation-method: LEFT_CLICK, NONE).
  • Configurable Chargeable Items:
    • Specify which items can use the charged attack mechanic via the chargeable-items list in config.yml.
  • Fully Configurable Messages:
    • All player-facing messages (HUD, success, cancellation, errors) can be customized in config.yml.
    • Supports standard Minecraft color codes (&).
  • Reload Command:
    • Use /chargedattack reload (aliases: /ca reload, /damagecharge reload) to reload the configuration without restarting the server.
    • Permission: damageplugin.command.reload (default: op).
    • Tab completion for the reload subcommand.

⚙️ Technical Details:

  • Built for Minecraft 1.21.x (Paper API).
  • Uses Java 21.
  • Maven-based project.

🚀 Getting Started:

  1. Drop the DamagePlugin-1.0.0.jar into your server's plugins folder.
  2. Start or restart your server.
  3. Customize plugins/DamagePlugin/config.yml to your liking.
  4. Use /chargedattack reload to apply changes.
  5. Grant permissions (damageplugin.command.reload) to relevant users/groups if needed.

🐛 Known Issues:

  • No known issues in this initial release. Please report any bugs you find!

Thank you for using DamagePlugin! We hope you enjoy the enhanced combat experience.

Комментарии

Загружаем…