Fozia Khan
📎 1 file 1,959 chars
📄
pasted-code-1787948007035.txt
txt 116 lines
▶
Soul Rift SMP – Custom Overpowered Weapons Plugin
1. Dragon Slayer (Sword)

Enchantments

Sharpness V
Unbreaking III
Mending III

Abilities

Dragon Breath

Shoots a dragon breath attack.
Deals 6 Hearts (12 Damage).
Activation: Right Click
Cooldown: 2 Minutes

Mega TNT Blast

Creates an explosion with 2× the power of a normal TNT.
Activation: Shift + Right Click
Cooldown: 3 Minutes
2. Sky Elytra

Enchantments

Protection VI
Unbreaking III
Mending III

Abilities

Sky Armor (Passive)

Grants +10 Armor Points, similar to wearing Netherite Armor.

TNT Rain

Drops 3 TNTs from the sky.
Activation: Shift + Right Click
Cooldown: 2 Minutes
3. Slayer Hammer (Mace)

Enchantments

Density VIII
Sharpness V
Unbreaking III
Mending III
Wind Burst II

Abilities

Density VIII (Passive)

The mace permanently has Density VIII.

Super Dash

Launches the player 14 blocks in the direction they are looking.
After 1.5 seconds, nearby enemies are pulled toward the player's landing location like a magnet.
Activation: Right Click
Cooldown: 3 Minutes
4. Divine Sword

Enchantments

Sharpness V
Unbreaking III
Mending III

Abilities

Divine Laser Beam

Summons a laser beam for 10 seconds.
Deals 2 Hearts (4 Damage) per second to enemies hit by the beam.
Activation: Right Click
Cooldown: 2 Minutes

Strength Aura (Passive)

Grants Strength I while holding the sword.
5. Null Sword

Enchantments

Sharpness VII
Unbreaking III
Mending III

Special Feature

Functions as a sword but deals Mace-style fall damage when attacking from above.

Abilities

Half-Chunk Delete

Deletes or disables half of the targeted chunk.
Activation: Shift + Right Click
Duration: 30 Minutes
After 30 minutes, the chunk is restored automatically.

Strength Boost

Grants Strength III for 2 Minutes.
Activation: Shift
Cooldown: 1 Minute
Commands
/soulriftsmp give dragon_slayer
/soulriftsmp give sky_elytra
/soulriftsmp give slayer_hammer
/soulriftsmp give divine_sword
/soulriftsmp give null_sword
Kodari AI
KodariAug 28 at 8:17 pm 2
SoulRiftWeapons
A Minecraft plugin adding five overpowered custom weapons to the Soul Rift SMP. Includes Dragon Slayer sword with Dragon Breath and Mega TNT Blast abilities, Sky Elytra granting armor and TNT Rain, Slayer Hammer with Density VIII and Super Dash magnet pull, Divine Sword with a 10-second laser beam and Strength aura, and Null Sword featuring Half-Chunk Delete and Strength III boost. Each weapon has unique enchantments, right-click and shift-right-click activations with cooldowns, and admin commands to give items to players.
  1. Create the Gradle project and plugin metadata.

  2. Add item creation, cooldowns, command handling, and all five weapon definitions.

  3. Add event-driven abilities, passive effects, laser scheduling, TNT effects, and temporary half-chunk restoration.

  4. Register the plugin components and commands.

Implemented the Soul Rift SMP weapons plugin from scratch.

  • Added Gradle project setup with Paper API and XSeries.

  • Added /soulriftsmp give <item> command with tab completion.

  • Added all five custom weapons with enchantments, names, lore, and PDC identification.

  • Implemented:

    • Dragon Breath and Mega TNT Blast

    • Sky Armor and TNT Rain

    • Slayer Hammer Super Dash and enemy pull

    • Divine Laser Beam and Strength Aura

    • Null Sword mace-style fall damage, Half-Chunk Delete, and Strength III

  • Added cooldown tracking and automatic temporary chunk restoration.

  • Registered listeners, commands, and plugin metadata.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
8 633
src/main/java/com/soulrift/smp/SoulRiftSMP.java
package com.soulrift.smp;

import org.bukkit.plugin.java.JavaPlugin;

public final class SoulRiftSMP extends JavaPlugin {

    private ItemManager itemManager;
    private CooldownManager cooldownManager;

    @Override
    public void onEnable() {
        this.itemManager = new ItemManager(this);
        this.cooldownManager = new CooldownManager();

        SoulRiftListener listener = new SoulRiftListener(this, itemManager, cooldownManager);
        getServer().getPluginManager().registerEvents(listener, this);

        SoulRiftCommand command = new SoulRiftCommand(itemManager);
        getCommand("soulriftsmp").setExecutor(command);
        getCommand("soulriftsmp").setTabCompleter(command);
    }

    public ItemManager getItemManager() {
        return itemManager;
    }
}