1skg1yt
πŸ“Ž 1 file 5,735 chars
πŸ“„
pasted-code-1773677214960.txt
txt 235 lines
β–Ά
Create a full Minecraft Paper/Spigot plugin for **Minecraft 1.21** called "Ultimate Scores SMP".

The plugin adds powerful items called **Scores**. Each Score gives special abilities when the player **holds the item in their main hand**.

CORE SYSTEM

- Holding a Score in main hand activates its ability automatically.
- Only **one Score** can be active at a time.
- Switching to another Score disables the previous Score’s ability and activates the new one.
- Removing the Score stops its abilities immediately.
- Right-clicking the Score triggers a main ability with a cooldown.

ITEMS USED (no CustomModelData)

- Fire Score β†’ Blaze Powder  
- Water Score β†’ Prismarine Shard  
- Mine Score β†’ Diamond Pickaxe  
- Dragon Score β†’ Dragon Head  
- PvP Score β†’ Diamond Sword  
- Warden Score β†’ Sculk Block  
- Gravity Score β†’ Ender Pearl  
- Shadow Score β†’ Phantom Membrane  
- Thunder Score β†’ Lightning Rod  
- Cosmic Score β†’ Nether Star  
- Eclipse Score β†’ Dragon Egg  
- Pre-Doomsday Score β†’ Netherite Ingot  
- Doomsday Score β†’ Nether Star  

RARITY SYSTEM

Rarity levels: COMMON, UNCOMMON, RARE, EPIC, LEGENDARY, MYTHIC, GODLY, APOCALYPSE  

Rarity affects:

- Ability strength  
- Cooldown duration  
- Item glow  
- Lore color  

Rarity assignment:

Fire – COMMON  
Water – COMMON  
Mine – UNCOMMON  
PvP – RARE  
Shadow – RARE  
Gravity – EPIC  
Thunder – EPIC  
Dragon – LEGENDARY  
Cosmic – MYTHIC  
Warden – MYTHIC  
Eclipse – GODLY  
Pre-Doomsday – GODLY  
Doomsday – APOCALYPSE  

ITEM SYSTEM

Each Score item has:

- Custom name  
- Lore description  
- Rarity tag  
- Glow effect  
- **Non-stackable**  

VISUAL EFFECTS

- Use resource pack for visuals.  
- Add particle and sound effects for abilities.  
- Each Score should have a unique visual design.  
- Example: Fire β†’ flames, Water β†’ bubbles, Gravity β†’ swirling black particles, Doomsday β†’ dark aura.  

ABILITIES

**Fire Score**  
Passive: Fire Resistance  
Right Click: Shoot fireball  

**Water Score**  
Passive: Water Breathing, Fast Swimming  
Right Click: Push enemies with water burst  

**Mine Score**  
Passive: Haste  
Right Click: TNT cannon  

**Dragon Score**  
Passive: Slow Falling  
Right Click: Temporary flight  

**PvP Score**  
Passive: Strength I  
Right Click: Summon zombie minions  

**Warden Score**  
Passive: Regeneration  
Right Click: Sonic boom  

**Gravity Score**  
Passive: Slight pull on nearby mobs  
Right Click: Strong gravity pull  

**Shadow Score**  
Passive: Invisibility pulses  
Right Click: Teleport behind nearest enemy  

**Thunder Score**  
Passive: Speed boost  
Right Click: Lightning strike  

**Cosmic Score**  
Passive: Slow nearby mobs  
Right Click: Freeze mobs 3 seconds  

**Eclipse Score**  
Passive: Combination of several Score powers  
Right Click: Activate multi-power mode 10 seconds  

ULTIMATE SYSTEM

**Pre-Doomsday Score**  
Rarity: GODLY  
Crafting: 9 different Scores  
Power: 80% of Doomsday power  
Passive: Speed II, Strength II, Resistance I, Regeneration I  
Right Click: "Dark Surge" β†’ 20s: Strength III, Speed III, Regeneration III, nearby enemies Slowness, gravity pull  
Cooldown: 180s  

