Devon Derecho
📎 1 file 17,598 chars
📄
pasted-code-1793705861042.txt
txt 563 lines
▶
# VALECTORIA SMP — COMPLETE RPG PLUGIN PROJECT PROMPT

I am developing **Valectoria SMP**, a Minecraft RPG-SMP experience built around custom classes, progression, abilities, weapons, magic, combat effects, and an immersive RPG system.

I want you to help me develop the complete Valectoria system. Treat this as a long-term server project, not a small collection of unrelated Skript commands.

Your job is to help design, implement, debug, balance, and expand the system while keeping all existing working features compatible.

---

# 1. TECHNICAL REQUIREMENTS

**Minecraft version:** 26.2  
**Skript version:** 2.16.2 or compatible  
**Required addon:** SkBee  
**Implementation:** Skript-based system

Requirements:
- Use Skript and SkBee.
- Do not introduce additional addons unless I approve them first.
- Build all inventories and menus directly through Skript chest inventories.
- Do not require a GUI addon.
- Keep the code compatible with my actual installed versions.
- Verify syntax before using unfamiliar expressions or effects.
- Avoid deprecated or unsupported Skript expressions.
- Keep scripts organized and modular where practical.
- Do not remove working features when adding new ones.
- Include clear installation and reload instructions.
- When fixing errors, provide complete corrected files or clearly identified replacement sections.
- Never claim code has been tested on my server unless it actually has been.

The system should be designed to avoid excessive server lag, duplicate event handlers, broken variables, and exploitable mechanics.

# 2. THE SIX PLAYABLE CLASSES

Players choose one class when they first enter the RPG system.

Each class has its own:
- Combat identity.
- Abilities.
- Skill progression.
- Exclusive craftable weapon.
- Particle effects.
- Sounds.
- Visual identity.
- Strengths and weaknesses.

Players should not freely switch classes. An administrator can reset or change their class.

## Warrior — Melee / Tank

**Identity:** A powerful close-combat fighter who specializes in damage, strength, and survivability.

Abilities:
1. Cleave — Sweeping melee attack that damages nearby enemies.
2. Iron Will — Temporarily increases defense.
3. Berserker — Increases strength and movement speed.
4. Ground Slam — Creates a powerful ground impact that damages and launches enemies.
5. Whirlwind — Damages nearby enemies with a spinning attack.
6. Battle Cry — Grants combat buffs.
7. Overpower — Deals heavy damage to a targeted enemy.
8. War God — Provides powerful combat enhancements.
9. Warlord — A devastating area attack combined with powerful buffs.

**Exclusive weapon:** Warrior's Greatsword.

Visual style:
- Red and orange particles.
- Critical-hit effects.
- Sweeping slash effects.
- Shockwaves.
- Explosive ground impacts.

## Ranger — Ranged / Mobility

**Identity:** A skilled archer who uses precision, speed, and ranged attacks.

Abilities:
1. Hunter's Mark — Marks an enemy.
2. Quick Shot — Fires a fast arrow.
3. Windstep — Launches the player upward and grants mobility.
4. Piercing Arrow — Fires a powerful arrow.
5. Rain of Arrows — Fires multiple arrows.
6. Eagle Eye — Improves combat awareness and mobility.
7. Storm Volley — Fires a large volley of arrows.
8. Deadeye — Deals massive damage to a targeted enemy.
9. Ranger Lord — A powerful ranged ultimate.

**Exclusive weapon:** Ranger's Longbow.

Visual style:
- Green and white particles.
- Wind trails.
- Arrow trails.
- Targeting effects.
- Nature-themed effects.

## Mage — Magic / Area Damage

**Identity:** A spellcaster who specializes in arcane magic, powerful attacks, and area damage.

Abilities:
1. Arcane Bolt — Fires a magical attack at a target.
2. Mana Burst — Releases an area explosion of magic.
3. Blink — Teleports the player forward.
4. Meteor — Strikes a target with a powerful magical impact.
5. Arcane Storm — Damages enemies in a large area.
6. Mana Surge — Temporarily increases combat power.
7. Cataclysm — Creates a devastating magical area attack.
8. Arcane Apocalypse — An extremely powerful area spell.
9. Archmage — The Mage's ultimate transformation and attack.

**Exclusive weapon:** Arcane Staff.

Visual style:
- Cyan, blue, and purple particles.
- Enchantment particles.
- Arcane circles and rings.
- Magical projectiles.
- Floating spell effects.
- Powerful explosion effects.

## Assassin — Stealth / Burst Damage

**Identity:** A fast fighter specializing in invisibility, surprise attacks, and massive single-target damage.

Abilities:
1. Shadow Strike — A powerful targeted strike.
2. Smoke Bomb — Creates a smoke effect and grants invisibility.
3. Vanish — Temporarily disappears and gains speed.
4. Backstab — Deals high damage to an enemy.
5. Shadow Clone — Summons a temporary clone.
6. Assassinate — Deals massive targeted damage.
7. Shadow Realm — Grants powerful temporary combat buffs.
8. Death Mark — Weakens and marks an enemy.
9. Shadow Lord — The Assassin's ultimate transformation.

**Exclusive weapon:** Shadow Dagger.

Visual style:
- Dark purple particles.
- Smoke clouds.
- Portal effects.
- Shadow trails.
- Disappearance and reappearance effects.

## Paladin — Holy / Support / Tank

**Identity:** A holy warrior who combines healing, defense, and powerful radiant attacks.

Abilities:
1. Divine Heal — Restores health.
2. Holy Shield — Grants powerful protection.
3. Guardian Aura — Temporarily increases survivability.
4. Divine Nova — Releases a radiant area attack and heals the player.
5. Resurrection — Provides a powerful healing and defensive effect.
6. Radiant Strike — Damages nearby enemies and heals the player.
7. Divine Judgment — A powerful holy area attack.
8. Celestial Form — Grants powerful temporary buffs.
9. High Paladin — The Paladin's ultimate ability.

**Exclusive weapon:** Holy Blade.

Visual style:
- Gold and white particles.
- End rods.
- Holy light effects.
- Healing particles.
- Radiant explosions.
- Halo-like effects.

## Necromancer — Summoning / Dark Magic

**Identity:** A dark spellcaster who commands undead creatures and manipulates souls.

Abilities:
1. Summon Skeleton — Summons a skeleton minion.
2. Soul Drain — Damages an enemy and heals the player.
3. Bone Prison — Restricts an enemy's movement.
4. Summon Knight — Summons an undead guardian.
5. Death Pact — Sacrifices owned minions to damage nearby enemies.
6. Army of Bones — Summons several skeletons.
7. Lich Form — Grants powerful dark magic buffs.
8. Army of the Dead — Summons a large undead army.
9. Lich King — The Necromancer's ultimate transformation and summoning ability.

**Exclusive weapon:** Soul Reaper.

Visual style:
- Soul particles.
- Soul fire.
- Portal particles.
- Dark smoke.
- Purple and black effects.
- Summoning circles.
- Dramatic undead spawn effects.

Necromancer minions must:
- Never attack their owner.
- Never intentionally target another minion belonging to the same owner.
- Have their owner tracked.
- Target valid hostile enemies.
- Avoid attacking friendly players.
- Be cleaned up correctly when they die or disappear.
- Have reliable targeting logic that searches for a valid enemy rather than simply selecting the nearest entity.

---

# 3. CLASS LEVELING AND XP SYSTEM

Every class has its own progression from **level 1 to level 50**.

XP should be awarded through activities such as:

| Activity | XP |
|---|---:|
| Killing a mob | 25 |
| Mining Diamond Ore | 50 |
| Mining Deepslate Diamond Ore | 60 |
| Mining Emerald Ore | 40 |
| Mining Deepslate Emerald Ore | 50 |

The XP requirement should scale with the current level.

Current progression formula:

**XP required = Current Level × 250**

Examples:
- Level 1 to 2: 250 XP.
- Level 2 to 3: 500 XP.
- Level 3 to 4: 750 XP.
- Level 10 to 11: 2,500 XP.

Requirements:
- XP must carry over correctly after a level-up.
- Multiple levels should be gained when enough XP is awarded.
- XP must never become incorrectly stuck.
- Players without a selected class should not receive class XP.
- The maximum level is 50.
- Players should receive a level-up message and sound.
- Unlock messages should appear when players reach important ability levels.
- XP rewards should be handled through one shared function so normal rewards and administrator rewards behave identically.
- Existing player data must be handled safely during updates.
- Never erase valid player progress during a script reload.

Ability unlock levels:

| Ability slot | Required level |
|---|---:|
| 1 | 1 |
| 2 | 5 |
| 3 | 10 |
| 4 | 15 |
| 5 | 20 |
| 6 | 25 |
| 7 | 30 |
| 8 | 40 |
| 9 | 50 |

# 4. CLASS AND SKILL GUIS

All menus must be made using Skript chest inventories.

## Class GUI — `/class`

Display all six classes with:
- Class-specific icons.
- Class names.
- Short descriptions.
- Combat roles.
- Current selection.
- Current class level.
- Current XP.
- XP required for the next level.

The GUI must clearly display the player's selected class.

It must not display `None` after a player successfully selects a class.

Players can choose a class through the GUI. Once chosen, the selection is permanent unless an administrator resets or changes it.

## Skills GUI — `/skills`

Show the nine abilities belonging to the player's chosen class.

Each ability should show:
- Name.
- Description.
- Required level.
- Unlocked or locked status.
- Cooldown.
- Selected ability status.

Players can select an unlocked ability.

## Ability casting — `/cast`

Players activate their selected ability using `/cast`.

Requirements:
- Check the player's class.
- Check the ability unlock level.
- Check cooldown.
- Prevent casting locked skills.
- Display useful error messages.
- Play the correct particles and sounds.
- Never allow an ability from another class to be cast.

# 5. CLASS WEAPONS AND CRAFTING

Each class receives one exclusive craftable weapon.

| Class | Weapon |
|---|---|
| Warrior | Warrior's Greatsword |
| Ranger | Ranger's Longbow |
| Mage | Arcane Staff |
| Assassin | Shadow Dagger |
| Paladin | Holy Blade |
| Necromancer | Soul Reaper |

Requirements:
- Every weapon must have a custom name and lore.
- Every weapon must have a unique crafting recipe.
- Only the matching class can craft its weapon.
- A player must not bypass the restriction by receiving the weapon from someone else.
- Only the correct class can use the weapon.
- Restrictions should use reliable item identification rather than relying only on display names.
- Weapons should have class-specific visual effects.
- Weapons should be balanced for their intended class.
- Do not allow players to exploit item renaming or crafting mechanics to bypass restrictions.

