1.21.11 java plugin
📄
pasted-code-1794544809488.txt
txt
104 lines
▶
WARDEN NUKE – MINECRAFT PLUGIN
Create a custom Minecraft ability called Warden Nuke.
The ability should be a powerful Warden-themed attack with cinematic visuals, block and entity targeting, and custom damage mechanics.
1. Activation Item – Fishing Rod
- When a player receives the Warden Nuke, give them a "FISHING_ROD" with exactly 1 durability.
- The fishing rod acts as the ability's targeting tool.
- Right-clicking activates the Warden Nuke.
- The fishing hook itself must NOT determine the target.
- The plugin must detect the block or entity directly under the player's crosshair.
- The fishing rod must not behave like a normal fishing rod.
- Prevent ordinary fishing functionality.
- The rod should be identifiable as the Warden Nuke.
- The rod should disappear or break after activation.
2. Targeting System
The player must aim using their crosshair.
- Detect whether the player is targeting a block or an entity.
- If targeting a block, that block becomes the center of the Nuke.
- If targeting an entity, that entity becomes the center of the Nuke.
- Entity targeting must accurately identify the entity under the crosshair.
- The target must not randomly shift.
- If neither a valid block nor entity is targeted, the ability cannot activate.
- Prioritize an entity when the crosshair is directly targeting one.
- Ensure targeting works correctly in multiplayer.
3. Damage & Combat Mechanics
- Deals exactly 20 health points (10 hearts) of damage.
- Bypasses armor protection.
- Completely bypasses shields.
- Does NOT bypass Totems of Undying.
- Totems must activate normally and save the target when applicable.
- Damage must work consistently against players and living entities.
- Ensure armor and shield calculations cannot reduce the specified damage.
4. Launch Effect
When the Warden Nuke hits its target:
- Launch the target high into the air.
- Apply powerful upward knockback.
- The launch should feel like a massive Warden sonic explosion.
- The upward launch must work on players and living entities.
- Damage and launch effects should happen together.
- Ensure the launch effect works consistently in multiplayer.
5. Visual Effects
Create a massive Warden-themed energy effect.
- Deep cyan and dark blue color palette.
- Large spherical energy formation.
- Sonic wave effects spreading outward.
- Dark particles mixed with cyan soul particles.
- Dramatic explosion animation.
- Powerful visual shockwave.
- The effects should feel enormous and intimidating.
- Use smooth animations and avoid excessive particle lag.
6. Sound Effects
- Deep Warden heartbeat sounds during activation.
- Increasingly intense sonic charging sounds.
- Powerful Warden sonic boom at the climax.
- Deep rumbling sound during the aftermath.
7. Commands
Implement the following commands:
- "/wardennuke give " – Gives a player the Warden Nuke.
- "/wardennuke remove " – Removes the Warden Nuke from a player.
- "/wardennuke reload" – Reloads the plugin configuration.
- "/wardennuke help" – Displays all available commands.
Permissions
- "wardennuke.give"
- "wardennuke.remove"
- "wardennuke.reload"
- "wardennuke.use"
Only players with the appropriate permissions can execute administrative commands.
8. Performance & Compatibility
- Optimize particle rendering.
- Avoid excessive server lag.
- Make visual effects visible to nearby players.
- Ensure damage and targeting are synchronized in multiplayer.
- Prevent exploits involving ordinary fishing rods.
- Ensure the plugin works reliably on multiplayer servers.
IMPORTANT
The Warden Nuke must use the fishing rod as its activation item, detect blocks AND entities through crosshair targeting, deal exactly 20 HP of damage, bypass armor and shields, respect Totems of Undying, and launch the target upward.
Prioritize accurate mechanics, cinematic visuals, and reliable multiplayer functionality.
Add the Paper 1.21.11 plugin setup, permissions, and configurable targeting/effect settings.
Implement the marked one-durability fishing rod and crosshair ray tracing for blocks and living entities.
Add the delayed Warden-style charge, armor/shield-bypassing damage with normal totem behavior, visuals, sounds, and admin commands.
Created the Warden Nuke plugin for Paper 1.21.11. Its marked fishing rod has one durability point remaining, activates from a crosshair ray trace of blocks or living entities, and is consumed on a valid activation. The charge culminates in a 20-point sonic-boom damage hit that bypasses armor and shields while allowing Totems of Undying to work, launches nearby living targets, and plays Warden-themed effects.
Added /wardennuke give, remove, reload, and help, plus the corresponding permissions and configurable range, blast radius, charge time, cooldown, and messages.
it should be multiple sonic shriekers falling don with in a 200 radius put 200 beams across the radius
Add a 200-strike sonic rain pattern, randomly spread within 200 blocks of the detonation.
Animate each beam downward with sonic, soul, and dark particle trails; keep the existing damage radius unchanged.
Added 200 animated sonic beams falling from above, randomly distributed within a 200-block radius of the detonation. They use sonic, soul, and dark particle trails; the existing damage radius remains unchanged.
the warden beam particles are the beams
Make the falling streaks consist of Warden
SONIC_BOOMparticles only.Emit a short vertical segment of those particles on every beam step, keeping all 200 beams within the 200-block radius.
Changed each falling streak to use only Warden SONIC_BOOM particles, emitted as vertical segments as the 200 beams descend. Removed the soul and dark particles from the beam trails.
they should also the same effect and damage as the original sonic boom from warden\
Make each falling beam deliver the Warden’s sonic-boom hit on impact: 10 damage, sonic-boom damage type, knockback, particle, and sound.
Keep the original nuke’s separate 20-damage blast unchanged.
Each of the 200 falling beams now delivers a Warden-style sonic-boom hit on impact: 10 damage, sonic-boom damage type, knockback, particle, and sound. The original central blast still deals 20 damage.
when i pull a different partcle appears
I’ll make the charge and shockwave use the same Warden SONIC_BOOM particle as the falling beams, removing the soul and ink particles.
Updated the activation charge and shockwave to use the same Warden SONIC_BOOM particle as the falling beams. Removed the soul and ink particles.
it clumps up in one position it sholud be evnely distrupeted with in a 100 block radius and it sholud fall from the sky multiple warden beams
Distribute all 200 beams evenly in a 100-block disk instead of choosing random positions.
Render each falling beam as a fixed vertical trail of Warden sonic-boom particles, rather than a scattered particle cloud.
Updated the rain to place 200 beams evenly across a 100-block radius using a spaced spiral pattern. Each falls from above as a vertical trail of Warden SONIC_BOOM particles, rather than a scattered cluster.
package com.kodari.wardennuke;
import java.util.Objects;
import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;
public final class WardenNukePlugin extends JavaPlugin {
@Override
public void onEnable() {
saveDefaultConfig();
WardenNukeItem nukeItem = new WardenNukeItem(this);
WardenNukeAbility ability = new WardenNukeAbility(this, nukeItem);
Bukkit.getPluginManager().registerEvents(ability, this);
PluginCommand command = Objects.requireNonNull(getCommand("wardennuke"));
command.setExecutor(new WardenNukeCommand(this, nukeItem));
}
}