π
pasted-code-1791936521267.txt
txt
685 lines
βΆ
Minecraft Cloud SMP Plugin β Full Development Prompt
Create a complete, polished Minecraft Cloud SMP PvP plugin with 16 unique clouds, a 5-level progression system, custom abilities, custom textures, a resource pack, cloud rerolling, cloud shattering, repair kits, customizable controls, and a full admin system.
The plugin should feel like a polished custom Minecraft PvP/SMP system, not a basic plugin.
1. Core Cloud System
Every player receives one randomly selected cloud when they first join the server.
There are exactly 16 cloud types:
Air Cloud
Storm Cloud
Ice Cloud
Inferno Cloud
Darkness Cloud
Earth Cloud
Glitch Cloud
Blood Cloud
Emerald Cloud
Water Cloud
Void Cloud
Nature Cloud
Crystal Cloud
Solar Cloud
Time Cloud
Arcane Cloud
Players can only have ONE cloud at a time.
Players must hold their cloud item to use its abilities.
The cloud can be stored in:
Main inventory
Hotbar
Offhand
If the cloud is in the offhand, the player can still use its abilities.
The cloud must be a unique protected item that cannot be duplicated.
Players should not lose their cloud when they die. Instead, death affects the cloud's level.
2. Five Cloud Levels
Every cloud has exactly 5 levels.
There are no levels above Level 5.
Progression:
Level 5 β Level 4 β Level 3 β Level 2 β Level 1 β SHATTERED
Each cloud level gives the player +1 true heart to their maximum health.
Health:
Level 1 = +1 true heart
Level 2 = +2 true hearts
Level 3 = +3 true hearts
Level 4 = +4 true hearts
Level 5 = +5 true hearts
These must be actual additional maximum-health hearts, not temporary absorption hearts.
When the player changes level, their maximum health must update immediately.
The cloud level must be displayed in the cloud menu and cloud information UI.
3. Death System
Every player death removes exactly 1 cloud level.
Examples:
Level 5 β Level 4
Level 4 β Level 3
Level 3 β Level 2
Level 2 β Level 1
Level 1 β SHATTERED
Do NOT use the old 10-death system.
Every death removes one level.
When a player loses a level:
Remove 1 true heart from their maximum health.
Update their cloud level immediately.
Play a unique downgrade sound.
Play cloud particles/effects.
Display a message explaining that the cloud lost a level.
Save the new level permanently.
4. Cloud Shattering
If a player dies while their cloud is Level 1, the cloud shatters.
Level 1 + Death = SHATTERED
When shattered:
Remove all cloud bonus hearts.
Disable all cloud abilities.
Mark the cloud as SHATTERED.
Keep the cloud associated with the player.
The cloud cannot be used until repaired.
Play a large shattering animation.
Play a unique shattering sound.
Spawn dramatic particles.
Display a large screen message saying the cloud has shattered.
The player's cloud should visually appear broken/shattered if possible.
5. Repair System
A shattered cloud can ONLY be repaired using a Repair Kit.
There must be no other normal way to repair a shattered cloud.
Do NOT allow:
Killing another player to repair it.
Automatically repairing it.
Rerolling to repair it.
Regeneration to repair it.
Normal cloud progression to repair it.
Admin Command
Admins can give a Repair Kit using:
/give repairkit
The Repair Kit should be a unique custom item.
Repair
When a player uses a Repair Kit on their shattered cloud:
SHATTERED β LEVEL 1
The player immediately receives:
+1 true heart
The Repair Kit is consumed after successful use.
The Repair Kit must have an expensive crafting recipe.
A Repair Kit cannot be used on a cloud that is already Level 1β5.
If used incorrectly, do not consume the item.
6. Cloud Progression
Players can increase their cloud level through the server's progression system.
Cloud progression must be persistent.
The server must save:
Player UUID
Cloud type
Cloud level
Shattered state
Deaths
Cloud progression
Reroll information
Data must survive:
Server restarts
Player logout/login
Deaths
Inventory movement
Resource-pack reloads
7. Cloud Reroll System
Players can obtain a Reroll Fragment by killing a player when that player is at their final cloud stage/level which i mean the level where if they die there cloud gets shattered.
When the victim is at their final stage and is killed:
Their cloud breaks.
The killer receives a Reroll Fragment.
The fragment can be used to start a Cloud Reroll Ritual.
The Reroll Fragment should be a unique protected item.
Prevent duplication exploits.
8. Reroll Ritual
Using a Reroll Fragment starts a special ritual.
When activated:
Create a visible ritual effect.
Display the ritual location's coordinates to everyone.
Show the coordinates through a boss bar.
The boss bar counts down the remaining ritual duration.
Make the ritual visually obvious to nearby players.
The duration must be configurable by admins.
Admin command:
/reroll duration
Example:
/reroll duration 5
sets the ritual duration to 5 minutes.
9. Cloud Reroll Animation
Whenever a player:
First joins the server
Uses a Reroll Fragment
show a large cloud-selection animation across their screen.
The animation should:
Display a large title.
Rapidly cycle through all 16 cloud names.
Show the corresponding cloud texture/item.
Continue cycling faster/slower for dramatic effect.
Eventually stop on one cloud.
Launch fireworks/rockets into the sky when the cloud is selected.
Play a special selection sound.
Completely remove the player's previous cloud if they had one.
While the animation is running:
Put the currently selected cloud in the player's offhand.
Every time the selection changes, change the offhand cloud.
Make the offhand item match the cloud currently being displayed.
When the animation ends:
Give the player the selected cloud.
Set its level appropriately.
Save the new cloud permanently.
A reroll must NOT repair a shattered cloud.
If a player's cloud is shattered, they must use a Repair Kit first.
10. Cloud Controls
Add:
/cloudsettings
This opens a GUI where players can customize how their cloud abilities activate.
Allow players to choose controls such as:
Right Click
Left Click
Sneak + Right Click
Sneak + Left Click
Offhand Key
Drop Key
Other compatible Minecraft controls
Players should be able to configure their primary and secondary abilities separately.
Save their settings permanently.
11. Ability UI
Display cloud abilities in the player's action bar.
Show:
Ability name
Ability icon
Ability key/control
Cooldown
Cooldown countdown
Example:
β Storm Strike | RMB | 8.4s
After activation, the cooldown must visibly tick down in seconds.
When ready:
β Storm Strike | READY
Cooldowns must update smoothly.
12. Virus Cloud
Primary β Virus Control
The Virus Cloud can phase into an enemy player's body and temporarily control them.
Duration:
5 seconds
During the ability:
Apply strong virus/corruption visual effects.
Add particles around the victim.
Make the effect feel like the Virus Cloud is taking control.
Secondary β Corruption
Corrupt the enemy during PvP.
Duration:
10 seconds
Every successful hit increases a corruption multiplier.
The more times the player hits the enemy:
The stronger the corruption effects become.
The more distorted the victim's movement/gameplay feels.
Display the multiplier as a boss bar.
Example:
CORRUPTION: x4
After 10 seconds:
End the ability.
Reset the multiplier.
Remove the corruption effects.
13. Storm Cloud
Primary β Storm Mine
Summon a storm cloud above the enemy.
Lightning strikes the enemy every 3 seconds for 9 seconds.
Total:
3 lightning strikes
Damage:
First strike = 2 hearts
Second strike = 1 heart
Third strike = 1 heart
Lightning strikes also apply:
Slowness II
Add thunder sounds, lightning particles, storm clouds, and screen effects.
Secondary β Storm Shield
Activate a 10-second shield.
During the 10 seconds:
Track every time the enemy hits the Storm Cloud user.
Every hit plays a distinctive ding sound.
Record the total damage dealt.
When the ability ends:
Strike the attacker with thunder over time.
Deal the same total damage that the attacker dealt during the shield duration.
14. Ice Cloud
Primary β Frozen Prison
Trap the enemy in powdered snow.
Apply:
Frozen effect
Mining Fatigue II
Duration:
5 seconds
Add ice particles and freezing sounds.
Secondary β Absolute Freeze
Completely freeze the enemy.
For 5 seconds:
They cannot move.
They cannot look around.
Prevent normal movement inputs from affecting them.
After 5 seconds, release them.
15. Inferno Cloud
Primary β Inferno Fireball
Launch a powerful fireball.
Direct hit:
3 true hearts
If the fireball misses but explodes nearby, the explosion deals the damage instead.
Explosion strength should be approximately TNT-level.
The affected area can become Nether-themed blocks:
Netherrack
Nether Bricks
Magma Blocks
Lava
Add large fire, smoke, explosion, and Nether particle effects.
Secondary β Inferno Self-Destruct
The user explodes without dying.
Effects:
Knock enemies back 5β6 blocks.
Launch enemies into the air.
Remove Fire Resistance.
Set enemies on fire.
Deal 3.5 true hearts of damage.
The user survives the explosion.
16. Darkness Cloud
Primary β Darkness Domain
Create a darkness domain around the target.
Effects:
Darkness for 15 seconds.
Pull the enemy toward the center.
Apply Poison I.
Trap the player inside the domain.
The actual domain lasts 5 seconds.
Use:
Dark particles
Black/purple effects
Screen effects
Dark sounds
Secondary β Shadow Form
Give the user true invisibility meaning invis armor, invis player, invis items for the user.
While active:
Attacks apply Wither I for 4 seconds.
User receives Weakness I for 12 seconds.
On activation:
Make the player true invis with speed 3.
17. Earth Cloud
Primary β Rock Throw
Launch blocks toward the enemy.
Three blocks as entities should spawn and the user can launch them at the enemy each one doing 1 true heart of damage or players can pick up blocks from around them.
1 true hearts damage
The player can also pick up one larger block and manually throw it.
Add rock particles, debris, sounds, and screen shake.
Secondary β Earth Spikes
Earth Spikes: Stalactimites appear on the ground dealing 4 true hearts total.(stalactimites disappear after 3 seconds and the attack has to be aimed by the user)
4 true hearts
18. Air Cloud
Primary β Wind Control
Use wind to launch enemies upward.
Allow the user to:
Lift the enemy.
Push the enemy.
Temporarily pick them up.
Throw them in a chosen direction.
Add strong wind particles and sound effects.
Secondary β Aero Shots
3 βAero shotsβ (create a vfx for it) can be thrown by the user that do 1.5 true hearts each to the enemy and give them levitation 1 for 3 seconds.
19. Blood Cloud
Primary β Lifesteal
Steal:
3 full hearts
The enemy loses:
3 true hearts
The user gains the stolen health.
Add blood particles and sounds.
Secondary β Blood Rage
Grant:
Speed III
Strength III
Haste I
Duration:
10 seconds
When activated, the player loses:
3.5 true hearts
The health cost only happens when activating the ability and does not repeatedly damage the player throughout the duration.
20. Emerald Cloud
Primary β Emerald Breathing
Reveal nearby players.
Enemies:
Glow bright green.
Can be seen through blocks.
Use a green spectral-style effect.
User:
Haste I for 15 seconds
Enemies:
Green Glow for 30 seconds
Secondary β Shield Breaker
Disable the enemy's shield.
Summon:
2 Ravagers
Duration:
7.5 seconds
The Ravagers attack the targeted enemy and disappear afterward make sure they do not target the user.
21. Water Cloud
Primary β Tidal Blast
Launch a giant wave toward enemies. Do 2.5 true hearts
Effects:
Knock enemies backward.
Launch nearby enemies slightly upward.
Deal damage based on distance from the center.
Create water particles.
Create splash sounds.
Secondary β Whirlpool
Create a temporary whirlpool. Do 0.5 true hearts per second
Effects:
Pull nearby enemies toward the center.
Slow enemies.
Damage enemies inside.
Launch enemies outward when the whirlpool ends.
22. Void Cloud
Primary β Void Rift
Open a Void Rift underneath the enemy.
Effects:
Pull enemy toward the rift.
Apply Darkness.
Apply Slowness.
Deal true damage when the rift collapses.
Add black/purple Void particles.
Secondary β Void Step
Teleport the player a short distance through the Void.
Effects:
Leave a purple/black trail.
Briefly become untargetable during the teleport.
Knock enemies near the landing location backward.
23. Nature Cloud
Primary β Nature's Wrath
Summon vines and roots from the ground.
Effects:
Root enemies.
Deal damage over time.
Spawn leaves.
Spawn vines.
Spawn flowers.
Create green particles.
Secondary β Regrowth
Create a healing area around the user.
Effects:
Slowly restore health.
Remove minor negative effects.
Spawn green healing particles.
24. Crystal Cloud
Primary β Crystal Barrage
Launch crystal shards toward enemies.
Effects:
Deal damage on impact.
Allow some shards to bounce from surfaces.
Create crystal impact sounds.
Create crystal particles.
Secondary β Crystal Shield
Create a crystal shield around the player.
Effects:
Reduce incoming damage.
Reflect a portion of incoming damage.
Create a large crystal visual.
Shatter the shield visually when it expires.
25. Solar Cloud
Primary β Solar Beam
Charge and fire a powerful beam of sunlight.
Effects:
Deal heavy true damage.
Ignite enemies.
Create a large bright beam.
Leave a temporary burning area.
Secondary β Solar Flare
Create a solar explosion around the player.
Effects:
Knock enemies backward.
Temporarily blind nearby enemies.
Deal moderate true damage.
Create a huge sunlight particle effect.
26. Time Cloud
Primary β Time Stop
Temporarily slow or freeze nearby enemies.
Effects:
Slow enemy movement.
Slow projectiles.
Create clock/time distortion particles.
Add a unique time-stop sound.
Secondary β Rewind
Return the player to a previous state from several seconds earlier.
Restore:
Previous location.
A portion of previous health.
Add a strong rewind animation and sound.
27. Arcane Cloud
Primary β Arcane Missile
Fire multiple magical projectiles.
Effects:
Projectiles track nearby enemies.
Deal moderate damage.
Use colorful magical particles.
Add unique arcane sounds.
Secondary β Arcane Rift
Create a magical rift.
Effects:
Damage enemies inside.
Slightly pull enemies toward the center.
Apply a random minor negative effect.
Disappear after a short duration.
28. Cloud Resource Pack
Create a complete editable resource-pack folder.
The resource pack must contain assets for all 16 clouds.
Organize the folder clearly.
Example:
CloudSMP-ResourcePack/
Inside:
assets/
clouds/
textures/
models/
particles/
sounds/
Every cloud should have its own clearly named texture.
Example:
virus_cloud.png
storm_cloud.png
ice_cloud.png
inferno_cloud.png
etc.
I must be able to replace the texture files with my own textures without changing the plugin code.
Do not randomly generate cloud appearances.
Each cloud must be locked to its assigned texture.
Include all cloud assets in the resource pack from the beginning.
The final project should make it easy to upload/use the resource pack with a Minehut server, so players can download the resource pack and see the custom cloud appearances.
29. Cloud Appearance
Each cloud needs a unique visual identity.
The cloud item/model should visually match its cloud type.
Examples:
Virus = corrupted green/purple
Storm = dark storm cloud
Ice = frozen/icy
Inferno = fiery
Darkness = black/dark purple
Earth = rock/stone
Air = white/light wind
Blood = red
Emerald = green crystal
Water = blue
Void = black/purple
Nature = green/leaves
Crystal = crystal
Solar = bright gold
Time = clock/time-themed
Arcane = magical purple/blue
These are only visual directions. The textures must remain editable.
30. Anti-Duplication Protection
Clouds must not be duplicatable.
Prevent duplication through:
Death
Dropping
Chests
Hoppers
Villagers
Inventory glitches
Commands
Rerolling
Server restarts
Disconnecting during animations
Plugin reloads
The cloud must be tied to the player's UUID.
Only the correct owner can use their cloud.
31. Admin System
Create:
/cloudadmin
Open a full admin GUI.
Include:
Give Cloud
Remove Cloud
Set Cloud
Set Cloud Level
Reset Cloud
Shatter Cloud
Repair Cloud
Give Repair Kit
Give Reroll Fragment
Change Cooldowns
Change Reroll Duration
View Player Cloud
View Player Level
Manage Cloud Settings
Reload Cloud Configuration
Only OP/admin players can access this.
32. Admin Commands
Repair Kit
/give repairkit
Reroll Duration
/reroll duration
Player Cloud Management
Include commands or GUI options for:
/cloudadmin
Allow admins to:
Set a player's cloud.
Set a player's level from 1β5.
Shatter a cloud.
Repair a cloud.
Reset a cloud.
Give a specific cloud.
Give Reroll Fragments.
Give Repair Kits.
33. Configuration
Make important systems configurable through configuration files.
Allow configuration of:
Cloud cooldowns
Cloud damage
Ability duration
Cloud level requirements
Reroll duration
Repair Kit recipe
Reroll Fragment behavior
Ability controls
Cloud textures
Cloud sounds
Cloud particles
Health bonuses
Admin permissions
Do not hard-code values that should reasonably be editable.
34. Polish
The entire plugin should feel highly polished.
Include:
Custom particles
Custom sounds
Ability animations
Screen effects where Minecraft allows them
Action-bar cooldowns
Boss bars
Clean GUIs
Ability icons
Cloud-specific sounds
Cloud-specific particles
Hit effects
Activation effects
Death downgrade effects
Shattering animations
Reroll animations
Fireworks when a cloud is selected
Smooth cooldown countdowns
Strong visual feedback
Every cloud should feel completely different from the others.
35. Balance
Cloud abilities should be powerful and fun but still balanced for PvP.
Avoid abilities that:
Permanently stun players.
Permanently control players.
Cause infinite knockback.
Create infinite damage loops.
Have infinite duration.
Can be infinitely spammed.
Allow players to bypass the cloud progression system.
Every ability must have a reasonable cooldown.
Make cooldowns configurable by admins.
36. Final Requirements
The final plugin must include:
Exactly 16 clouds
Exactly 5 cloud levels
+1 true heart per cloud level
Every death removes 1 cloud level
Level 1 + death = Shattered
Shattered clouds can ONLY be repaired using a Repair Kit
Repair Kit restores Shattered β Level 1
Reroll system
Reroll Ritual
Configurable Reroll Ritual duration
Cloud selection animation
Offhand cloud animation during rerolls
Fireworks when a cloud is selected
/cloudsettings
/cloudadmin
/give repairkit
/reroll duration
Custom cloud textures
Editable resource-pack files
All 16 cloud assets included
Action-bar ability display
Cooldown countdowns in seconds
Custom sounds
Custom particles
Cloud-specific animations
Persistent player cloud data
Anti-duplication protection
Minehut-compatible resource-pack structure
Most importantly, do not use the old 10-death system.
The final progression must always be:
LEVEL 5 β LEVEL 4 β LEVEL 3 β LEVEL 2 β LEVEL 1 β SHATTERED
And:
SHATTERED β Repair Kit β LEVEL 1
No other normal method can repair a shattered cloud.
Build the persistent 16-cloud progression, protected items, death/shatter/repair rules, and ritual flow.
Add ability activation, cooldown feedback, player settings, and admin commands.
Add plugin configuration and a resource-pack template; texture images need texture generation enabled.
Created the CloudSMP project foundation with all 16 cloud types, five-level health progression, one-level-per-death shattering, Repair Kits, persistent player data, protected cloud items, reroll fragments and timed rituals, selection animation, /cloudsettings, and a player-management /cloudadmin GUI.
Scope note: The 32 abilities currently have initial effects, not the full bespoke mechanics described for each one. The resource-pack folder is a template and naming guide; texture images werenβt generated. Enable texture generation from the projectβs Settings β Generation to create them.
package com.kodari.cloudsmp;
import com.cryptomorin.xseries.XMaterial;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.inventory.ShapedRecipe;
import org.bukkit.plugin.java.JavaPlugin;
public class CloudSMPPlugin extends JavaPlugin {
private CloudDataManager data;
private CloudItemFactory items;
private CloudRitualManager rituals;
@Override
public void onEnable() {
saveDefaultConfig();
data = new CloudDataManager(this);
items = new CloudItemFactory(this);
rituals = new CloudRitualManager(this, data, items);
CloudSettingsGUI settings = new CloudSettingsGUI(data);
CloudAdminGUI adminGUI = new CloudAdminGUI(this, data, items);
Bukkit.getPluginManager().registerEvents(new CloudListener(this, data, items, rituals), this);
Bukkit.getPluginManager().registerEvents(new CloudAbilityManager(this, data, items), this);
Bukkit.getPluginManager().registerEvents(settings, this);
Bukkit.getPluginManager().registerEvents(adminGUI, this);
Bukkit.getPluginManager().registerEvents(rituals, this);
Bukkit.getPluginManager().registerEvents(new CloudItemListener(items, data, rituals), this);
CloudCommand command = new CloudCommand(this, data, items, settings, rituals, adminGUI);
for (String name : new String[]{"cloud", "cloudsettings", "cloudadmin", "reroll", "give"}) {
if (getCommand(name) != null) getCommand(name).setExecutor(command);
}
registerRepairRecipe();
}
@Override
public void onDisable() {
if (data != null) data.saveAll();
if (rituals != null) rituals.cancelAll();
}
private void registerRepairRecipe() {
if (!getConfig().getBoolean("repair-kit-recipe.enabled", true)) return;
Material diamond = material("DIAMOND");
Material cryingObsidian = material("CRYING_OBSIDIAN");
Material netherStar = material("NETHER_STAR");
if (diamond == null || cryingObsidian == null || netherStar == null) return;
ShapedRecipe recipe = new ShapedRecipe(new NamespacedKey(this, "cloud_repair_kit"), items.repairKit());
recipe.shape("DND", "NEN", "DND");
recipe.setIngredient('D', diamond);
recipe.setIngredient('N', cryingObsidian);
recipe.setIngredient('E', netherStar);
Bukkit.addRecipe(recipe);
}
private Material material(String name) {
return XMaterial.matchXMaterial(name).map(XMaterial::parseMaterial).orElse(null);
}
}