abhi945795jeet-ux

--------------------------------------------------------------------------------

THE SEVEN RELICS - CUSTOM WEAPONS SCRIPT

--------------------------------------------------------------------------------

options: # Set these to match your Resource Pack Custom Model Data IDs ID_Sunder: 1001 ID_Aegis: 1002 ID_Vortex: 1003 ID_Shadow: 1004 ID_Solar: 1005 ID_Frost: 1006 ID_Blight: 1007

--- DATA INITIALIZATION ---

on script load: # Tracking if the item has been crafted before # Set to false to reset (use /resetrelics command below) default {relic::crafted::*} to false

--- THE WEAPON DEFINITIONS & ABILITIES ---

1. WORLD-SUNDER (Heavy Greatsword)

Ability: Seismic Slam - Deals AOE damage and slows enemies.

on rightclick: player is holding a netherite sword named "&c&lWorld-Sunder": if {relic::cooldown::sunder::%player%} is not set: set {relic::cooldown::sunder::%player%} to now

if difference between {relic::cooldown::sunder::%player%} and now is less than 15 seconds: send "&cRecharging: %difference between 15 seconds and (difference between {relic::cooldown::sunder::%player%} and now)%" stop

set {relic::cooldown::sunder::%player%} to now play sound "entity.generic.explode" with volume 1 and pitch 0.5 to player play 50 large smoke at player loop all entities in radius 6 of player: loop-entity is not player damage loop-entity by 8 hearts apply slowness 3 to loop-entity for 5 seconds send "&c&lSEISMIC SLAM!"

2. AEGIS OF THE ANCIENTS (Shield/Sword Hybrid)

Ability: Divine Barrier - 5 seconds of invulnerability.

on rightclick: player is holding a netherite sword named "&e&lAegis of the Ancients": if difference between {relic::cooldown::aegis::%player%} and now is less than 45 seconds: stop set {relic::cooldown::aegis::%player%} to now set {relic::active::aegis::%player%} to true send "&e&lDIVINE BARRIER ACTIVE!" play sound "item.totem.use" with volume 0.5 to player wait 5 seconds delete {relic::active::aegis::%player%} send "&7The barrier has faded..."

on damage of player: if {relic::active::aegis::%victim%} is true: cancel event play flame at victim

3. VORTEX BOW

Ability: Black Hole Arrow - Pulls enemies together.

on projectile hit: if shooter is a player: if name of shooter's tool is "&b&lVortex Bow": play sound "entity.illusioner.prepare_blindness" at projectile loop all entities in radius 7 of projectile: loop-entity is not shooter push loop-entity (direction from loop-entity to projectile) with force 1.5 play 100 portal at projectile

4. SHADOW-STITCHER (Dagger)

Ability: Blink Strike - Teleports behind the target and deals bleed.

on leftclick on entity: player is holding a netherite sword named "&8&lShadow-Stitcher": if difference between {relic::cooldown::shadow::%player%} and now is less than 10 seconds: stop set {relic::cooldown::shadow::%player%} to now set {_loc} to location 1.5 meters behind target entity teleport player to {_loc} damage target entity by 4 hearts apply wither 2 to target entity for 4 seconds play sound "entity.enderman.teleport" to player

5. SOLAR FLARE (Spear)

Ability: Sunbeam - Ignites all enemies in a line.

on rightclick: player is holding a netherite sword named "&6&lSolar Flare": if difference between {relic::cooldown::solar::%player%} and now is less than 12 seconds: stop set {relic::cooldown::solar::%player%} to now loop 10 times: set {_p} to location loop-number meters in front of player play mob spawner flames at {_p} loop all entities in radius 2 of {_p}: loop-entity-2 is not player ignite loop-entity-2 for 6 seconds damage loop-entity-2 by 3 hearts

6. FROSTBITE RAPIER

Ability: Glacial Tomb - Freezes a single target in place.