**Doomsday Score**  
Rarity: APOCALYPSE  
Crafting: Pre-Doomsday + Dragon + Cosmic + Nether Star + Beacon + Elytra + Totem + Netherite Block + Wither Skeleton Skull  
Right Click: "Apocalypse Core" β†’ 30s: Strength IV, Resistance III, Regeneration III, Speed III, Flight, constant damage to nearby enemies, lightning strikes, gravity pull  
Cooldown: 300s  

LEVEL & XP SYSTEM

- Each Score has **levels 1–10**.  
- Players gain XP from actions related to the Score:  
  - Fire β†’ damage with fire/fireball  
  - Water β†’ swimming, water attacks  
  - Mine β†’ mining blocks  
  - PvP β†’ hitting/killing players  
  - Dragon β†’ flying + attacking  
  - Warden β†’ damaging mobs  
  - Gravity β†’ pulling mobs  
  - Shadow β†’ teleporting, backstabs  
  - Thunder β†’ lightning attacks  
  - Cosmic β†’ freezing mobs  
- XP thresholds:  
  Level 1 β†’ 0 XP  
  Level 2 β†’ 100 XP  
  Level 3 β†’ 250 XP  
  Level 4 β†’ 500 XP  
  Level 5 β†’ 900 XP  
  Level 6 β†’ 1500 XP  
  Level 7 β†’ 2200 XP  
  Level 8 β†’ 3200 XP  
  Level 9 β†’ 4500 XP  
  Level 10 β†’ 6000 XP  

- When hovering over a Score in inventory:  
  Display in lore:  
  Name, Rarity, Level, Current XP / XP needed, Ability info  

- On level up:  
  - Update lore  
  - Play level-up sound  
  - Send message: "Your [Score] leveled up to Level X!"  
  - Abilities scale with level  

RECIPE INVENTORY GUI

- Command: /score recipes  
- Opens INVENTORY GUI showing all Scores with Name, Rarity, Icon, and Description  
- Clicking a Score shows crafting recipe in crafting-table layout  
- Disable item movement in INVENTORY GUI  
- Add BACK button  

EVENTS

- PlayerInteractEvent  
- PlayerItemHeldEvent  
- InventoryClickEvent  
- PlayerDropItemEvent  
- PlayerQuitEvent  
- PlayerDeathEvent  

ABILITY STOP CONDITIONS

Abilities stop when:

- Player switches items  
- Player drops the Score  
- Player dies  
- Player logs out  

PERFORMANCE

- Use scheduled tasks for passive abilities  
- Must be multiplayer-safe  

CODE STRUCTURE

Main class: UltimateScoresPlugin  

Classes:

- ScoreType.java  
- ScoreRarity.java  
- ScoreAbilityManager.java  
- ScoreItemManager.java  
- ScoreRecipeManager.java  
- RecipeGUI.java  
- AbilityListener.java  
- ScoreSwitchListener.java  

PLUGIN.YML

- Add command: /score  
- Include description and usage  

GOAL

Generate full plugin code including:

- plugin.yml  
- all Java classes  
- abilities  
- rarity system  
- INVENTORY GUI recipe system  
- score switching logic  
- level & XP system with hover-over display  
- ability scaling with level  
- resource pack visuals support  
- Pre-Doomsday & Doomsday system
Kodari AI
KodariMar 16 at 4:11 pm 42,270 (v2)

I’ll create a comprehensive Ultimate Scores SMP plugin with all the features you requested.

UltimateScoresSMP
An advanced RPG system featuring 13 unique Score items with progressive leveling, rarity tiers, and powerful abilities. Each Score grants passive effects when held and special active abilities on right-click. Includes Pre-Doomsday and Doomsday ultimate Scores with apocalyptic powers, XP progression system with 10 levels per Score, and an interactive recipe GUI. Features particle effects, combat abilities, mob control, and scaling power based on Score level and rarity.

Now I’ll create the complete plugin structure with all Score abilities, leveling system, and GUI recipe viewer.