# 6. PARTICLE AND SOUND EFFECT SYSTEM

Visual effects are a major part of Valectoria.

I do not want bland or tiny particle bursts.

Every ability should feel satisfying, powerful, and visually distinct.

Examples:

**Cleave**
- A wide sweeping slash.
- Critical particles.
- Red/orange impact particles.
- A noticeable attack sound.

**Ground Slam**
- A large circular ground impact.
- Expanding dust.
- Critical sparks.
- A strong impact sound.

**Whirlwind**
- Rotating particle effects around the player.
- Repeated sweeping effects.
- A spinning sound.

**Mage spells**
- Magical projectile trails.
- Enchantment particles.
- Arcane rings.
- Explosive magical impacts.

**Assassin abilities**
- Dark smoke clouds.
- Purple portal bursts.
- Disappearance effects.
- Shadow-like trails.

**Paladin abilities**
- Radiant rings.
- Golden light.
- Healing particles.
- Holy impact effects.

**Necromancer abilities**
- Swirling souls.
- Soul fire.
- Dark summoning circles.
- Portal bursts.
- Skeleton summoning effects.

Requirements:
- Use multiple layers of particles where appropriate.
- Make ultimate abilities visually more impressive than normal abilities.
- Add suitable sounds.
- Avoid excessive particle counts that cause lag.
- Keep effects readable during multiplayer combat.
- Avoid effects that obscure the entire screen.

# 7. RESOURCE PACK

Valectoria should have a dedicated required resource pack.

The resource pack should support:
- Custom models for class weapons.
- Custom weapon textures.
- Custom ability sounds.
- Custom visual assets where useful.
- A consistent Valectoria fantasy/RPG theme.

Important restrictions:
- Do not add custom armor sets or armor models.
- Build all menus directly inside Skript; do not make GUI textures a requirement.
- Make sure the resource pack matches the actual item models and sounds used by the Skript system.
- Include correct resource pack metadata for the target Minecraft version.
- Provide a complete, correctly structured resource pack rather than an empty template.
- The system should have sensible fallback behavior when custom assets are unavailable.

# 8. ADMINISTRATION AND MANAGEMENT

Provide administrative commands for managing player progression.

Commands should include:

`/valadmin setlevel  `

Sets a player's class level.

`/valadmin xp  `

Adds class XP and processes level-ups.

`/valadmin reset `

Resets the player's class progression.

`/valadminclass  `

Sets a player's class.

Requirements:
- Commands require administrator permissions.
- Validate player names, levels, amounts, and class names.
- Prevent invalid levels and negative XP values.
- Send confirmation messages.
- Keep player data intact unless an administrator deliberately resets it.

# 9. PLAYER COMMANDS

The main player commands should include:

| Command | Purpose |
|---|---|
| `/class` | Opens class selection and class information |
| `/skills` | Opens the class skill menu |
| `/cast` | Uses the selected ability |
| `/classinfo` | Displays class, level, XP, and selected skill |

Add other commands only when they provide a useful purpose.

# 10. DATA STORAGE AND RELIABILITY

Use persistent Skript variables for player progression.

Store:
- Selected class.
- Class level.
- Class XP.
- Selected ability.
- Ability cooldowns.
- Minion ownership.
- Temporary ability state.
- Other necessary class information.

Use player UUIDs rather than player names for persistent player data.

Requirements:
- Variables must survive server restarts.
- Reloading scripts must not reset player progress.
- Missing variables must be initialized safely.
- Invalid class values must be handled.
- Existing data must be migrated safely when necessary.
- Avoid duplicate rewards.
- Avoid duplicate scheduled tasks.
- Remove temporary variables when they are no longer needed.

# 11. BALANCING

The system should feel like a real RPG rather than six classes with unlimited damage.

Balance:
- Ability damage.
- Buff duration.
- Cooldowns.
- Summon counts.
- Movement abilities.
- Healing.
- Area-of-effect damage.
- Weapon strength.

Ultimate abilities should be powerful, but they should not make normal combat meaningless.

Each class should have a clear identity and meaningful advantages and disadvantages.

# 12. FUTURE EXPANSION ROADMAP

Design the system so it can eventually support:

**Class progression**
- More skill upgrades.
- Skill trees.
- Class-specific quests.
- Passive abilities.
- Advanced abilities beyond the initial nine.

**RPG world**
- Custom bosses.
- Dungeons.
- Elite mobs.
- Rare drops.
- Legendary equipment.
- Special areas and events.

**Multiplayer**
- Parties.
- Guilds.
- Class synergies.
- Cooperative boss fights.
- Competitive events.

**Economy and rewards**
- Rare crafting materials.
- Weapon upgrades.
- Ability enhancements.
- Quest rewards.
- Boss loot.

These are future expansions. Do not create fake or unfinished systems just to claim they exist. Build them properly when requested.

# 13. DEVELOPMENT RULES

When working on Valectoria:

1. Preserve working features.
2. Do not rewrite everything just to add one new ability.
3. Check compatibility with Minecraft 26.2, Skript 2.16.2+, and SkBee.
4. Do not guess at syntax.
5. Provide complete code when requested.
6. Explain where each file belongs.
7. Include installation and reload instructions.
8. Give useful test commands.
9. Fix all reported parser errors before adding more features.
10. Keep the system organized and expandable.
11. Never silently remove a feature.
12. Explain any changes to existing variables or player data.
13. Avoid unnecessary addons and dependencies.
14. Do not claim a feature is working until its implementation has been checked.

When I provide a Skript reload error, fix the exact problem and check for related problems in the surrounding code.

---

# FINAL GOAL

I want **Valectoria SMP** to become a polished fantasy RPG Minecraft server with six unique playable classes, class-exclusive weapons, satisfying combat effects, a real leveling system, skill progression, powerful abilities, undead summoning, custom visuals, and an immersive RPG experience.

It should feel like a complete RPG game inside Minecraft, not just a normal survival server with a few extra commands.

Help me build it step by step, prioritizing stability, quality, compatibility, and a great player experience.
Kodari AI
KodariNov 3 at 11:38 am 1
ValectoriaRPG
A comprehensive RPG plugin for Minecraft SMP servers featuring six distinct playable classes (Warrior, Ranger, Mage, Assassin, Paladin, Necromancer) with unique abilities, progression systems, and class-exclusive weapons. Implements a leveling system from 1-50 with XP rewards for combat and mining, skill unlock progression, and ability casting with cooldowns. Features GUI-based class selection and skill management menus, particle and sound effects for each ability, persistent player data storage using UUIDs, and administrative commands for managing player progression. Includes class-specific crafting recipes with ownership restrictions and balanced combat mechanics designed for immersive RPG gameplay.

This is a Java plugin project; Valectoria is specified as a Skript project using SkBee. Kodari supports Skript projects, but cannot build the requested resource pack.

Switch to Skript

Devon Derecho

I will build the resource pack. You can do the resource pack supports and i will do the resource pack making.

Kodari AI
KodariNov 3 at 11:48 am 1

What should the Skript do to support your resource pack—for example, prompt players to download it when they join, or provide commands for custom items? If you want a download prompt, you’ll need a direct URL to the finished pack.

Devon Derecho

prompt

Kodari AI
KodariNov 3 at 11:49 am 1

What would you like the Skript to do with your resource pack? For example, should it prompt players to download the pack, give custom items, or support custom sounds? Please also share your Minecraft version.

Devon Derecho

Skript should prompt players to download the pack and support custom sounds. 26.2

Kodari AI
KodariNov 3 at 11:49 am 1

Minecraft’s built-in resource-pack settings will show the download prompt; the Skript adds a command for testing your custom sounds.

  1. Put resourcepack.sk in plugins/Skript/scripts/ and run /sk reload resourcepack.

  2. In server.properties, set resource-pack to a direct HTTPS download URL for your finished ZIP. Set require-resource-pack=false to let players decline, and restart the server.

  3. Test a sound with /packsound your_namespace:your_sound using a sound ID defined in your pack’s sounds.json.

Set resource-pack-sha1 to the ZIP’s SHA-1 hash so clients can detect pack updates.

Devon Derecho

Now give me the valectoria skript.

Kodari AI
KodariNov 3 at 11:50 am 1

What should the Valectoria Skript do? If it’s a specific server feature or system, describe its mechanics or share an example.

Devon Derecho

(skip the resource pack part)

📎 1 file 17,598 chars
📄
pasted-code-1793706645305.txt
txt 563 lines
▶
# VALECTORIA SMP — COMPLETE RPG PLUGIN PROJECT PROMPT

I am developing **Valectoria SMP**, a Minecraft RPG-SMP experience built around custom classes, progression, abilities, weapons, magic, combat effects, and an immersive RPG system.

I want you to help me develop the complete Valectoria system. Treat this as a long-term server project, not a small collection of unrelated Skript commands.

Your job is to help design, implement, debug, balance, and expand the system while keeping all existing working features compatible.

---

# 1. TECHNICAL REQUIREMENTS

**Minecraft version:** 26.2  
**Skript version:** 2.16.2 or compatible  
**Required addon:** SkBee  
**Implementation:** Skript-based system

Requirements:
- Use Skript and SkBee.
- Do not introduce additional addons unless I approve them first.
- Build all inventories and menus directly through Skript chest inventories.
- Do not require a GUI addon.
- Keep the code compatible with my actual installed versions.
- Verify syntax before using unfamiliar expressions or effects.
- Avoid deprecated or unsupported Skript expressions.
- Keep scripts organized and modular where practical.
- Do not remove working features when adding new ones.
- Include clear installation and reload instructions.
- When fixing errors, provide complete corrected files or clearly identified replacement sections.
- Never claim code has been tested on my server unless it actually has been.

The system should be designed to avoid excessive server lag, duplicate event handlers, broken variables, and exploitable mechanics.

# 2. THE SIX PLAYABLE CLASSES

Players choose one class when they first enter the RPG system.

Each class has its own:
- Combat identity.
- Abilities.
- Skill progression.
- Exclusive craftable weapon.
- Particle effects.
- Sounds.
- Visual identity.
- Strengths and weaknesses.

Players should not freely switch classes. An administrator can reset or change their class.

## Warrior — Melee / Tank

**Identity:** A powerful close-combat fighter who specializes in damage, strength, and survivability.