on leftclick on entity: player is holding a netherite sword named "&3&lFrostbite Rapier": if difference between {relic::cooldown::frost::%player%} and now is less than 20 seconds: stop set {relic::cooldown::frost::%player%} to now apply slowness 10 to target entity for 4 seconds apply jump boost -10 to target entity for 4 seconds play 30 snow shovel at target entity send "&3Target Frozen!"

7. BLIGHT-REAPER (Scythe)

Ability: Soul Harvest - Heals user based on damage dealt.

on damage: attacker is a player attacker's tool is a netherite hoe named "&5&lBlight-Reaper" heal attacker by (damage / 2) play 20 witch spell at victim

--- CRAFTING RECIPES & ONE-TIME LOGIC ---

on script load: # Registering the recipes register new shaped recipe for netherite sword named "&c&lWorld-Sunder" with nbt "{CustomModelData:{@ID_Sunder}}" using netherite ingot, netherite block, netherite ingot, air, netherite ingot, air, air, netherite ingot, air

register new shaped recipe for netherite sword named "&e&lAegis of the Ancients" with nbt "{CustomModelData:{@ID_Aegis}}" using gold block, shield, gold block, gold block, netherite ingot, gold block, air, gold block, air

# (Repeat registration for other items similarly...)

Prevent crafting more than once

on craft: set {_item} to name of event-item if {_item} is "&c&lWorld-Sunder": if {relic::crafted::sunder} is true: cancel event send "&cThis relic has already been claimed by the world!" to player else: set {relic::crafted::sunder} to true broadcast "&6&l%player% has forged the World-Sunder!"

if {_item} is "&e&lAegis of the Ancients": if {relic::crafted::aegis} is true: cancel event send "&cOnly one Aegis can exist at a time!" to player else: set {relic::crafted::aegis} to true broadcast "&6&l%player% has forged the Aegis!"

--- ADMIN COMMANDS ---

command /resetrelics: permission: op trigger: clear {relic::crafted::*} send "&aAll relics can now be crafted again!"

Kodari AI
KodariMar 13 at 1:49 pm 27,884 (v2)

I’ll convert this Skript into a complete Java plugin with all seven relic weapons and their abilities.

SevenRelics
An advanced custom weapons plugin featuring seven unique legendary relics with powerful abilities. Each relic has custom model data support, unique combat abilities with cooldowns, particle effects, and one-time crafting restrictions. Includes World-Sunder (seismic slam), Aegis (divine barrier), Vortex Bow (black hole arrow), Shadow-Stitcher (blink strike), Solar Flare (sunbeam), Frostbite Rapier (glacial tomb), and Blight-Reaper (soul harvest). Full admin controls and persistent data storage.

All seven legendary relics have been implemented with their unique abilities, custom model data support, one-time crafting restrictions, and full configuration options. Each weapon has its own cooldown system, particle effects, and powerful abilities exactly as specified in the Skript.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
16 1,038
src/main/java/com/sevenrelics/SevenRelicsPlugin.java
package com.sevenrelics;

import com.sevenrelics.command.RelicCommand;
import com.sevenrelics.inventory.gui.GUIListener;
import com.sevenrelics.inventory.gui.GUIManager;
import com.sevenrelics.listener.WeaponListener;
import com.sevenrelics.manager.ConfigManager;
import com.sevenrelics.manager.CooldownManager;
import com.sevenrelics.manager.CraftingManager;
import com.sevenrelics.manager.WeaponManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SevenRelicsPlugin extends JavaPlugin {

    private ConfigManager configManager;
    private CooldownManager cooldownManager;
    private CraftingManager craftingManager;
    private WeaponManager weaponManager;
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.configManager = new ConfigManager(this);
        this.cooldownManager = new CooldownManager();
        this.craftingManager = new CraftingManager();
        this.weaponManager = new WeaponManager(this);
        this.guiManager = new GUIManager();

        getServer().getPluginManager().registerEvents(new WeaponListener(this), this);
        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);

        RelicCommand relicCommand = new RelicCommand(this);
        getCommand("relic").setExecutor(relicCommand);
        getCommand("resetrelics").setExecutor(relicCommand);
    }

    @Override
    public void onDisable() {
    }

    public void reload() {
        configManager.reload();
    }
}