📄
pasted-code-1787108070832.txt
txt
442 lines
▶
Prism SMP Plugin — Full Specification
1. Overview
Create a Minecraft Paper plugin called Prism SMP.
The plugin is centered around a unique random rank system. When the SMP officially starts, the plugin randomly assigns ranks to the online players. The ranks range from Rank 1 to Rank 30.
The higher the rank, the better the player's perks.
There are no normal rank abilities. Ranks should primarily provide progression perks. The only custom abilities are attached to the exclusive Rank 1 King's Sword.
2. SMP Start Command
Command
/prism smpstart
This command starts the Prism SMP ranking ceremony.
The command should:
Check the number of online players.
Select up to 30 players.
Randomly assign unique ranks to the selected players.
Start the individual rank-rolling animation.
Reveal each player's final rank.
Apply their rank perks.
Give Rank 1 the exclusive King's Crown and King's Sword.
Player Limit
If exactly 30 players are online:
Rank 1 → Player
Rank 2 → Player
Rank 3 → Player
...
Rank 30 → Player
Every rank is unique.
If fewer than 30 players are online, only the available ranks are assigned.
Example:
15 players online
Rank 1 → Rank 15 assigned
Rank 16 → Rank 30 unused
Players outside the selected 30 are Unranked.
3. Individual Rank Rolling Animation
The ranking ceremony should use Minecraft titles displayed individually to each player.
Do NOT use a BossBar for the ranking animation.
Do NOT broadcast the same rank to everyone.
Every player should see their own personal rank roll.
For example, Player A might see:
YOUR RANK
RANK 7
while Player B simultaneously sees:
YOUR RANK
RANK 24
and Player C sees:
YOUR RANK
RANK 2
Rolling Effect
Before the final rank is revealed, the player's title rapidly changes through random ranks:
YOUR RANK
RANK 18
YOUR RANK
RANK 5
YOUR RANK
RANK 27
YOUR RANK
RANK 12
YOUR RANK
RANK 3
Then the animation stops on their actual assigned rank.
The animation should feel like an RNG/gacha-style rank roll.
The actual rank should be determined before the animation begins so that the visual rolling is only an animation and cannot accidentally assign duplicate ranks.
4. Rank System
There are 30 ranks:
Rank 1
Rank 2
Rank 3
Rank 4
Rank 5
Rank 6
Rank 7
Rank 8
Rank 9
Rank 10
Rank 11
Rank 12
Rank 13
Rank 14
Rank 15
Rank 16
Rank 17
Rank 18
Rank 19
Rank 20
Rank 21
Rank 22
Rank 23
Rank 24
Rank 25
Rank 26
Rank 27
Rank 28
Rank 29
Rank 30
Rank 1 is the strongest rank.
Rank 30 is the weakest ranked position.
The closer the player is to Rank 1, the stronger their default perks become.
5. Default Rank Perks
Every ranked player can receive the following four default perks.
XP Boost
The player's XP gain is increased depending on their rank.
Higher rank = larger XP boost.
Example:
Rank 30 → small XP boost
Rank 1 → largest XP boost
The exact percentages should be configurable.
The plugin should modify the amount of experience earned without requiring the player to use a special item or ability.
❤️ Heart Boost
Higher-ranked players receive additional maximum health.
However, there is a strict maximum:
20 hearts maximum.
The rank system must never allow a player's maximum health to exceed 20 hearts.
Example:
Rank 30 → small heart boost
Rank 20 → larger heart boost
Rank 10 → larger heart boost
Rank 1 → largest possible boost
If a player is already at the 20-heart cap, they should not receive additional health beyond the cap.
6. Extra Inventory
Higher-ranked players receive additional inventory storage.
Players can open their extra inventory with:
/extrainv
The extra inventory should be a custom inventory INVENTORY GUI.
Higher ranks receive more storage space.
Example:
Rank 30 → small extra inventory
Rank 20 → more slots
Rank 10 → more slots
Rank 1 → maximum extra inventory
The exact slot amounts should be configurable.
The extra inventory should safely save its contents when the player leaves and restore them when they return.
Players without the required rank should not be able to access inventory space they are not entitled to.
7. Effect Duration
Potion effects should last longer depending on the player's rank.
Higher rank = longer potion duration.
Scaling
Rank 30 receives only a slight increase.
The duration gradually increases as the rank gets higher.
Rank 1 can have potion effects last up to 2× as long.
The duration multiplier should be configurable.
Example:
Rank 30 → slight increase
Rank 20 → moderate increase
Rank 10 → significantly longer
Rank 1 → up to 2× duration
The system should work with normal Minecraft potion effects.
8. Rank Scaling
The four default perks should all scale with rank:
RANK 1
▲
│
BEST PERKS
│
│
RANK 15
│
│
WEAKER PERKS
│
▼
RANK 30
The plugin should make the scaling configurable so the server owner can modify the values without editing the plugin itself.
9. Rank 1 — The King
The player who receives Rank 1 becomes the King of the Prism SMP.
Rank 1 receives all normal rank perks plus two exclusive items:
King's Crown
King's Sword
These are not available to other ranks.
10. King's Crown
The King's Crown is an exclusive Rank 1 item.
The Crown provides permanent:
Speed I
Strength I
Fire Resistance I
These effects should remain active while the player is the current Rank 1.
The effects should not expire normally.
If the player loses Rank 1, the Crown and its benefits should be removed from them.
The Crown should have a unique custom name and appearance.
11. King's Sword
The King's Sword is an exclusive custom weapon available only to Rank 1.
It has two custom abilities.
The sword should have a unique name, lore, appearance, and preferably custom model/resource-pack support.
The abilities are combat-focused but should not be ordinary permanent passive buffs.
12. King's Sword — Ability 1: Combo Breaker
The first ability is a combo-based attack mechanic.
Combo Tracking
The sword tracks hits against individual players.
The combo is target-specific.
Example:
Player A → 2 hits
Player B → 1 hit
The hits against Player A do not transfer to Player B.
Combo
When the King hits the same player:
1st hit → 1 combo
2nd hit → 2 combo
3rd hit → Combo Breaker
On the third consecutive successful hit:
The attack deals 3× the normal sword damage.
A special yellow particle ring appears around the victim.
The particle effect lasts approximately 1 second.
After the effect, the particles disappear completely.
A custom sound effect can optionally play.
Combo Reset
The combo has a 4-second timeout.
If the King does not successfully hit that same target for 4 seconds:
Combo → 0
The combo should also reset if the King misses an attack.
The system should prevent players from building a combo by attacking different players.
13. King's Sword — Ability 2: King's Bind
The second ability is a crowd-control effect based around Slowness.
When the King's Sword successfully hits a player:
The target receives Slowness for 10 seconds.
A gray particle ring appears around the target.
The ring lasts approximately 1 second.
The particles then disappear.
The gray color represents the Slowness effect.
The ability should have a configurable cooldown to prevent the King from constantly reapplying Slowness.
Only the player actually hit by the King's Sword should receive the effect.
14. Ability Visual Identity
The two abilities should have different particle colors:
Combo Breaker
Yellow
Used for the powerful 3-hit combo attack.
King's Bind
Gray
Used for the Slowness effect.
Both abilities should use a similar circular ring particle effect, creating a recognizable King's Sword visual style.
The ring should be temporary and should not remain permanently around the player.
15. Rank 1 Transfer
If the server has a system that changes a player's rank, Rank 1 should always belong to only one player.
When a new player becomes Rank 1:
Previous King
Loses Rank 1.
Loses the King's Crown.
Loses the King's Sword.
Loses their Rank 1-exclusive benefits.
New King
Receives Rank 1.
Receives the King's Crown.
Receives the King's Sword.
Receives all Rank 1 perks.
There should never be two active King's Swords or two active Kings at the same time.
16. Important Design Rules
The plugin should follow these rules:
No normal rank abilities.
Rank perks are progression bonuses only.
Higher rank always means stronger default perks.
Maximum player health from the rank system is 20 hearts.
Extra inventory is accessed with /extrainv.
Rank 1 is the only rank with the King's Crown and King's Sword.
The King's Sword has exactly 2 custom abilities.
Rank rolling uses individual player titles.
Players must not see another player's rank during their personal roll unless the server later adds a separate ranking display.
Ranks are unique.
The rank animation must not create duplicate ranks.
Rank perks and extra inventory must persist through relogs and restarts.
All major values should be configurable.
17. Main Command
/prism smpstart
Starts the Prism SMP ranking ceremony.
Potential additional commands:
/prism rank
/prism ranks
/prism reload
/prism reset
/extrainv
/extrainv should open the player's rank-based extra inventory.
18. Overall Concept
The main goal of Prism SMP is to make the beginning of the server feel like a massive RNG event.
30 players enter the server.
The Prism chooses their fate.
Every player sees their own screen rapidly rolling through ranks.
Then the rolls stop.
One player receives:
RANK 1 — THE KING
Another receives Rank 2.
Another receives Rank 3.
And so on until Rank 30.
The higher the rank, the better the player's XP Boost, Heart Boost, Extra Inventory, and Effect Duration.
But only Rank 1 receives the legendary King's Crown and King's Sword, making the highest rank the most desirable position on the entire SMP.
Create the Gradle/Paper project metadata and plugin configuration.
Implement persistent rank data, configurable perk scaling, and ceremony assignment/animation.
Implement the extra-inventory GUI with persistent storage and rank-based slot limits.
Implement rank effects plus the Rank 1 crown and exactly two King’s Sword abilities.
Add commands, listeners, lifecycle wiring, and reload/reset behavior.
Created the Prism SMP Paper plugin from scratch with:
Configurable random Rank 1–30 ceremony using individual title animations.
Persistent rank assignments and extra-inventory storage.
Rank-scaled XP, health, inventory slots, and potion duration.
Rank 1 King’s Crown and King’s Sword.
Combo Breaker and King’s Bind sword abilities with temporary particle rings.
/prism smpstart,/prism rank,/prism ranks,/prism reload,/prism reset./extrainvrank-based inventory GUI.Join, quit, potion, experience, combat, and persistence handling.
Paper plugin metadata, Gradle setup, and configurable
config.yml.
Wheres the king sword and also when putting an arrow in ur extrainv u cant load a bow or a crossbow and also the king's crown can you not make the effects infinite only by like 1 second and repeateadly giving the effects and when getting rank 1 can the plugin automatically wear the king's crown with unbreaking 255 and protection 4 and curse of bidning plus curse of vanishing
Fix King’s Sword delivery and recovery for the Rank 1 player.
Allow bows and crossbows to consume arrows from the extra inventory.
Replace infinite crown effects with a one-second repeating refresh.
Automatically equip a Rank 1 crown with the requested enchantments.
King’s Sword: Rank 1 now receives it automatically. It is placed in the main hand if empty, otherwise added to the inventory or dropped if completely full.
Extra-inventory arrows: Bows and crossbows now pull one compatible arrow from
/extrainvwhen needed.King’s Crown effects: Speed I, Strength I, and Fire Resistance I are reapplied every second with a 1-second duration instead of being infinite.
Automatic crown: Rank 1 automatically wears the crown. It now has:
Unbreaking 255
Protection IV
Curse of Binding
Curse of Vanishing
also when hitting with the third strike can u make the combo reset and also when hitting with the third strike can you make a yellow gold particle effect like a really cool one and also can you display the rank on a players name example: [Unranked] example1
Update the third-hit combo to reset after activation and add a gold particle burst.
Add each player’s rank prefix to their displayed name.
Third-strike combo: The combo now resets after the third hit, preventing the next attack from continuing the previous combo.
Third-strike particles: Added an expanding gold/yellow particle burst with multiple rings and sparks.
Rank display: Players now show their rank in chat/display names and the tab list:
[Unranked] example1[Rank 1] example1
also when rolling each time can you make a sound and when getting your rank make a sound too
Add configurable ceremony sounds for each rolling display and the final rank result.
Play the roll sound on every randomized rank step and the rank-awarded sound when the final rank is applied.
Added a sound for every rank roll.
Added a separate sound when the final rank is awarded.
Both sounds are configurable in
config.yml:ceremony.roll-soundceremony.rank-sound
the particle in the king sword doesnt work
Fixed the King’s Sword particle effect. It now:
Uses the gold/yellow dust effect when available.
Falls back to visible flame particles if dust particles aren’t supported.
Keeps the third-strike animation and spark effects active.
the particle was pllaying but my video settings particles was off so please do the gold ring circle
Make the third-strike effect a clear expanding horizontal gold ring.
Increase the ring’s smoothness and keep a brighter inner ring for visibility.
Note: Minecraft’s “Particles: Minimal/Off” client setting can still hide server-sent particles; the plugin cannot override that setting.
The King’s Sword third-strike effect is now a clearer gold ring circle:
Expands outward around the target.
Uses two bright gold/yellow rings.
Has smoother, denser particle coverage.
Rotates while expanding for a more dynamic effect.
If the client’s particles are set to Minimal or Off, Minecraft can still hide the effect; the plugin cannot override that client setting.
i dont wnat flame i want dust
Removed the flame fallback from the King’s Sword particle effect. The combo effect now uses only yellow/gold dust particles for both rings and sparks.
also when first hitting an entity it already does the third hit
Fixed the King’s Sword combo counting so one physical hit can’t count as all three strikes.
Duplicate damage events in the same server tick are now ignored.
The third-hit particle and bonus damage only activate after three separate hits.
Cancelled damage events no longer advance the combo.
Combo reset also clears the hit deduplication state.
can you make the third hit sound changeable and add more commands please
Make the King’s Sword third-hit sound configurable.
Review the existing command structure and add useful admin/player command subcommands without breaking current commands.
Configurable third-hit sound: Added
king.third-hit-soundtoconfig.yml. Default:YAMLthird-hit-sound: 'ENTITY_PLAYER_ATTACK_CRIT'Change it to any supported XSound name.
Added commands:
/prism help/prism myrank/prism status/prism extrainv/prism start/prism setrank <player> <1-30>/prism unrank <player>
Existing commands still work, including
/prism smpstart,/prism rank,/prism ranks,/prism reload, and/prism reset.
the first hit isi still doing the third hit and the effect is completly gone
Make the combo state explicit so only strike 3 triggers the bonus and then clears.
Stop
PlayerInteractEventfrom resetting the combo during normal attack animation.Use XSeries’ cross-version
REDSTONEdust particle for the gold ring;DUSTwas not resolving, which is why the effect disappeared.
Fixed both King’s Sword issues:
The first hit now counts only as strike 1.
The third-hit bonus resets immediately after triggering.
Removed the swing listener that was incorrectly resetting combo state during attacks.
Restored the effect using yellow/gold
REDSTONEdust particles only.The third-hit ring and sparks now use visible dust particles without flame.
package com.kodari.prism;
import org.bukkit.Bukkit;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;
public final class PrismPlugin extends JavaPlugin {
private ConfigManager configManager;
private RankManager rankManager;
private CeremonyManager ceremonyManager;
private ExtraInventoryManager extraInventoryManager;
private NamespacedKey itemKey;
@Override
public void onEnable() {
saveDefaultConfig();
itemKey = new NamespacedKey(this, "king_item");
configManager = new ConfigManager(this);
rankManager = new RankManager(this, configManager);
ceremonyManager = new CeremonyManager(this, configManager, rankManager);
extraInventoryManager = new ExtraInventoryManager(this, configManager, rankManager);
Bukkit.getPluginManager().registerEvents(new RankListener(this, rankManager), this);
Bukkit.getPluginManager().registerEvents(extraInventoryManager, this);
Bukkit.getPluginManager().registerEvents(new KingSwordListener(this, rankManager, configManager), this);
PrismCommand prismCommand = new PrismCommand(this);
getCommand("prism").setExecutor(prismCommand);
getCommand("prism").setTabCompleter(prismCommand);
getCommand("extrainv").setExecutor(new ExtraInventoryCommand(this));
}
@Override
public void onDisable() {
if (ceremonyManager != null) {
ceremonyManager.cancel();
}
}
public ConfigManager getConfigManager() {
return configManager;
}
public RankManager getRankManager() {
return rankManager;
}
public CeremonyManager getCeremonyManager() {
return ceremonyManager;
}
public ExtraInventoryManager getExtraInventoryManager() {
return extraInventoryManager;
}
public NamespacedKey getItemKey() {
return itemKey;
}
}