Abilities:
1. Cleave — Sweeping melee attack that damages nearby enemies.
2. Iron Will — Temporarily increases defense.
3. Berserker — Increases strength and movement speed.
4. Ground Slam — Creates a powerful ground impact that damages and launches enemies.
5. Whirlwind — Damages nearby enemies with a spinning attack.
6. Battle Cry — Grants combat buffs.
7. Overpower — Deals heavy damage to a targeted enemy.
8. War God — Provides powerful combat enhancements.
9. Warlord — A devastating area attack combined with powerful buffs.

**Exclusive weapon:** Warrior's Greatsword.

Visual style:
- Red and orange particles.
- Critical-hit effects.
- Sweeping slash effects.
- Shockwaves.
- Explosive ground impacts.

## Ranger — Ranged / Mobility

**Identity:** A skilled archer who uses precision, speed, and ranged attacks.

Abilities:
1. Hunter's Mark — Marks an enemy.
2. Quick Shot — Fires a fast arrow.
3. Windstep — Launches the player upward and grants mobility.
4. Piercing Arrow — Fires a powerful arrow.
5. Rain of Arrows — Fires multiple arrows.
6. Eagle Eye — Improves combat awareness and mobility.
7. Storm Volley — Fires a large volley of arrows.
8. Deadeye — Deals massive damage to a targeted enemy.
9. Ranger Lord — A powerful ranged ultimate.

**Exclusive weapon:** Ranger's Longbow.

Visual style:
- Green and white particles.
- Wind trails.
- Arrow trails.
- Targeting effects.
- Nature-themed effects.

## Mage — Magic / Area Damage

**Identity:** A spellcaster who specializes in arcane magic, powerful attacks, and area damage.

Abilities:
1. Arcane Bolt — Fires a magical attack at a target.
2. Mana Burst — Releases an area explosion of magic.
3. Blink — Teleports the player forward.
4. Meteor — Strikes a target with a powerful magical impact.
5. Arcane Storm — Damages enemies in a large area.
6. Mana Surge — Temporarily increases combat power.
7. Cataclysm — Creates a devastating magical area attack.
8. Arcane Apocalypse — An extremely powerful area spell.
9. Archmage — The Mage's ultimate transformation and attack.

**Exclusive weapon:** Arcane Staff.

Visual style:
- Cyan, blue, and purple particles.
- Enchantment particles.
- Arcane circles and rings.
- Magical projectiles.
- Floating spell effects.
- Powerful explosion effects.

## Assassin — Stealth / Burst Damage

**Identity:** A fast fighter specializing in invisibility, surprise attacks, and massive single-target damage.

Abilities:
1. Shadow Strike — A powerful targeted strike.
2. Smoke Bomb — Creates a smoke effect and grants invisibility.
3. Vanish — Temporarily disappears and gains speed.
4. Backstab — Deals high damage to an enemy.
5. Shadow Clone — Summons a temporary clone.
6. Assassinate — Deals massive targeted damage.
7. Shadow Realm — Grants powerful temporary combat buffs.
8. Death Mark — Weakens and marks an enemy.
9. Shadow Lord — The Assassin's ultimate transformation.

**Exclusive weapon:** Shadow Dagger.

Visual style:
- Dark purple particles.
- Smoke clouds.
- Portal effects.
- Shadow trails.
- Disappearance and reappearance effects.

## Paladin — Holy / Support / Tank

**Identity:** A holy warrior who combines healing, defense, and powerful radiant attacks.

Abilities:
1. Divine Heal — Restores health.
2. Holy Shield — Grants powerful protection.
3. Guardian Aura — Temporarily increases survivability.
4. Divine Nova — Releases a radiant area attack and heals the player.
5. Resurrection — Provides a powerful healing and defensive effect.
6. Radiant Strike — Damages nearby enemies and heals the player.
7. Divine Judgment — A powerful holy area attack.
8. Celestial Form — Grants powerful temporary buffs.
9. High Paladin — The Paladin's ultimate ability.

**Exclusive weapon:** Holy Blade.

Visual style:
- Gold and white particles.
- End rods.
- Holy light effects.
- Healing particles.
- Radiant explosions.
- Halo-like effects.

## Necromancer — Summoning / Dark Magic

**Identity:** A dark spellcaster who commands undead creatures and manipulates souls.

Abilities:
1. Summon Skeleton — Summons a skeleton minion.
2. Soul Drain — Damages an enemy and heals the player.
3. Bone Prison — Restricts an enemy's movement.
4. Summon Knight — Summons an undead guardian.
5. Death Pact — Sacrifices owned minions to damage nearby enemies.
6. Army of Bones — Summons several skeletons.
7. Lich Form — Grants powerful dark magic buffs.
8. Army of the Dead — Summons a large undead army.
9. Lich King — The Necromancer's ultimate transformation and summoning ability.

**Exclusive weapon:** Soul Reaper.

Visual style:
- Soul particles.
- Soul fire.
- Portal particles.
- Dark smoke.
- Purple and black effects.
- Summoning circles.
- Dramatic undead spawn effects.

Necromancer minions must:
- Never attack their owner.
- Never intentionally target another minion belonging to the same owner.
- Have their owner tracked.
- Target valid hostile enemies.
- Avoid attacking friendly players.
- Be cleaned up correctly when they die or disappear.
- Have reliable targeting logic that searches for a valid enemy rather than simply selecting the nearest entity.

---

# 3. CLASS LEVELING AND XP SYSTEM

Every class has its own progression from **level 1 to level 50**.

XP should be awarded through activities such as:

| Activity | XP |
|---|---:|
| Killing a mob | 25 |
| Mining Diamond Ore | 50 |
| Mining Deepslate Diamond Ore | 60 |
| Mining Emerald Ore | 40 |
| Mining Deepslate Emerald Ore | 50 |

The XP requirement should scale with the current level.

Current progression formula:

**XP required = Current Level × 250**

Examples:
- Level 1 to 2: 250 XP.
- Level 2 to 3: 500 XP.
- Level 3 to 4: 750 XP.
- Level 10 to 11: 2,500 XP.

Requirements:
- XP must carry over correctly after a level-up.
- Multiple levels should be gained when enough XP is awarded.
- XP must never become incorrectly stuck.
- Players without a selected class should not receive class XP.
- The maximum level is 50.
- Players should receive a level-up message and sound.
- Unlock messages should appear when players reach important ability levels.
- XP rewards should be handled through one shared function so normal rewards and administrator rewards behave identically.
- Existing player data must be handled safely during updates.
- Never erase valid player progress during a script reload.

Ability unlock levels:

| Ability slot | Required level |
|---|---:|
| 1 | 1 |
| 2 | 5 |
| 3 | 10 |
| 4 | 15 |
| 5 | 20 |
| 6 | 25 |
| 7 | 30 |
| 8 | 40 |
| 9 | 50 |

# 4. CLASS AND SKILL GUIS

All menus must be made using Skript chest inventories.

## Class GUI — `/class`

Display all six classes with:
- Class-specific icons.
- Class names.
- Short descriptions.
- Combat roles.
- Current selection.
- Current class level.
- Current XP.
- XP required for the next level.

The GUI must clearly display the player's selected class.

It must not display `None` after a player successfully selects a class.

Players can choose a class through the GUI. Once chosen, the selection is permanent unless an administrator resets or changes it.

## Skills GUI — `/skills`

Show the nine abilities belonging to the player's chosen class.

Each ability should show:
- Name.
- Description.
- Required level.
- Unlocked or locked status.
- Cooldown.
- Selected ability status.

Players can select an unlocked ability.

## Ability casting — `/cast`

Players activate their selected ability using `/cast`.

Requirements:
- Check the player's class.
- Check the ability unlock level.
- Check cooldown.
- Prevent casting locked skills.
- Display useful error messages.
- Play the correct particles and sounds.
- Never allow an ability from another class to be cast.

# 5. CLASS WEAPONS AND CRAFTING

Each class receives one exclusive craftable weapon.

| Class | Weapon |
|---|---|
| Warrior | Warrior's Greatsword |
| Ranger | Ranger's Longbow |
| Mage | Arcane Staff |
| Assassin | Shadow Dagger |
| Paladin | Holy Blade |
| Necromancer | Soul Reaper |

Requirements:
- Every weapon must have a custom name and lore.
- Every weapon must have a unique crafting recipe.
- Only the matching class can craft its weapon.
- A player must not bypass the restriction by receiving the weapon from someone else.
- Only the correct class can use the weapon.
- Restrictions should use reliable item identification rather than relying only on display names.
- Weapons should have class-specific visual effects.
- Weapons should be balanced for their intended class.
- Do not allow players to exploit item renaming or crafting mechanics to bypass restrictions.

# 6. PARTICLE AND SOUND EFFECT SYSTEM

Visual effects are a major part of Valectoria.

I do not want bland or tiny particle bursts.

Every ability should feel satisfying, powerful, and visually distinct.

Examples:

**Cleave**
- A wide sweeping slash.
- Critical particles.
- Red/orange impact particles.
- A noticeable attack sound.

**Ground Slam**
- A large circular ground impact.
- Expanding dust.
- Critical sparks.
- A strong impact sound.

**Whirlwind**
- Rotating particle effects around the player.
- Repeated sweeping effects.
- A spinning sound.

**Mage spells**
- Magical projectile trails.
- Enchantment particles.
- Arcane rings.
- Explosive magical impacts.

**Assassin abilities**
- Dark smoke clouds.
- Purple portal bursts.
- Disappearance effects.
- Shadow-like trails.

**Paladin abilities**
- Radiant rings.
- Golden light.
- Healing particles.
- Holy impact effects.

**Necromancer abilities**
- Swirling souls.
- Soul fire.
- Dark summoning circles.
- Portal bursts.
- Skeleton summoning effects.

Requirements:
- Use multiple layers of particles where appropriate.
- Make ultimate abilities visually more impressive than normal abilities.
- Add suitable sounds.
- Avoid excessive particle counts that cause lag.
- Keep effects readable during multiplayer combat.
- Avoid effects that obscure the entire screen.

# 7. RESOURCE PACK

Valectoria should have a dedicated required resource pack.

The resource pack should support:
- Custom models for class weapons.
- Custom weapon textures.
- Custom ability sounds.
- Custom visual assets where useful.
- A consistent Valectoria fantasy/RPG theme.