All files created successfully! The Ultimate Scores SMP plugin is complete with:

  • 13 unique Scores with progressive abilities and rarity tiers

  • XP & Leveling system (1-10 levels per Score) with hover-over display

  • Passive & Active abilities that scale with level and rarity

  • Pre-Doomsday & Doomsday ultimate Scores with apocalyptic powers

  • Interactive Recipe GUI showing all crafting recipes

  • Automatic ability switching when changing held items

  • Cooldown system with rarity-based multipliers

  • Particle & sound effects for all abilities

  • Data persistence with auto-save every 5 minutes

The plugin uses XSeries for cross-version compatibility, Lombok for cleaner code, and includes comprehensive ability implementations for all 13 Scores!

1skg1yt

Can you create custom resourcepack

Kodari AI
KodariMar 16 at 4:13 pm 3,305 (v2)

No, I cannot create custom resource packs directly. However, I can help you with the plugin-side code that works with resource packs:

What I CAN do:

  1. Generate the plugin code that:

    • Prompts players to download/apply a resource pack on join

    • Uses player.setResourcePack(url, hash)

    • Handles resource pack acceptance/denial events

    • Creates custom items with CustomModelData values

    • Integrates with plugins like ItemsAdder or Oraxen

  2. Provide the JSON structure you need for:

    • Custom item models (.json files)

    • Custom block states

    • Custom GUI textures

    • Font modifications

  3. Explain how to use plugins like:

    • ItemsAdder - Full custom items/blocks/GUIs with resource pack generation

    • Oraxen - Similar to ItemsAdder

    • Nexo - Modern alternative

What you’ll need to do separately:

  • Create actual texture files (.png images)

  • Edit/create model files (.json)

  • Package them into a .zip resource pack

  • Host the pack online (GitHub, Dropbox, etc.)

Easiest approach:

Use ItemsAdder or Oraxen - these plugins auto-generate resource packs from your item configurations, so you only need to provide textures and config files, not manually build the entire resource pack structure.

Would you like help with any specific aspect of resource pack integration in your plugin?

1skg1yt

Create a list of all Score items for the Minecraft plugin with Custom IDs (no CustomModelData), so the plugin can recognize them. Include the item, name, and a unique Custom ID.

Scores:

Fire Score β†’ Blaze Powder β†’ Custom ID: "fire_score" Water Score β†’ Prismarine Shard β†’ Custom ID: "water_score" Mine Score β†’ Diamond Pickaxe β†’ Custom ID: "mine_score" Dragon Score β†’ Dragon Head β†’ Custom ID: "dragon_score" PvP Score β†’ Diamond Sword β†’ Custom ID: "pvp_score" Warden Score β†’ Sculk Block β†’ Custom ID: "warden_score" Gravity Score β†’ Ender Pearl β†’ Custom ID: "gravity_score" Shadow Score β†’ Phantom Membrane β†’ Custom ID: "shadow_score" Thunder Score β†’ Lightning Rod β†’ Custom ID: "thunder_score" Cosmic Score β†’ Nether Star β†’ Custom ID: "cosmic_score" Eclipse Score β†’ Dragon Egg β†’ Custom ID: "eclipse_score" Pre-Doomsday Score β†’ Netherite Ingot β†’ Custom ID: "pre_doomsday_score" Doomsday Score β†’ Nether Star β†’ Custom ID: "doomsday_score"

Instructions for the AI:

  • When creating items in the plugin, always assign the Custom ID using PersistentDataContainer.
  • Use the Custom ID to detect the Score, track XP, level, rarity, and abilities.
  • Do not use CustomModelData.
  • Ensure each Score is non-stackable and recognized uniquely by the plugin.
Kodari AI
KodariMar 16 at 4:26 pm 23,700 (v2)

I’ll read the existing plugin files to understand the current structure and then create a comprehensive Score item system with Custom IDs using PersistentDataContainer.

I’ll update the plugin to use the custom ID format you specified (e.g., β€œfire_score”, β€œwater_score”) instead of the enum names. This will make the IDs more descriptive and consistent.

Now I’ll update the plugin to use the custom ID format you specified and create a comprehensive reference document.

Now I’ll create a comprehensive reference document for all Score items:


Summary

I’ve successfully updated your UltimateScores plugin to use custom IDs with PersistentDataContainer as you specified:

