itzfroxypie

PLUGIN NAME: ElementalArmorSystem PLATFORM: PaperMC 1.21.1+ LANGUAGE: Java (Spigot/Paper API)

---

๐ŸŽฏ CORE IDEA

Create a Minecraft plugin where players collect Special Fragments, craft them into Special Ores, and combine them with Armor + Armor Trim to create Custom Ability Armor Sets with unique PvP and survival effects.

NO resource pack required. Use PersistentDataContainer for all custom data.

---

โš™๏ธ MAIN SYSTEMS

1. Fragment System

* Random chance (5โ€“15%) to drop Fragments from mining ores * Fragments are custom items with:

* Colored name * Lore * PersistentDataContainer tag: fragment_type

Types:

* frost * oceanic * infernal * void * nature

---

2. Ore Crafting

* 10 Fragments โ†’ 1 Special Ore * Use custom crafting recipe OR auto-convert on right-click

Ore must store:

java
ore_type = frost / oceanic / infernal / void / nature

---

3. Armor Creation (IMPORTANT)

Use Smithing Table:

INPUT:

* Base Armor (Diamond/Netherite) * Special Ore * Armor Trim

DETECT using:

* PrepareSmithingEvent

OUTPUT:

* Custom Armor Piece with:

java
armor_type = frost_armor (etc)

---

4. Armor Set Requirement

Abilities ONLY activate if player wears FULL set of same type.

---

โš”๏ธ ABILITY SYSTEM

Use:

* EntityDamageByEntityEvent * PlayerMoveEvent * EntityRegainHealthEvent * Scheduler tasks

All abilities must use:

* % chance system * cooldown system (HashMap or manager)

---

โ„๏ธ FROST ARMOR

On hit:

* 25% โ†’ Slowness II (3s) * 10% โ†’ Freeze target (immobile briefly)

Passive:

* Ice trail behind player (temporary blocks) * Resistance I

---

๐ŸŒŠ OCEANIC ARMOR

When in water:

* Water Breathing * Dolphinโ€™s Grace * Speed boost * Regeneration (slow)

Passive:

* No mining fatigue underwater

---

๐Ÿ”ฅ INFERNAL ARMOR (PvP Balanced)

On hit:

* 25% โ†’ Ignite target (if no fire resistance) * 20% โ†’ TRUE BURN (damage ignoring fire resistance) * 15% โ†’ Armor Melt (reduce armor for 3 seconds) * 10% โ†’ Healing Reduction (anti-gapples)

---

๐ŸŸฃ VOID ARMOR (Chaos Type)

On hit:

* 20% โ†’ Inventory scramble (shuffle hotbar briefly) * 15% โ†’ Cooldown lock (disable pearls/gapples for 2s) * 10% โ†’ Phase hit (partial armor bypass damage)

---

๐ŸŒฟ NATURE ARMOR (IMPORTANT)

On hit:

* 20% โ†’ Regeneration burst (attacker) * 15% โ†’ Weakness (target) * 10% โ†’ Root + Pull back if target tries to escape

Requires:

* Movement tracking system

---

๐Ÿช“ BREAKER SYSTEM

Mechanic:

* Each hit builds stacks on enemy * Store stacks using HashMap<UUID, Integer>

At max stacks (e.g. 5):

* Reduce enemy armor effectiveness * Next hit ignores part of armor * Reset stacks

---

๐Ÿง  REQUIRED SYSTEMS

Cooldown Manager

* Prevent ability spam * Store per-player cooldowns

Chance System

* Utility method:

java
boolean chance(double percent)

Temporary Effects

* Use BukkitRunnable / scheduler * Restore stats after duration

Cleanup

* Remove temporary effects * Reset armor modifiers * Clear on player quit

---

๐Ÿ“ฆ ITEM IDENTIFICATION

Use PersistentDataContainer ONLY (no lore checking).

Keys:

* fragment_type * ore_type * armor_type

---

๐Ÿ“ STRUCTURE

code
Main.java
managers/
  ItemManager.java
  AbilityManager.java
  CooldownManager.java
  StackManager.java
listeners/
  CombatListener.java
  MovementListener.java
  CraftListener.java
  PlayerListener.java
abilities/
  FrostAbility.java
  OceanicAbility.java
  InfernalAbility.java
  VoidAbility.java
  NatureAbility.java

---

๐Ÿ”ง COMMANDS

* /givefragment <type> * /giveore <type> * /givearmor <type> * /reloadplugin

---

โš™๏ธ CONFIG (config.yml)

Allow:

* Edit chances * Enable/disable abilities * Adjust cooldowns * Balance values

---

๐Ÿš€ PERFORMANCE RULES

* Do NOT run constant tick loops unnecessarily * Use event-based logic * Use lightweight schedulers * Avoid lag-heavy particle spam

---

๐ŸŽฎ FINAL RESULT

Players can:

* Mine fragments * Craft ores * Upgrade armor * Gain unique PvP abilities * Experience RPG-style combat

---

๐Ÿ”ฅ EXTRA (OPTIONAL)

* Action bar messages for abilities * Cooldown indicators * Sound effects for abilities

---

GOAL: Produce a fully working, optimized, clean, modular PaperMC plugin with all systems implemented and ready to compile.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code