Important restrictions:
- Do not add custom armor sets or armor models.
- Build all menus directly inside Skript; do not make GUI textures a requirement.
- Make sure the resource pack matches the actual item models and sounds used by the Skript system.
- Include correct resource pack metadata for the target Minecraft version.
- Provide a complete, correctly structured resource pack rather than an empty template.
- The system should have sensible fallback behavior when custom assets are unavailable.

# 8. ADMINISTRATION AND MANAGEMENT

Provide administrative commands for managing player progression.

Commands should include:

`/valadmin setlevel  `

Sets a player's class level.

`/valadmin xp  `

Adds class XP and processes level-ups.

`/valadmin reset `

Resets the player's class progression.

`/valadminclass  `

Sets a player's class.

Requirements:
- Commands require administrator permissions.
- Validate player names, levels, amounts, and class names.
- Prevent invalid levels and negative XP values.
- Send confirmation messages.
- Keep player data intact unless an administrator deliberately resets it.

# 9. PLAYER COMMANDS

The main player commands should include:

| Command | Purpose |
|---|---|
| `/class` | Opens class selection and class information |
| `/skills` | Opens the class skill menu |
| `/cast` | Uses the selected ability |
| `/classinfo` | Displays class, level, XP, and selected skill |

Add other commands only when they provide a useful purpose.

# 10. DATA STORAGE AND RELIABILITY

Use persistent Skript variables for player progression.

Store:
- Selected class.
- Class level.
- Class XP.
- Selected ability.
- Ability cooldowns.
- Minion ownership.
- Temporary ability state.
- Other necessary class information.

Use player UUIDs rather than player names for persistent player data.

Requirements:
- Variables must survive server restarts.
- Reloading scripts must not reset player progress.
- Missing variables must be initialized safely.
- Invalid class values must be handled.
- Existing data must be migrated safely when necessary.
- Avoid duplicate rewards.
- Avoid duplicate scheduled tasks.
- Remove temporary variables when they are no longer needed.

# 11. BALANCING

The system should feel like a real RPG rather than six classes with unlimited damage.

Balance:
- Ability damage.
- Buff duration.
- Cooldowns.
- Summon counts.
- Movement abilities.
- Healing.
- Area-of-effect damage.
- Weapon strength.

Ultimate abilities should be powerful, but they should not make normal combat meaningless.

Each class should have a clear identity and meaningful advantages and disadvantages.

# 12. FUTURE EXPANSION ROADMAP

Design the system so it can eventually support:

**Class progression**
- More skill upgrades.
- Skill trees.
- Class-specific quests.
- Passive abilities.
- Advanced abilities beyond the initial nine.

**RPG world**
- Custom bosses.
- Dungeons.
- Elite mobs.
- Rare drops.
- Legendary equipment.
- Special areas and events.

**Multiplayer**
- Parties.
- Guilds.
- Class synergies.
- Cooperative boss fights.
- Competitive events.

**Economy and rewards**
- Rare crafting materials.
- Weapon upgrades.
- Ability enhancements.
- Quest rewards.
- Boss loot.

These are future expansions. Do not create fake or unfinished systems just to claim they exist. Build them properly when requested.

# 13. DEVELOPMENT RULES

When working on Valectoria:

1. Preserve working features.
2. Do not rewrite everything just to add one new ability.
3. Check compatibility with Minecraft 26.2, Skript 2.16.2+, and SkBee.
4. Do not guess at syntax.
5. Provide complete code when requested.
6. Explain where each file belongs.
7. Include installation and reload instructions.
8. Give useful test commands.
9. Fix all reported parser errors before adding more features.
10. Keep the system organized and expandable.
11. Never silently remove a feature.
12. Explain any changes to existing variables or player data.
13. Avoid unnecessary addons and dependencies.
14. Do not claim a feature is working until its implementation has been checked.

When I provide a Skript reload error, fix the exact problem and check for related problems in the surrounding code.

---

# FINAL GOAL

I want **Valectoria SMP** to become a polished fantasy RPG Minecraft server with six unique playable classes, class-exclusive weapons, satisfying combat effects, a real leveling system, skill progression, powerful abilities, undead summoning, custom visuals, and an immersive RPG experience.

It should feel like a complete RPG game inside Minecraft, not just a normal survival server with a few extra commands.

Help me build it step by step, prioritizing stability, quality, compatibility, and a great player experience.
Kodari AI
KodariNov 3 at 11:52 am 2
  1. Build the class-selection and progression foundation first.

  2. Add skills, casting, weapons, and effects in later stages, checking compatibility as we go. I’ll skip the resource-pack work.

Added valectoria.sk as the first stage: six-class selection, per-class levels and XP, ore and mob rewards, /classinfo, and administrator commands. Class changes preserve each class’s progress; /valadmin reset deletes it.

Place the file in plugins/Skript/scripts/ and run /sk reload valectoria. Test with /class, /classinfo, and /valadmin xp <player> 250. Admin commands require valectoria.admin and currently target online players.

Skills, abilities, weapons, and minions are not implemented yet. This stage has not been tested on your server; share any reload errors before we build the next stage. Player-placed ores are tracked to discourage repeat mining, but other farming routes still need review.

Devon Derecho

Line 167 is the only error. Others are potential errors.

📎 1 file 2,088 chars
📄
pasted-code-1793782021023.txt
txt 21 lines
▶
[08:43:09 INFO]: [Skript] Line 57: (valectoria.sk)
[08:43:09 INFO]:     List is missing 'and' or 'or', defaulting to 'and': "&7Level: %{_level}%", "&7Maximum level reached"
[08:43:09 INFO]:     Line: set slot 22 of {_menu} to nether star named "&6Selected: %{_class}%" with lore "&7Level: %{_level}%", "&7Maximum level reached"
[08:43:09 INFO]:  
[08:43:09 INFO]: [Skript] Line 60: (valectoria.sk)
[08:43:09 INFO]:     List is missing 'and' or 'or', defaulting to 'and': "&7Level: %{_level}%", "&7XP: %{_xp}% / %{_required}%"
[08:43:09 INFO]:     Line: set slot 22 of {_menu} to nether star named "&6Selected: %{_class}%" with lore "&7Level: %{_level}%", "&7XP: %{_xp}% / %{_required}%"
[08:43:09 INFO]:  
[08:43:10 INFO]: [Skript] Line 145: (valectoria.sk)
[08:43:10 INFO]:     [Deprecated] The 'permission message' entry has been deprecated for removal in a future release. Commands that a player does not have permission to execute are no longer sent to their client.
[08:43:10 INFO]:     Line: command /valadmin  [] []:
[08:43:10 INFO]:  
[08:43:10 INFO]: [org.cloudburstmc.netty.util.nethernet.StunObserver] STUN discovery through stun.cloudflare.com:3478 maps this host to 85.211.128.197:62632, a different port than udp/19132
[08:43:10 INFO]: [org.cloudburstmc.netty.util.nethernet.StunObserver] STUN discovery through stun.l.google.com:19302 maps this host to 85.211.128.196:3734, a different port than udp/19132
[08:43:10 INFO]: [Skript] Line 167: (valectoria.sk)
[08:43:10 INFO]:     This command has multiple arguments, meaning it is not possible to get the 'argument'. Use 'argument 1', 'argument 2', etc. instead
[08:43:10 INFO]:     Line: if arg-3 < 1 or arg-3 > {@val-max-level}:
[08:43:10 INFO]:  
[08:43:10 INFO]: [Skript] Line 186: (valectoria.sk)
[08:43:10 INFO]:     [Deprecated] The 'permission message' entry has been deprecated for removal in a future release. Commands that a player does not have permission to execute are no longer sent to their client.
[08:43:10 INFO]:     Line: command /valadminclass  :
Kodari AI
KodariNov 4 at 8:48 am 2
  • Split the level bounds check to fix line 167.

  • Remove the lore-list and deprecated permission-message warnings.

Fixed the line 167 error and addressed the Skript warnings. The permission requirements remain in place.

Place valectoria.sk in plugins/Skript/scripts/, then run /sk reload valectoria.

Devon Derecho

no errors and it works perfectly fine. Now give me the other features and also add effects like particles and make it extremely cool.

Kodari AI
KodariNov 4 at 8:59 am 20
  1. Expand the existing Valectoria class features.

  2. Add particles and visual effects that fit each class.

  1. Added two level-based abilities for each class, including Necromancer summons and skill cooldowns.

Added two abilities per class, cooldowns, a Necromancer Soul Guard, and class-themed particles and sounds.

  • Use /valskills to see your abilities and /valskill 1 or /valskill 2 to cast. The second skill unlocks at level 10.

  • Area attacks and Soul Guards damage monsters only.

Place valectoria.sk in plugins/Skript/scripts/ and run /sk reload valectoria. I couldn’t test the reload on a live server here.

If you had a separate list of other features in mind, send it over.

Devon Derecho

thats good! now keep those abilities but add these.

📎 1 file 5,003 chars
📄
pasted-code-1793783054750.txt
txt 251 lines
▶
Warrior — Melee / Tank

Identity: A powerful close-combat fighter who specializes in damage, strength, and survivability.

Abilities:

Cleave — Sweeping melee attack that damages nearby enemies.

Iron Will — Temporarily increases defense.

Berserker — Increases strength and movement speed.

Ground Slam — Creates a powerful ground impact that damages and launches enemies.

Whirlwind — Damages nearby enemies with a spinning attack.

Battle Cry — Grants combat buffs.

Overpower — Deals heavy damage to a targeted enemy.

War God — Provides powerful combat enhancements.

Warlord — A devastating area attack combined with powerful buffs.

Exclusive weapon: Warrior's Greatsword.

Visual style:

Red and orange particles.

Critical-hit effects.

Sweeping slash effects.

Shockwaves.

Explosive ground impacts.

Ranger — Ranged / Mobility

Identity: A skilled archer who uses precision, speed, and ranged attacks.

Abilities:

Hunter's Mark — Marks an enemy.

Quick Shot — Fires a fast arrow.

Windstep — Launches the player upward and grants mobility.

Piercing Arrow — Fires a powerful arrow.

Rain of Arrows — Fires multiple arrows.

Eagle Eye — Improves combat awareness and mobility.

Storm Volley — Fires a large volley of arrows.

Deadeye — Deals massive damage to a targeted enemy.

Ranger Lord — A powerful ranged ultimate.

Exclusive weapon: Ranger's Longbow.

Visual style:

Green and white particles.

Wind trails.

Arrow trails.

Targeting effects.

Nature-themed effects.

Mage — Magic / Area Damage