Changes Made:

  1. Updated ScoreType.java:

    • Added customId field to each Score type

    • Implemented custom IDs exactly as you specified (e.g., fire_score, water_score, pre_doomsday_score, doomsday_score)

    • Added fromCustomId() method for lookup by custom ID

  2. Updated ScoreItemManager.java:

    • Changed NamespacedKey to custom_id for consistency

    • Now stores the custom ID string in PersistentDataContainer

    • Detection methods use the custom ID format

  3. Created SCORE_ITEMS_REFERENCE.md:

    • Complete documentation of all 13 Score items

    • Lists material, custom ID, rarity, abilities, and cooldowns for each

    • Technical implementation examples

    • Storage format and system architecture

All Score items are now non-stackable, tracked via PersistentDataContainer with the exact custom IDs you specified, and no CustomModelData is used. The plugin recognizes each Score uniquely by its custom ID stored in NBT data.

1skg1yt

Add a Score Combining System to the Minecraft 1.21 plugin.

RULES:

  1. Players can combine two Scores of the same type in a crafting table or custom INVENTORY GUI.
  2. Combining Scores grants XP to the resulting Score.
  3. The amount of XP gained is based on rarity:

COMMON β†’ 50 XP UNCOMMON β†’ 100 XP RARE β†’ 200 XP EPIC β†’ 400 XP LEGENDARY β†’ 700 XP MYTHIC β†’ 1200 XP GODLY β†’ 2000 XP APOCALYPSE β†’ 5000 XP

  1. If a Score is already at a higher level, the XP gained from combining is reduced proportionally:
  • Example: Combining a Level 10 Fire Score (max XP) with a Level 5 Fire Score gives only partial XP to the resulting Score.
  • The XP system should prevent overflow beyond max level (Level 10). Any excess XP is lost or can be optionally converted into a small reward.
  1. When hovering over the resulting Score after combining:
  • Display updated XP
  • Display current Level / max Level
  • Show rarity and abilities
  • Include a line: β€œXP gained from combining: +[amount]”
  1. All combined Scores retain their Custom ID and behave normally with abilities, INVENTORY GUI, and loot systems.
  1. The combining system should be available via crafting table and/or a special Combine INVENTORY GUI with a clear interface.
  1. XP gained scales automatically with rarity, encouraging players to combine high rarity items for faster leveling.
πŸ“Ž 1 file 1,799 chars
πŸ“„
pasted-code-1773678599738.txt
txt 41 lines
β–Ά
Create a Minecraft 1.21 plugin system for Scores with **Custom IDs** (no CustomModelData) and random loot generation based on rarity.

Scores with Custom IDs:

Fire Score β†’ Blaze Powder β†’ Custom ID: "fire_score"  
Water Score β†’ Prismarine Shard β†’ Custom ID: "water_score"  
Mine Score β†’ Diamond Pickaxe β†’ Custom ID: "mine_score"  
Dragon Score β†’ Dragon Head β†’ Custom ID: "dragon_score"  
PvP Score β†’ Diamond Sword β†’ Custom ID: "pvp_score"  
Warden Score β†’ Sculk Block β†’ Custom ID: "warden_score"  
Gravity Score β†’ Ender Pearl β†’ Custom ID: "gravity_score"  
Shadow Score β†’ Phantom Membrane β†’ Custom ID: "shadow_score"  
Thunder Score β†’ Lightning Rod β†’ Custom ID: "thunder_score"  
Cosmic Score β†’ Nether Star β†’ Custom ID: "cosmic_score"  
Eclipse Score β†’ Dragon Egg β†’ Custom ID: "eclipse_score"  
Pre-Doomsday Score β†’ Netherite Ingot β†’ Custom ID: "pre_doomsday_score"  
Doomsday Score β†’ Nether Star β†’ Custom ID: "doomsday_score"

LOOT SYSTEM

- Scores can appear in **random chests** (dungeons, mineshafts, temples, etc.)  
- The **chance of finding a Score depends on its rarity**:

COMMON β†’ 40% chance to spawn  
UNCOMMON β†’ 25% chance  
RARE β†’ 15% chance  
EPIC β†’ 10% chance  
LEGENDARY β†’ 6% chance  
MYTHIC β†’ 3% chance  
GODLY β†’ 1% chance  
APOCALYPSE β†’ 0.1% chance  

