Act as an expert Minecraft developer. Write a complete, functional script/plugin using the Minecraft API based on the following custom power system mechanics.
Core Mechanics:
- The Power Stone (The Roller)
- Item: A standard Stone block named "&dPower Stone". - Activation: The player must Sneak (Crouch) + Right-Click (Use) while holding the stone. - Behavior: - Consumes 1 Power Stone from the player's hand. - Randomly rolls and assigns one of three powers to the player: Lightning, Vampire, or Super Strength. - Saves this power to the player's data so the system remembers what they rolled. - Gives the player 1 Feather named "&bPower Activator". - Restriction: Players cannot use any powers or the Feather until they have successfully rolled a power using this stone.
- The Power Feather (The Activator)
- Item: A standard Feather named "&bPower Activator". - Activation: The player must Sneak (Crouch) + Right-Click (Use) while holding this feather. - Behavior: Checks what power the player has stored. If they have a power, it triggers that specific power's active ability. If they haven't rolled a power yet, cancel the action and send a message: "&cYou must roll a power using a Power Stone first!"
---
The Three Powers:
#### 1. Lightning Power
- Type: Active (Triggered by the Feather).
- Behavior: When the player Sneaks + Right-clicks the Feather, strike a bolt of lightning at the exact block the player is looking at (target block).
#### 2. Vampire Power
- Type: Passive & Reactive.
- Behavior:
- On Kill: When this player kills any mob or another player, increase their maximum health (add max hearts). - On Damage Taken: Whenever this player takes damage, grant them a strong Regeneration effect (e.g., Regeneration 3 for 5 seconds) to rapidly heal their new hearts.
#### 3. Super Strength Power
- Type: Passive / Permanent.
- Behavior: Give the player permanent, infinite Strength with an incredibly high amplifier (e.g., Strength 255) so they can one-shot any normal mob or player with their bare hands or a weapon.
---
Technical Requirements:
- Handle item consumption properly so items aren't duplicated.
- Ensure proper event handling (PlayerInteractEvent, EntityDeathEvent, EntityDamageByEntityEvent, etc.).
- Provide clean, commented code so it's easy to modify.
The generation was stopped before any content could be produced.
No files in this session