Identity: A spellcaster who specializes in arcane magic, powerful attacks, and area damage.

Abilities:

Arcane Bolt — Fires a magical attack at a target.

Mana Burst — Releases an area explosion of magic.

Blink — Teleports the player forward.

Meteor — Strikes a target with a powerful magical impact.

Arcane Storm — Damages enemies in a large area.

Mana Surge — Temporarily increases combat power.

Cataclysm — Creates a devastating magical area attack.

Arcane Apocalypse — An extremely powerful area spell.

Archmage — The Mage's ultimate transformation and attack.

Exclusive weapon: Arcane Staff.

Visual style:

Cyan, blue, and purple particles.

Enchantment particles.

Arcane circles and rings.

Magical projectiles.

Floating spell effects.

Powerful explosion effects.

Assassin — Stealth / Burst Damage

Identity: A fast fighter specializing in invisibility, surprise attacks, and massive single-target damage.

Abilities:

Shadow Strike — A powerful targeted strike.

Smoke Bomb — Creates a smoke effect and grants invisibility.

Vanish — Temporarily disappears and gains speed.

Backstab — Deals high damage to an enemy.

Shadow Clone — Summons a temporary clone.

Assassinate — Deals massive targeted damage.

Shadow Realm — Grants powerful temporary combat buffs.

Death Mark — Weakens and marks an enemy.

Shadow Lord — The Assassin's ultimate transformation.

Exclusive weapon: Shadow Dagger.

Visual style:

Dark purple particles.

Smoke clouds.

Portal effects.

Shadow trails.

Disappearance and reappearance effects.

Paladin — Holy / Support / Tank

Identity: A holy warrior who combines healing, defense, and powerful radiant attacks.

Abilities:

Divine Heal — Restores health.

Holy Shield — Grants powerful protection.

Guardian Aura — Temporarily increases survivability.

Divine Nova — Releases a radiant area attack and heals the player.

Resurrection — Provides a powerful healing and defensive effect.

Radiant Strike — Damages nearby enemies and heals the player.

Divine Judgment — A powerful holy area attack.

Celestial Form — Grants powerful temporary buffs.

High Paladin — The Paladin's ultimate ability.

Exclusive weapon: Holy Blade.

Visual style:

Gold and white particles.

End rods.

Holy light effects.

Healing particles.

Radiant explosions.

Halo-like effects.

Necromancer — Summoning / Dark Magic

Identity: A dark spellcaster who commands undead creatures and manipulates souls.

Abilities:

Summon Skeleton — Summons a skeleton minion.

Soul Drain — Damages an enemy and heals the player.

Bone Prison — Restricts an enemy's movement.

Summon Knight — Summons an undead guardian.

Death Pact — Sacrifices owned minions to damage nearby enemies.

Army of Bones — Summons several skeletons.

Lich Form — Grants powerful dark magic buffs.

Army of the Dead — Summons a large undead army.

Lich King — The Necromancer's ultimate transformation and summoning ability.

Exclusive weapon: Soul Reaper.

Visual style:

Soul particles.

Soul fire.

Portal particles.

Dark smoke.

Purple and black effects.

Summoning circles.

Dramatic undead spawn effects.

Necromancer minions must:

Never attack their owner.

Never intentionally target another minion belonging to the same owner.

Have their owner tracked.

Target valid hostile enemies.

Avoid attacking friendly players.

Be cleaned up correctly when they die or disappear.

Have reliable targeting logic that searches for a valid enemy rather than simply selecting the nearest entity.
Kodari AI
KodariNov 4 at 9:06 am 5
  1. Add the listed class abilities without removing the existing ones.

  2. Add class weapons and visual effects.

  3. Implement owner-aware Necromancer minion targeting and cleanup.

  1. Added the new ability commands alongside the original skills. Some abilities use simplified effects; I’ll note those below.

  2. Adding class weapons and improving minion targeting.

Added valectoria-extra.sk alongside the original abilities:

  • /valabilities lists the nine additional abilities for your class; /valability 1–9 casts them.

  • /valweapon gives a named class weapon.

  • Summoned skeletons periodically search nearby monsters, excluding tracked summons.

This is a first pass, not a complete implementation of the specification. Blink uses a forward push, Shadow Clone does not create a clone, Summon Knight creates a skeleton, and several attacks share simplified effects. Weapon restrictions are name-based and aren’t secure exclusivity. Minion cleanup also only processes loaded skeletons.

Place both .sk files in plugins/Skript/scripts/, then run /sk reload valectoria and /sk reload valectoria-extra. I couldn’t test them on a live server, so reload compatibility and gameplay still need verification.

Devon Derecho

ok thats better. now add structures that can spawn bosses

Kodari AI
KodariNov 4 at 9:12 am 2

I’ll add a separate boss-altar script: admins can build an altar, and players can activate it to summon a boss. Existing abilities will remain unchanged.

Added a buildable boss altar with an Altar Guardian and a 10-minute cooldown. It doesn’t generate naturally.

Place valectoria-bosses.sk in plugins/Skript/scripts/ and run /sk reload valectoria-bosses. With valectoria.bossaltar.admin, look at a block and use /bossaltar create—it replaces the target block and nearby pillar blocks. Right-click the lodestone to summon the boss.

Use /bossaltar reset if a boss disappears without dying, or /bossaltar remove to unregister the altar.

Devon Derecho

ok cool now make 5 more bosses and make the altar structure randomized. and also add 5 abilities for those bosses and when they die they drop a "weapon core" for the class weapons.

Kodari AI
KodariNov 4 at 9:20 am 2
  1. Add five bosses and randomize altar layouts.

  2. Give the bosses five abilities and make them drop weapon cores for class weapons.

  • Added five bosses; each altar summon selects one of the six at random. They share five randomly chosen combat abilities.

  • Altar creation now randomizes its materials, pillar layout, and heights. It still requires /bossaltar create; altars don’t generate naturally.

  • Each boss drops a Weapon Core. Hold your class weapon and use /valcore to consume one and add Unbreaking III. This improves durability where applicable, not damage.

Reload both scripts with /sk reload valectoria-bosses and /sk reload valectoria-extra. I haven’t tested them on a live server.

Devon Derecho

oh wait i forgot to specify: those weapon cores are USED FOR CRAFTING. my bad for not mentioning this earlier and also add effects when boss is going to spawn like particles circling up to the sky and merging together making a star and the boss spawns.

Kodari AI
KodariNov 4 at 9:25 am 3
  1. Replace the core upgrade with crafting for class weapons.

  2. Add a rising particle ritual before each boss spawns.

  • /valweapon now crafts your class weapon using one Weapon Core and the corresponding base item. /valcore no longer infuses weapons.

  • Altar activation now plays a rising spiral that converges into a star before the boss appears.

Place the updated files in plugins/Skript/scripts/ and run /sk reload valectoria-extra and /sk reload valectoria-bosses. Crafting is command-based, not a crafting-table recipe. I haven’t tested the scripts on a live server.

Devon Derecho

thats better. Add effects to the boss abilities and if possible allow it to spawn randomly anywhere in the world

Kodari AI
KodariNov 4 at 9:34 am 1
  1. Add visual effects to the boss abilities.

  2. Add random world spawning where terrain is suitable.

I’ll keep altar summons intact and add occasional wild bosses near online players, rather than generating structures or loading distant chunks.

Added particle effects to all five boss abilities. Wild bosses now have a configurable 25% chance to spawn near an online player every 10 minutes, provided the chosen location has suitable space. They drop Weapon Cores like altar bosses.

Reload with /sk reload valectoria-bosses. I haven’t tested it on a live server.

Devon Derecho

cool. now add sounds support and phases and also if possible, add boss music themes to bosses and i will create the resource pack theme songs. it will be the same resource pack for all of the .sk files

Kodari AI
KodariNov 4 at 9:38 am 2
  1. Add boss sounds and health-based phases.

  2. Add resource-pack music keys for each boss.

Added boss ability, spawn, phase-change, and death sounds. Bosses enter stronger phases at 66 and 33 health.

For your shared resource pack, register these sound events in assets/valectoria/sounds.json:

  • valectoria:boss.altar_guardian

  • valectoria:boss.ashen_warlord

  • valectoria:boss.plaguebringer

  • valectoria:boss.frost_revenant

  • valectoria:boss.shadow_tyrant

  • valectoria:boss.dread_king

Players hear the nearest boss’s theme within 32 blocks; it stops when they leave or the boss is defeated. Tracks play once, so they won’t automatically loop.

Place the updated script in plugins/Skript/scripts/ and run /sk reload valectoria-bosses. Live-server testing is still needed.

Devon Derecho

oh wait please make it so they get 5 more abilities in phase 2 thank you

Kodari AI
KodariNov 4 at 9:40 am 1

I’ll add five attacks to the shared boss pool from phase 2 onward, with particles and sounds. Phase 3 will retain them.

Added five shared boss abilities that unlock in phase 2 and remain available in phase 3, each with sounds and particles.

Reload with /sk reload valectoria-bosses. Live-server testing is still needed.

Devon Derecho

can you give me the resource pack format.

Kodari AI
KodariNov 4 at 9:44 am 1

Use this layout for the shared resource pack:

Plain Text
Valectoria Pack/
├── pack.mcmeta
└── assets/
    └── valectoria/
        ├── sounds.json
        └── sounds/
            └── boss/
                ├── altar_guardian.ogg
                ├── ashen_warlord.ogg
                ├── plaguebringer.ogg
                ├── frost_revenant.ogg
                ├── shadow_tyrant.ogg
                └── dread_king.ogg

In assets/valectoria/sounds.json:

JSON
{
  "boss.altar_guardian": {
    "sounds": [{"name": "valectoria:boss/altar_guardian", "stream": true}]
  },
  "boss.ashen_warlord": {
    "sounds": [{"name": "valectoria:boss/ashen_warlord", "stream": true}]
  },
  "boss.plaguebringer": {
    "sounds": [{"name": "valectoria:boss/plaguebringer", "stream": true}]
  },
  "boss.frost_revenant": {
    "sounds": [{"name": "valectoria:boss/frost_revenant", "stream": true}]
  },
  "boss.shadow_tyrant": {
    "sounds": [{"name": "valectoria:boss/shadow_tyrant", "stream": true}]
  },
  "boss.dread_king": {
    "sounds": [{"name": "valectoria:boss/dread_king", "stream": true}]
  }
}