- When generating loot, pick a Score randomly based on **rarity weight**.  
- Assign the **Custom ID** to each Score when it spawns in the chest so the plugin can track XP, level, and abilities.  
- Ensure spawned Scores are **non-stackable**.  

ADDITIONAL NOTES

- Use **PersistentDataContainer** to store Custom IDs on spawned items.  
- The plugin should also allow **manual giving** of Scores with /score give   command.  
- Scores from loot or commands should function **exactly the same** as crafted Scores.
Kodari AI
KodariMar 16 at 4:32 pm 40,118 (v2)

I’ll add a Score Combining System to your plugin. Let me first read the existing files to understand the structure and then implement the combining mechanics.

Now I’ll implement the Score Combining System with a GUI interface and proper XP calculations.

Now I’ll create the remaining files for the Score Combining System:


Score Combining System implemented successfully!

  • ScoreCombineManager: Handles combining logic with rarity-based XP values and level-based reduction

  • CombineGUI: Interactive inventory GUI for combining Scores with visual feedback

  • CombineCraftListener: Allows combining in crafting tables (optional)

  • Command: /score combine opens the combining GUI

  • XP System: Scales with rarity (50 XP for Common β†’ 5000 XP for Apocalypse) and reduces by 5% per level

  • Max Level Protection: Prevents combining at Level 10, excess XP is lost

  • Same Type Requirement: Only Scores of the same type can be combined

  • Item Return: Items are returned to player if GUI is closed without combining

1skg1yt

i cant craft it

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
SCORE_ITEMS_REFERENCE.md
Code
25 2,693
src/main/java/com/ultimatescores/UltimateScoresPlugin.java
package com.ultimatescores;

import com.ultimatescores.command.ScoreCommand;
import com.ultimatescores.data.PlayerScoreData;
import com.ultimatescores.listener.AbilityListener;
import com.ultimatescores.listener.CombineCraftListener;
import com.ultimatescores.listener.ScoreSwitchListener;
import com.ultimatescores.manager.ScoreAbilityManager;
import com.ultimatescores.manager.ScoreCombineManager;
import com.ultimatescores.manager.ScoreDataManager;
import com.ultimatescores.manager.ScoreItemManager;
import com.ultimatescores.manager.ScoreRecipeManager;
import com.ultimatescores.inventory.gui.GUIListener;
import com.ultimatescores.inventory.gui.GUIManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class UltimateScoresPlugin extends JavaPlugin {
    
    private ScoreItemManager scoreItemManager;
    private ScoreAbilityManager scoreAbilityManager;
    private ScoreRecipeManager scoreRecipeManager;
    private ScoreDataManager scoreDataManager;
    private ScoreCombineManager scoreCombineManager;
    private GUIManager guiManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.scoreItemManager = new ScoreItemManager(this);
        this.scoreAbilityManager = new ScoreAbilityManager(this);
        this.scoreRecipeManager = new ScoreRecipeManager(this);
        this.scoreDataManager = new ScoreDataManager(this);
        this.scoreCombineManager = new ScoreCombineManager(this);
        this.guiManager = new GUIManager();
        
        getCommand("score").setExecutor(new ScoreCommand(this));
        
        Bukkit.getPluginManager().registerEvents(new AbilityListener(this), this);
        Bukkit.getPluginManager().registerEvents(new ScoreSwitchListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CombineCraftListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        
        scoreRecipeManager.registerRecipes();
        
        for (Player player : Bukkit.getOnlinePlayers()) {
            scoreDataManager.loadPlayerData(player.getUniqueId());
        }
        
        Bukkit.getScheduler().runTaskTimer(this, () -> {
            scoreDataManager.saveAllData();
        }, 6000L, 6000L);
        
        getLogger().info("UltimateScoresSMP has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (scoreAbilityManager != null) {
            scoreAbilityManager.shutdown();
        }
        
        if (scoreDataManager != null) {
            scoreDataManager.saveAllData();
        }
        
        getLogger().info("UltimateScoresSMP has been disabled!");
    }
}