Save the songs as Ogg Vorbis files with the exact filenames above. For Minecraft 1.20–1.20.1, pack.mcmeta can be:

JSON
{
  "pack": {
    "pack_format": 15,
    "description": "Valectoria shared resource pack"
  }
}

The pack metadata format depends on your Minecraft version. Which version are you using? I can give you the correct pack.mcmeta for it.

Devon Derecho

oh my minecraft is 26.2

Kodari AI
KodariNov 4 at 9:54 am 2

For Minecraft 26.2, the sound folder layout and sounds.json I gave you remain the same. The pack.mcmeta example using pack_format: 15 is not for 26.2.

I can’t verify the correct 26.2 pack metadata value right now, so I don’t want to guess. Use a 26.2-compatible pack.mcmeta template, then add the assets/valectoria folder and your .ogg files to that pack.

Devon Derecho

can you add like for the resource pack on custom textures on the class weapons

Kodari AI
KodariNov 4 at 10:01 am 1

Custom textures for the six class weapons are possible in your shared resource pack, but texture generation is currently disabled for this project.

Enable it for this project via Settings → Generation, or for all projects at https://kodari.ai/settings?tab=features. Once enabled, I can create the textures and connect them to the class weapons.

Devon Derecho

generate the custom textures for the class weapons and custom boss looks resource pack.

Kodari AI
KodariNov 4 at 10:02 am 1

Kodari can’t build complete resource packs or custom boss looks in this Skript project.

Devon Derecho

ok then tell me the format for the custom weapons resource pack.

Kodari AI
KodariNov 4 at 10:05 am 1

Your shared pack can hold the weapon textures alongside the boss music:

Plain Text
Valectoria Pack/
├── pack.mcmeta
└── assets/
    └── valectoria/
        ├── sounds.json
        ├── sounds/
        │   └── boss/
        │       └── ... your boss songs ...
        ├── items/
        │   ├── warrior_greatsword.json
        │   ├── ranger_longbow.json
        │   ├── arcane_staff.json
        │   ├── shadow_dagger.json
        │   ├── holy_blade.json
        │   └── soul_reaper.json
        ├── models/
        │   └── item/
        │       ├── warrior_greatsword.json
        │       └── ... one model per weapon ...
        └── textures/
            └── item/
                ├── warrior_greatsword.png
                └── ... one texture per weapon ...

For example, assets/valectoria/items/warrior_greatsword.json:

JSON
{
  "model": {
    "type": "minecraft:model",
    "model": "valectoria:item/warrior_greatsword"
  }
}

And assets/valectoria/models/item/warrior_greatsword.json:

JSON
{
  "parent": "minecraft:item/handheld",
  "textures": {
    "layer0": "valectoria:item/warrior_greatsword"
  }
}

Repeat those two JSON files for each weapon, changing the name, and add the matching PNG to textures/item/.

The scripts don’t yet assign item-model identifiers to the class weapons. A pack alone won’t make these textures appear: the Skript must also set each weapon’s item model, such as valectoria:warrior_greatsword. This is especially important because the Warrior and Assassin weapons both use an iron sword.

The Ranger’s bow may also need additional model configuration and textures if you want a drawing animation.

Devon Derecho

Make the abilities and skills be used in the hotbar even when there is stuff.

Kodari AI
KodariNov 5 at 8:48 am 2

Skills currently use /valskill and /valability; they don’t require empty hotbar slots.

Do you want selecting a hotbar slot to activate its assigned skill while keeping the item in that slot? That would trigger skills whenever you scroll to or press the slot key.

Devon Derecho

yes and whenever in that slot i want it to be offhand to activate because players use left click and right click.

Kodari AI
KodariNov 5 at 8:52 am 2

I’ll make each hotbar slot bindable to a skill or ability. Pressing the offhand-swap key on a bound slot will activate it without moving either item; unbound slots will swap normally.

Added hotbar bindings that work even when slots contain items. Select a bound slot and press your offhand-swap key to activate its skill or ability without swapping items.

  • /valbind 1 skill 1 — bind skill 1 to slot 1

  • /valbind 2 ability 3 — bind ability 3 to slot 2

  • /valbind 1 clear — unbind slot 1 and restore normal offhand swapping there

Existing unlock requirements and cooldowns still apply. Place valectoria-hotbar.sk in plugins/Skript/scripts/ and run /sk reload valectoria-hotbar. Live-server testing is still needed.

Devon Derecho

Oh by the way do i need to add the resourcepack.sk in order for the resource pack that i made to work?

Kodari AI
KodariNov 5 at 8:58 am 1

No. Players only need to load your resource pack, either manually or through the server’s resource-pack settings. A resourcepack.sk file is only needed if you want a script to manage sending the pack.

The pack’s boss music can work with the configured sound events. Custom weapon textures still require the weapon Skript to assign the matching item-model identifiers; the pack alone won’t apply them.

Devon Derecho

i have my resource pack but the sound dosent play when the boss spawns.

Kodari AI
KodariNov 5 at 9:05 am 1

The script does play a custom theme, but it checks for nearby bosses every five seconds, rather than immediately at spawn. Players must be within 32 blocks, have the pack loaded, and have Jukebox/Note Blocks volume enabled—the script uses the record sound category.

To test the pack independently, run this as a player:

Plain Text
/playsound valectoria:boss.altar_guardian record @s ~ ~ ~ 1 1

If you hear nothing, check that assets/valectoria/sounds.json registers boss.altar_guardian and points to the matching .ogg file. If it plays, tell me whether the boss spawned from an altar or in the wild, and whether there are any errors in the server console.

Devon Derecho

i already did playsound and it worked but when a boss spawns theres no music even when i waited for 1 min

Kodari AI
KodariNov 5 at 9:06 am 1

The music tracker can retain a “theme already playing” flag across a script reload or server restart. I’ll clear that stale state on load so nearby bosses can start their themes again.

I fixed one possible cause: the script could remember a boss theme as playing after a reload or restart, even when it wasn’t.

Run /sk reload valectoria-bosses, then stand within 32 blocks of a boss and wait up to five seconds. If there’s still no music, send me any console errors from the reload or when the boss spawns. I haven’t tested this on a live server.

Devon Derecho

also can you buff the bosses and add like a shockwave move every time a boss reaches a new phase and it pushes players away and also moves the ground like sand and use falling sand for the block movements.

Kodari AI
KodariNov 5 at 9:10 am 2
  1. Buff boss combat stats.

  2. Add a falling-block shockwave on each phase change.

Buffed newly spawned bosses to 200 health with stronger combat effects. Phase changes now produce a knockback shockwave with temporary falling-sand debris; the actual terrain is unchanged.

Place the updated file in plugins/Skript/scripts/ and run /sk reload valectoria-bosses. The changes need live-server testing.

Devon Derecho

now playsound valectoria dosent show up the valectoria stuff. and also make the class weapons do something and fix the level getting reset every rejoin and buff the bosses health and change their armor to netherite with trims.

Kodari AI
KodariNov 7 at 10:05 am 3
  1. Investigate why the Valectoria sound events no longer appear.

  2. Make class weapons useful and fix levels resetting on rejoin.

  3. Increase boss health and equip trimmed netherite armor.The scripts still reference the six valectoria:boss.* sound IDs, but the resource pack itself isn’t in this project. /playsound suggestions alone don’t confirm whether a custom sound can play; try the full ID manually and check that the pack is loaded.

  1. Sounds: The script still uses the valectoria:boss.* IDs. Try typing the full ID even if it doesn’t appear in suggestions; the resource pack isn’t available in this project to inspect.

  2. Weapons: Added class-specific damage bonuses, debuffs, or healing to the six class weapons.

  3. Levels: I couldn’t find a rejoin reset in the scripts, so I haven’t changed it. Is it your Valectoria class level or your vanilla XP level that resets?

  4. Bosses: Newly spawned bosses now have 400 hearts and full netherite armor with gold Spire trims.

Copy the updated scripts to plugins/Skript/scripts/ and run /sk reload valectoria-extra and /sk reload valectoria-bosses. The changes still need live-server testing.

Devon Derecho

line 213, 214, 219, 220, 358 have errors

Kodari AI
KodariNov 7 at 10:11 am 1

Updated those lines in valectoria-bosses.sk: the phase effects now use tier syntax, and the music tracker explicitly uses loop-zombie.

Run /sk reload valectoria-bosses. If errors remain, send the full error messages and your Skript version.

Devon Derecho

it still dosent show up playsound

Kodari AI
KodariNov 7 at 10:14 am 1

Does the sound fail to play, or is valectoria only missing from the /playsound suggestions?

Try the full command again:

Plain Text
/playsound valectoria:boss.altar_guardian record @s ~ ~ ~ 1 1

If it fails, send the exact error and your resource pack’s assets/valectoria/sounds.json. Also confirm the pack is enabled in Options → Resource Packs.

Devon Derecho

never mind i just didint have the texture pack on. also make the class weapons recipe more expensive and make them actually do something

Kodari AI
KodariNov 7 at 10:18 am 1
  1. Make class weapon recipes more expensive.

  2. Add functional weapon effects.

  1. /valweapon now also costs 8 diamonds and 2 netherite ingots, alongside the Weapon Core and base weapon.

  2. Buffed each weapon’s combat effects. Ranger bow shots are now tracked when fired, so their bonus doesn’t depend on what you’re holding when the arrow lands.

Copy valectoria-extra.sk to plugins/Skript/scripts/ and run /sk reload valectoria-extra. The changes still need live-server testing.

Devon Derecho

whats the base weapon?

Kodari AI
KodariNov 7 at 10:38 am 1

The base weapon is the vanilla item consumed when you use /valweapon. It depends on your class:

Class
Base item
Warrior
Iron sword
Ranger
Bow
Mage
Blaze rod
Assassin
Iron sword
Paladin
Golden sword
Necromancer
Stone hoe

You also need a Weapon Core, 8 diamonds, and 2 netherite ingots.

Devon Derecho

does it have abilities? and how do i use it

Kodari AI
KodariNov 7 at 10:40 am 1

Yes. Each class weapon has an automatic combat effect—hold it and attack, or shoot an arrow with the Ranger bow:

  • Warrior: Extra damage and Weakness.

  • Ranger: Arrows deal extra damage and apply Slowness.

  • Mage: Extra damage and Slowness.

  • Assassin: Extra damage and Poison.

  • Paladin: Extra damage and healing.

  • Necromancer: Extra damage, Wither, and healing.

These are passive effects, not click-activated weapon abilities. Your class abilities are separate: use /valabilities to see them and /valability <1-9> to cast one. You can also bind an ability with /valbind 2 ability 3, then select hotbar slot 2 and press your offhand-swap key to activate ability 3.

Devon Derecho

nerf the extra damage. it deals like 3 hearts on no prot diamond armor and with strenght it deals 3 hearts on prot 4 neth armor. make it like 1 heart per hit on diamond and strength 2 1 heart per hit on prot 4 neth armor. and also make it so the boss can climb walls to chase the 3 block up player. if the player puts blocks on the edges of the 3 block up make it so it can break blocks for a few seconds when it is stuck for too long. and also nerf the boss health like to 200 hearts and make the swords netherite

Kodari AI
KodariNov 10 at 9:03 am 2
  1. Nerf class-weapon damage and change sword bases to netherite.

  2. Reduce boss health and add climbing and limited block-breaking when stuck.

[Generation stopped]

Devon Derecho

nerf the extra damage. it deals like 3 hearts on no prot diamond armor and with strenght it deals 3 hearts on prot 4 neth armor. make it like 1 heart per hit on diamond and strength 2 1 heart per hit on prot 4 neth armor. and also make it so the boss can climb walls to chase the 3 block up player. if the player puts blocks on the edges of the 3 block up make it so it can break blocks for a few seconds when it is stuck for too long. and also nerf the boss health like to 200 hearts and make the swords netherite. almost forgot, make right click abilities when they are holding the class weapons only. dont make it right click if the class weapon is not in their main hand

Kodari AI
KodariNov 10 at 9:06 am 3
  1. Reduce weapon damage and boss health, and switch the class swords to netherite.

  2. Give stuck bosses a way to pursue players on pillars.

  3. Cast a bound ability on right-click only while holding the matching class weapon in the main hand.

  • Reduced weapon bonus damage and weakened the dagger’s Poison and Soul Reaper’s Wither. Exact damage still depends on armor, Strength, enchantments, and vanilla attack damage.

  • New class swords require netherite swords; existing weapons are unchanged.

  • Newly spawned bosses have 200 hearts and netherite swords. They can jump toward nearby elevated targets, though this isn’t full wall-climbing.

  • Right-clicking with your matching class weapon in your main hand casts the ability bound to that hotbar slot. An unbound Ranger bow works normally; binding it makes right-click cast instead of drawing the bow. Offhand-swap casting remains available.

Block-breaking while stuck is not implemented, so bosses won’t damage terrain or bypass protections.

Copy the updated files to plugins/Skript/scripts/ and reload valectoria-extra, valectoria-hotbar, and valectoria-bosses. These changes still need live-server testing.

Devon Derecho

ok make them teleport to the player instead when they are stuck and make them not attack for a crisp 1 second so the player has time to react

Kodari AI
KodariNov 10 at 9:33 am 2

Bosses now teleport to their target after roughly six seconds of being stuck, then cannot deal melee damage or use scripted attacks for one second. They no longer attempt to climb.

Copy valectoria-bosses.sk to plugins/Skript/scripts/ and run /sk reload valectoria-bosses. Live-server testing is still needed.

Devon Derecho

ok just rework everything but keep the keybinds and resource pack support. REWORK EVERYTHING. change the names of every abilities and skill and make abilities and skill not individual. only add the abilities to /valbind skill. and 2nd of all i want the bosses to be fully reworked because the particles. are so boring and the abilities are so bland. same goes for every class abilties. please rework everything because the plugin is boring now.

Kodari AI
KodariToday at 5:57 am 7
  • Unify the nine class abilities under /valskill and /valbind … skill, preserving existing hotbar slots and class progression.

  • Give each class a new themed kit, and rework boss attacks with clearer telegraphs and distinct visuals.

  • Preserve weapon names, boss music IDs, altar data, and stuck-teleport protection.

Reworked the class kits into nine renamed skills per class, and added telegraphed boss attacks with themed particles and effects.

  • Use /valskills to see your kit and /valbind 1 skill 3 to bind a skill. Existing bindings keep their slots and numbers, but now cast the new skills at those numbers.

  • Offhand-swap casting, main-hand class-weapon right-click casting, progression, altar data, and boss music IDs are preserved.

Copy the updated scripts, including the new valectoria-skills.sk, into plugins/Skript/scripts/, then run /sk reload all. The rework still needs live-server testing and balance tuning.

Devon Derecho

skills are too bland. add some visual effects also instead of it only being particles

Kodari AI
KodariToday at 6:12 am 5

I’ll add short-lived, class-themed floating item visuals and cosmetic lightning for major skills, without changing their damage or bindings.

Added floating class-themed symbols to skill casts and harmless visual lightning to ultimate skills. The symbols are cleaned up automatically.

Copy valectoria-skills.sk to plugins/Skript/scripts/ and run /sk reload valectoria-skills. Test it in-game to check the visuals on your server.

Devon Derecho

every abilties uses the same particle but just changes the use of it. its gonna be repetetive please change it and also add something like sonic boom particels. and add a /valhelp

Kodari AI
KodariToday at 6:18 am 2

I’ll give each skill its own particle palette and cast pattern, including sonic booms for selected attacks, and add /valhelp for the current commands.

  • Added skill-specific particle palettes and varied cast patterns, including sonic booms for selected attacks.

  • Added /valhelp with player commands and permission-based admin help.

Copy valectoria-skills.sk to plugins/Skript/scripts/ and run /sk reload valectoria-skills. The visuals still need in-game testing.

Devon Derecho

i want the bosses to be like this datapack: https://modrinth.com/datapack/providence/gallery

Kodari AI
KodariToday at 6:22 am 2

The datapack focuses on demanding, distinct boss fights with attack patterns, movement and phase transitions. Its gallery images aren’t visible to me through the page text.

Do you want me to keep Valectoria’s six bosses and redesign their fights in that style, or recreate specific bosses from the datapack? If the visuals are what you mean, send a screenshot or name the boss shown.

Devon Derecho

keep val six bosses and redesign their fights in that style

Kodari AI
KodariToday at 6:24 am 3

I’ll keep the six bosses, their altars and music, but give each fight named attacks with dodgeable warnings, distinct effects and stronger phase patterns.

Reworked the six bosses with named, telegraphed attacks, themed effects and phase-two multi-hit attacks. Their altars, music, health and stuck-teleport recovery remain intact.

Copy valectoria-bosses.sk to plugins/Skript/scripts/ and run /sk reload valectoria-bosses. The encounters need live-server testing and balance tuning; they’re inspired by the requested style, not recreations of the datapack’s fights.

Devon Derecho

ok just recreate the bosses from the datapack https://modrinth.com/datapack/providence

Kodari AI
KodariToday at 6:28 am 1

The datapack currently lists eight bosses, rather than Valectoria’s six, and its fights use custom mechanics, animations and resource-pack assets. Recreating them faithfully in Skript requires more detail than the project page provides.

Please upload the datapack ZIP and its resource pack, or share the boss showcase video. I can then inspect the fights and determine what can be reproduced with Skript and SkBee while keeping Valectoria’s bindings and progression.

Devon Derecho

https://www.youtube.com/watch?v=OXazguU5LSQ

Kodari AI
KodariToday at 6:29 am 1

The video page doesn’t expose the footage or fight details to me, so I can’t faithfully recreate the bosses from the link alone.

Please upload the datapack ZIP and resource pack, or share screenshots and descriptions of the boss attacks. I can then adapt what Skript and SkBee support while preserving Valectoria’s progression and keybinds.

Devon Derecho

and also please make the abilities like these too :( its so bland

Kodari AI
KodariToday at 6:45 am 2

I’ll use the screenshots as visual inspiration: sweeping arcs, dark vortexes and a descending comet, with effects positioned around the actual target where appropriate.

Added larger, layered skill visuals: spiraling rings, sweeping trails, dark smoke, target vortexes and sonic booms. Mage’s Cometfall now visibly descends before its impact.

Copy valectoria-skills.sk to plugins/Skript/scripts/ and run /sk reload valectoria-skills. The effects need in-game testing.

The Providence boss recreation is still pending the datapack files or detailed fight references.

Devon Derecho

well the images i sent are from the datapack its from the bosses

Kodari AI
KodariToday at 6:46 am 1

Those screenshots are boss attacks, not examples of player abilities—I misunderstood. They show a blue descending blast, a dark vortex and sweeping red attack trails that I can use as references for the boss visuals.

They don’t show the full attack timing or mechanics, though. Please upload the datapack ZIP if you want me to inspect and recreate the fights as closely as Skript and SkBee allow.

Devon Derecho

heres more images of the bosses and also change the altar structure. its so bad seeing 4 pillars only.

Kodari AI
KodariToday at 6:53 am 2
  1. Give the existing bosses attacks inspired by the screenshots’ spirals, sweeping trails and descending soul-flame blasts.

  2. Replace the four-pillar altar with a more substantial ritual structure.

Added screenshot-inspired boss effects: soul-flame spirals, red sweeping trails, descending blast trails and dark smoke. These are visual interpretations, not faithful recreations of the datapack’s fights.

New altars now have a 9×9 ritual floor, corner pillars and lit pedestals. Existing altars are unchanged. To build one, look at its center block and use /bossaltar create, then /bossaltar create confirm. The build replaces blocks in the area, so back it up first.

Copy valectoria-bosses.sk to plugins/Skript/scripts/ and run /sk reload valectoria-bosses. The changes need in-game testing.

Devon Derecho

bosses arent using any abilities

Kodari AI
KodariToday at 7:01 am 2

Fixed a targeting issue that could prevent boss abilities from triggering: bosses now choose a nearby player if they don’t have a valid mob target.

Copy valectoria-bosses.sk to plugins/Skript/scripts/ and run /sk reload valectoria-bosses. Test a fight in-game; if abilities still don’t fire, send any reload errors from the console.

Devon Derecho

errors on line 15, 444, 445, 450, 451, 452, and 213

Kodari AI
KodariToday at 7:09 am 4

I’ll fix the reported function, potion-effect and nested-loop syntax, then you can reload the boss script and check for any remaining errors.

Updated the boss function, phase effects and altar loop syntax. The error on the function call may also clear once the function loads.

Copy valectoria-bosses.sk to plugins/Skript/scripts/ and run /sk reload valectoria-bosses. If errors remain, send their full messages—line numbers alone don’t show what Skript rejected.

Kodari can make mistakes. Review important code before using.
Files
resourcepack.sk
valectoria-bosses.sk
valectoria-extra.sk
valectoria-hotbar.sk
valectoria-skills.sk
valectoria.sk
Code
6 2,102
valectoria-bosses.sk
options:
    boss-prefix: &8[&cBoss Altar&8] &r
    boss-cooldown: 10 minutes
    wild-boss-interval: 10 minutes
    wild-boss-chance: 25
    boss-music-radius: 32

function valBossArmor(boss: entity):
    set {_id} to uuid of {_boss}
    execute console command "minecraft:item replace entity %{_id}% armor.head with minecraft:netherite_helmet[trim={material:""minecraft:gold"",pattern:""minecraft:spire""}]"
    execute console command "minecraft:item replace entity %{_id}% armor.chest with minecraft:netherite_chestplate[trim={material:""minecraft:gold"",pattern:""minecraft:spire""}]"
    execute console command "minecraft:item replace entity %{_id}% armor.legs with minecraft:netherite_leggings[trim={material:""minecraft:gold"",pattern:""minecraft:spire""}]"
    execute console command "minecraft:item replace entity %{_id}% armor.feet with minecraft:netherite_boots[trim={material:""minecraft:gold"",pattern:""minecraft:spire""}]"

function valBossAttack(boss: entity, phase: integer):
    set {_id} to uuid of {_boss}
    set {_target} to target of {_boss}
    if {_target} is not a player:
        delete {_target}
    if {_target} is set:
        if distance between {_boss} and {_target} > 12:
            delete {_target}
    if {_target} is not set:
        loop all players in radius 12 around {_boss}:
            if {_target} is not set:
                set {_target} to loop-player
            else if distance between {_boss} and loop-player < distance between {_boss} and {_target}:
                set {_target} to loop-player
    if {_target} is not set:
        stop
    set {_kind} to {valectoria::altar-kind::%{_id}%}
    set {_move} to random integer between 1 and 2
    if {_phase} >= 2:
        set {_move} to random integer between 1 and 3
    set {_particle} to "electric_spark"
    set {_accent} to "end_rod"
    set {_sound} to "block.amethyst_block.chime"
    set {_title} to "Starfall Seal"
    if {_move} is 2:
        set {_title} to "Aegis Repulse"
    else if {_move} is 3:
        set {_title} to "Fractured Constellation"
    if {_kind} is 2:
        set {_particle} to "flame"
        set {_accent} to "lava"
        set {_sound} to "entity.blaze.shoot"
        set {_title} to "Falling Furnace"
        if {_move} is 2:
            set {_title} to "Searing Rampart"
        else if {_move} is 3:
            set {_title} to "Scorched Earth"
    else if {_kind} is 3:
        set {_particle} to "witch"
        set {_accent} to "spore_blossom_air"
        set {_sound} to "entity.spider.ambient"
        set {_title} to "Pestilent Bloom"
        if {_move} is 2:
            set {_title} to "Rotting Breath"
        else if {_move} is 3:
            set {_title} to "Spore Outbreak"
    else if {_kind} is 4:
        set {_particle} to "snowflake"
        set {_accent} to "cloud"
        set {_sound} to "block.glass.break"
        set {_title} to "Glacial Grave"
        if {_move} is 2:
            set {_title} to "Shattering Frost"
        else if {_move} is 3:
            set {_title} to "Whiteout"
    else if {_kind} is 5:
        set {_particle} to "portal"
        set {_accent} to "smoke"
        set {_sound} to "entity.enderman.stare"
        set {_title} to "Eclipse Mark"
        if {_move} is 2:
            set {_title} to "Umbral Collapse"
        else if {_move} is 3:
            set {_title} to "Rift Hunt"
    else if {_kind} is 6:
        set {_particle} to "soul_fire_flame"
        set {_accent} to "soul"
        set {_sound} to "entity.wither.ambient"
        set {_title} to "Soul Sentence"
        if {_move} is 2:
            set {_title} to "Royal Decree"
        else if {_move} is 3:
            set {_title} to "Death's Procession"
    set {_started} to now
    set {_center} to location of {_target}
    if {_move} is 2:
        set {_center} to location of {_boss}
    set {_radius} to 3
    if {_move} is 2:
        set {_radius} to 5
    loop all players in radius 16 around {_boss}:
        send "{@boss-prefix}&e%name of {_boss}% &7prepares &c%{_title}%&7! &fLeave the marked area!" to loop-player
    set {_x} to x-coordinate of {_center}
    set {_y} to y-coordinate of {_center} + 0.2
    set {_z} to z-coordinate of {_center}
    play sound {_sound} with volume 1 and pitch 0.7 at {_center}
    loop 3 times:
        if {valectoria::altar-boss::%{_id}%} is not set:
            stop
        if health of {_boss} <= 0:
            stop
        if {valectoria::boss-recovered::%{_id}%} is set:
            if {valectoria::boss-recovered::%{_id}%} >= {_started}:
                stop
        loop 24 times:
            set {_angle} to loop-number-2 * 15
            set {_px} to {_x} + ({_radius} * cos({_angle}))
            set {_pz} to {_z} + ({_radius} * sin({_angle}))
            execute console command "minecraft:execute at %{_id}% run minecraft:particle minecraft:%{_particle}% %{_px}% %{_y}% %{_pz}% 0 0 0 0 1 force"
            if {_kind} is 5 or 6:
                set {_spiralAngle} to {_angle} + (loop-number-1 * 45)
                set {_spiralX} to {_x} + (1.5 * cos({_spiralAngle}))
                set {_spiralZ} to {_z} + (1.5 * sin({_spiralAngle}))
                set {_spiralY} to {_y} + (loop-number-2 / 6)
                execute console command "minecraft:execute at %{_id}% run minecraft:particle minecraft:soul_fire_flame %{_spiralX}% %{_spiralY}% %{_spiralZ}% 0 0 0 0 1 force"
            else if {_kind} is 2:
                set {_sweepY} to {_y} + 0.5
                execute console command "minecraft:execute at %{_id}% run minecraft:particle minecraft:damage_indicator %{_px}% %{_sweepY}% %{_pz}% 0 0 0 0 1 force"
        wait 10 ticks
    set {_strikes} to 1
    if {_move} is 3:
        set {_strikes} to 3
    loop {_strikes} times:
        if {valectoria::altar-boss::%{_id}%} is not set:
            stop
        if health of {_boss} <= 0:
            stop
        if {valectoria::boss-recovered::%{_id}%} is set:
            if {valectoria::boss-recovered::%{_id}%} >= {_started}:
                stop
        execute console command "minecraft:execute at %{_id}% run minecraft:particle minecraft:%{_particle}% %{_x}% %{_y}% %{_z}% 1.2 0.8 1.2 0.08 60 force"
        execute console command "minecraft:execute at %{_id}% run minecraft:particle minecraft:%{_accent}% %{_x}% %{_y}% %{_z}% 0.8 1.5 0.8 0.05 35 force"
        if {_kind} is 1 or 4 or 6:
            loop 12 times:
                set {_height} to {_y} + (loop-number-2 * 0.65)
                set {_cometX} to {_x} + (loop-number-2 * 0.3)
                execute console command "minecraft:execute at %{_id}% run minecraft:particle minecraft:soul_fire_flame %{_cometX}% %{_height}% %{_z}% 0.15 0.15 0.15 0.01 3 force"
                execute console command "minecraft:execute at %{_id}% run minecraft:particle minecraft:smoke %{_cometX}% %{_height}% %{_z}% 0.1 0.1 0.1 0.01 2 force"
            execute console command "minecraft:execute at %{_id}% run minecraft:particle minecraft:explosion_emitter %{_x}% %{_y}% %{_z}% 0 0 0 0 1 force"
        else if {_kind} is 5:
            execute console command "minecraft:execute at %{_id}% run minecraft:particle minecraft:large_smoke %{_x}% %{_y}% %{_z}% 1 1.5 1 0.02 45 force"
        if {_kind} is 1 or 6:
            execute console command "minecraft:execute at %{_id}% run minecraft:particle minecraft:sonic_boom %{_x}% %{_y}% %{_z}% 0 0 0 0 1 force"
        play sound {_sound} with volume 1 and pitch 1.1 at {_center}
        if {_move} is 2:
            if {_kind} is 1:
                apply resistance 2 to {_boss} for 3 seconds
            else if {_kind} is 2:
                apply swiftness 2 to {_boss} for 3 seconds
            else if {_kind} is 3:
                apply regeneration 1 to {_boss} for 3 seconds
            else if {_kind} is 5:
                apply invisibility 1 to {_boss} for 2 seconds
            else if {_kind} is 6:
                apply absorption 1 to {_boss} for 4 seconds
        loop all players in radius {_radius} around {_center}:
            damage loop-player by 1 heart
            if {_kind} is 1:
                push loop-player upwards at speed 0.5
                push loop-player away from {_center} at speed 0.6
            else if {_kind} is 2:
                ignite loop-player for 3 seconds
                push loop-player away from {_center} at speed 0.5
            else if {_kind} is 3:
                apply poison 1 to loop-player for 3 seconds
                apply weakness 1 to loop-player for 3 seconds
            else if {_kind} is 4:
                apply slowness 2 to loop-player for 4 seconds
                apply mining fatigue 1 to loop-player for 3 seconds
            else if {_kind} is 5:
                apply blindness 1 to loop-player for 2 seconds
                push loop-player towards {_center} at speed 0.6
            else if {_kind} is 6:
                apply wither 1 to loop-player for 3 seconds
                push loop-player away from {_center} at speed 0.6
        if {_move} is 3:
            wait 10 ticks

command /bossaltar <text> [<text>]:
    permission: valectoria.bossaltar.admin
    permission message: &cYou do not have permission to manage boss altars.
    trigger:
        if arg-1 is "create":
            set {_center} to location of target block of player
            if target block of player is air:
                send "{@boss-prefix}&cLook at a nearby block first."
                stop
            if {valectoria::altar::%{_center}%} is set:
                send "{@boss-prefix}&cThere is already an altar here."
                stop
            if arg-2 is not "confirm":
                send "{@boss-prefix}&eThis builds a 9x9 altar centered on the block you are looking at, replacing floor blocks and some blocks up to 4 blocks above it. Back up the area and clear space first."
                send "{@boss-prefix}&eLook at the same block and use /bossaltar create confirm."
                stop
            set {_style} to random integer between 1 and 4
            set {_pillarBlock} to polished blackstone bricks