π
pasted-code-1786912484455.txt
txt
38 lines
βΆ
# π Bliss SMP
**Bliss SMP** is a competitive, survival-based Minecraft SMP built around **Gems**, progression, PvP, and player interaction.
Players start with **10 Gems**, which act as the server's main currency and progression system. Gems can be earned through gameplay, traded between players, won through events, and used for powerful perks, special items, abilities, and other unique rewards.
### π The 10 Gems
Each player begins with **10 Gems**, making every decision matter. Gems should be valuable and difficult to obtain, creating a real economy where players have to decide whether to save, spend, trade, or risk them.
### βοΈ PvP & Risk
PvP should be an important part of the SMP. Players can fight, form alliances, create rivalries, raid, and compete for valuable resources and Gems. High-risk gameplay should have high rewards.
### π Events & Competitions
Regular events should give players opportunities to earn large amounts of Gems, including:
* PvP tournaments
* Boss fights
* Team battles
* Treasure hunts
* Bounties
* Special challenges
* Limited-time events
### π Gem Shop
Gems can be spent on exclusive items, abilities, cosmetics, upgrades, and other rewards. The shop should constantly give players reasons to keep earning Gems without making the server pay-to-win.
### π Player-Driven World
Bliss SMP should focus heavily on **player interaction**. Alliances, factions, rivalries, trading, wars, businesses, and unexpected betrayals should naturally shape the server's story.
**10 Gems. One world. Endless possibilities.**
**Welcome to Bliss SMP.**
Create the Gradle Paper plugin project and resource configuration.
Implement persistent Gems storage with starting balances, transfers, admin management, and PvP rewards/losses.
Add
/gems,/gemshop, and a configurable inventory shop for Gem purchases.
Created the Gradle Paper plugin project for BlissSMP.
Added persistent Gem balances with:
10-Gem starting balance
/gems balancePlayer-to-player transfers
Admin
/gems giveand/gems setPvP kill rewards and death losses
Added
/gemshopand/gems shop.Added a configurable inventory-based Gem Shop with command rewards.
Added plugin configuration, messages, permissions, and persistent
data.ymlstorage.
π Shardbound SMP β Gem PvP System
Create a Minecraft SMP plugin centered around Shards, unique powers, Energy, and PvP.
The Shard is the player's power. Every player receives one unique Shard, and its strength is controlled by an Energy progression system. PvP determines whether players gain or lose Energy.
This should be a PvP progression system, NOT a normal economy or shop plugin.
π Shard System
When a player first joins, they receive ONE random Shard.
A player can only have one active Shard at a time.
Every Shard should have:
* A unique passive ability * 2β3 active abilities * A powerful ultimate ability * Unique particles and sounds * Configurable cooldowns * Unique strengths and weaknesses * A distinct PvP playstyle * Different visual effects depending on Energy
π₯ Shards
π₯ Inferno Shard
Controls fire and heat.
* Passive: Fire resistance and reduced fire damage. * Ability: Launch a fire projectile. * Ability: Ignite an area around the player. * Ultimate: Create a large temporary field of flames.
β‘ Storm Shard
Controls lightning.
* Passive: Increased movement speed during thunderstorms. * Ability: Call lightning onto a target location. * Ability: Release a lightning dash. * Ultimate: Chain lightning between nearby enemies.
π Void Shard
Built around teleportation.
* Passive: Reduced fall damage. * Ability: Short-distance teleport. * Ability: Throw a void projectile. * Ultimate: Create a temporary void zone that damages enemies.
π§ Frost Shard
Controls ice and slowing effects.
* Passive: Immunity to freezing. * Ability: Freeze a targeted enemy briefly. * Ability: Create an icy path. * Ultimate: Create a large frost field that slows nearby players.
π©Έ Blood Shard
Becomes stronger through combat.
* Passive: Small healing from successful attacks. * Ability: Mark an enemy. * Ability: Gain temporary combat bonuses against marked targets. * Ultimate: Enter Blood Frenzy after dealing enough damage.
πͺοΈ Gale Shard
Controls wind and movement.
* Passive: Increased jump height and reduced fall damage. * Ability: Wind dash. * Ability: Knock enemies backward. * Ultimate: Create a massive wind burst.
πͺ¨ Titan Shard
Designed for defensive PvP.
* Passive: Increased knockback resistance. * Ability: Temporarily gain resistance. * Ability: Ground Slam. * Ultimate: Become extremely resistant to damage for a short duration while moving slower.
π» Phantom Shard
Built around stealth.
* Passive: Reduced visibility at night. * Ability: Temporary invisibility. * Ability: Short teleport. * Ultimate: Become a Phantom, gaining stealth and mobility bonuses.
πΏ Nature Shard
Uses regeneration and terrain.
* Passive: Improved natural regeneration. * Ability: Create vines around an enemy. * Ability: Create a small healing zone. * Ultimate: Create a large nature field that heals allies and disrupts enemies.
π₯ Rupture Shard
Focused on explosive attacks.
* Passive: Reduced explosion damage. * Ability: Launch an explosive projectile. * Ability: Place a delayed rupture. * Ultimate: Create a massive controlled explosion.
π³οΈ Gravity Shard
Manipulates movement.
* Passive: Reduced knockback. * Ability: Pull enemies toward a location. * Ability: Increase gravity around a target. * Ultimate: Create a gravity field that heavily slows enemies.
βοΈ Solar Shard
Uses stored sunlight.
* Passive: Stronger abilities during daytime. * Ability: Fire a solar blast. * Ability: Create a temporary solar shield. * Ultimate: Release a massive burst of solar energy.
π Lunar Shard
Becomes stronger during nighttime.
* Passive: Increased speed and ability strength at night. * Ability: Lunar shield. * Ability: Moonlight projectile. * Ultimate: Enter Lunar Form and gain powerful temporary bonuses.
π Dragon Shard
High-mobility combat.
* Passive: Fire resistance and slow falling. * Ability: Aerial dash. * Ability: Dragon fire attack. * Ultimate: Temporary dragon flight with powerful fire attacks.
π§Ώ Hex Shard
Specializes in debuffs.
* Passive: Reduced negative-effect duration. * Ability: Curse an enemy. * Ability: Apply temporary combat debuffs. * Ultimate: Curse multiple nearby enemies.
π Chaos Shard
Extremely unpredictable.
* Passive: Random small combat bonuses. * Ability: Trigger a random ability. * Ability: Randomly teleport a short distance. * Ultimate: Trigger a random powerful effect.
π‘οΈ Aegis Shard
Pure defense.
* Passive: Increased defensive protection. * Ability: Temporary shield. * Ability: Block the next major attack. * Ultimate: Create a protective field around yourself and nearby allies.
πΊ Beast Shard
Designed for melee combat.
* Passive: Increased melee mobility. * Ability: Leap toward an enemy. * Ability: Powerful melee strike. * Ultimate: Enter Beast Mode with temporary combat bonuses.
π Reaper Shard
Designed for finishing weakened enemies.
* Passive: Increased damage against low-health players. * Ability: Mark a weakened target. * Ability: Gain speed when pursuing a marked player. * Ultimate: Enter Reaper Mode after eliminating a marked target.
β¨ Celestial Shard
A rare and highly versatile Shard.
* Passive: Small bonuses to multiple attributes. * Ability: Celestial projectile. * Ability: Short-range burst of energy. * Ultimate: Create a powerful celestial zone.
π Legendary Shards
Legendary Shards should be extremely rare and have mechanics that normal Shards don't have.
π°οΈ Chrono Shard
Manipulates time.
* Rewind your recent position. * Temporarily slow nearby enemies. * Ultimate: Restore your previous combat state with a very long cooldown.
πͺ Mirror Shard
Copies abilities.
* Create temporary illusions. * Copy certain enemy Shard abilities. * Ultimate: Create multiple decoys during combat.
π§² Magnet Shard
Manipulates objects and movement.
* Pull nearby dropped items. * Pull or push enemies. * Ultimate: Create a powerful magnetic field.
βοΈ Meteor Shard
Extremely powerful area attacks.
* Mark an area. * Call down a meteor after a delay. * Ultimate: Massive meteor impact with an extremely long cooldown.
π Mimic Shard
Copies another player's power.
* Detect the target's Shard. * Temporarily copy one of its abilities. * Copied abilities are weaker than the original.
β‘ Energy System
Every player starts with 5 Energy.
PvP directly controls Energy.
Kill another player β +1 Energy
Die in PvP β -1 Energy
Maximum:
10 Energy β Pristine +5
Progression:
5 β Pristine 6 β Pristine +1 7 β Pristine +2 8 β Pristine +3 9 β Pristine +4 10 β Pristine +5
The Shard should visually change as its Energy increases.
As players lose fights, their Shard progressively weakens.
Eventually, a Shard can reach a Broken state where its powers are disabled until the player recovers.
βοΈ PvP Is The Core
Shardbound SMP should revolve around:
Shard β Energy β PvP β Progression β Risk
Players should have reasons to:
* Hunt powerful players * Protect their Shard * Form alliances * Create rivalries * Fight for Energy * Compete for the top of the leaderboard * Risk losing their progression * Master their Shard's abilities
Every Shard needs strengths, weaknesses, counters, and a unique playstyle so no single Shard dominates every fight.
There should be no generic money system replacing the Shards.
The Shards ARE the progression and power system.
π The Goal
Start with a Shard.
Fight for Energy.
Upgrade your power.
Protect what you've earned.
Become the strongest player on Shardbound SMP.
One player. One Shard. Ten Energy.
Fight for your power. βοΈπ
Replace the Gem-focused foundation with persistent Shards and Energy progression.
Implement the PvP energy lifecycle, shard assignment, broken-state handling, and shard item visuals.
Add the shard ability framework and representative abilities for all listed shard families, with cooldowns and configurable effects.
Add player commands, GUI selection/info, listeners, configuration, and plugin registration.
Replaced the Gem economy with the Shardbound SMP progression system.
Added:
25 Shards, including 5 Legendary Shards
Random first-join Shard assignment
Persistent Shard and Energy storage
5 starting Energy and 10 maximum Energy
Broken state at 0 Energy
PvP Energy gain and loss
Combat tracking for PvP deaths
Added the
/shardcommand:/shard/shard info/shard ability <1|2|3>/shard ultimate/shard set <player> <shard>
Added
/energy:/energy/energy info/energy set <player> <amount>/energy add <player> <amount>
Added a Shard GUI with:
Energy-based visual item count
Shard state display
Three ability buttons
Legendary Shard item visuals
Added passive abilities, active abilities, ultimates, cooldowns, particles, sounds, damage modifiers, movement effects, combat effects, and configurable progression settings.
Removed the previous Gem manager, Gem commands, Gem shop, and Gem configuration.
where do i compile it?
Compile it from the project rootβthe folder containing build.gradle.
Run:
./gradlew build
On Windows:
gradlew.bat build
If there is no Gradle wrapper, use:
gradle build
The compiled plugin JAR will be created in:
build/libs/
Copy that JAR into your serverβs plugins folder.
π
pasted-code-1786913943528.txt
txt
74 lines
βΆ
Fix the Shardbound SMP plugin completely. The current plugin does not let normal players change/select their Shard, and some commands/abilities/INVENTORY GUI functions don't work correctly.
Make these changes:
1. Make the `/shard` INVENTORY GUI fully functional.
* Clicking a Shard should actually select/equip it.
* Add a confirmation screen before changing Shards.
* Show the player's current Shard.
* Show the Shard's passive, abilities, ultimate, cooldowns, and Energy.
* Make every INVENTORY GUI button actually work.
2. Add proper Shard changing.
* `/shard set ` must work for admins.
* `/shard random` should give the player a random Shard.
* Add `/shard list`.
* Add `/shard info`.
* If a player has permission, allow them to select a Shard through the INVENTORY GUI.
* Do NOT silently fail when a Shard name is invalid. Give a clear error message.
3. Fix permissions.
* Make sure OP/admins can use all administrative commands.
* Add clear permissions to plugin.yml.
* Do not require an impossible or incorrectly named permission.
* Normal players should still be able to use `/shard`, `/shard info`, their abilities, and the Shard INVENTORY GUI.
4. Fix all Shard abilities.
* Make ability 1, ability 2, ability 3, and ultimate actually activate.
* Make sure cooldowns work.
* Make sure particles and sounds work.
* Make sure abilities cannot activate while the Shard is Broken.
* Make sure every Shard family has functional abilities, not placeholder buttons.
5. Fix Energy.
* Players start with 5 Energy.
* Maximum is 10.
* PvP kill gives +1 Energy.
* PvP death gives -1 Energy.
* Energy must save after restart/relog.
* Broken state occurs at 0 Energy.
* Make sure Energy changes immediately update the player's Shard state and INVENTORY GUI.
6. Fix Shard assignment.
* On first join, automatically assign exactly ONE random Shard.
* Save it permanently.
* Do not randomly replace the player's Shard every time they join.
* Admins can manually change a player's Shard.
* When a Shard is changed, update all abilities, passives, visuals, and INVENTORY GUI immediately.
7. Fix Shard item visuals.
* The Shard item should display the player's current Shard.
* Show Energy in the item lore.
* Show the current Shard state.
* Give each Shard its own material/name/color/visual identity where possible.
8. Check the ENTIRE project for compile errors, broken listeners, incorrect command registration, missing permissions, null values, and INVENTORY GUI click problems.
9. Make sure plugin.yml correctly registers:
* shard
* energy
* all permissions
* plugin main class
10. After making the changes, RUN A FULL GRADLE BUILD and fix every compilation error before finishing.
Do not just describe the fixes. Actually edit the source files and implement them.
The attached request asks for source edits and a Gradle build, but this chat mode is limited to answering questions. I can explain how the Shard GUI, permissions, commands, or build process should work, but I canβt modify the project or run the build here.
π
pasted-code-1786913965663.txt
txt
74 lines
βΆ
Fix the Shardbound SMP plugin completely. The current plugin does not let normal players change/select their Shard, and some commands/abilities/INVENTORY GUI functions don't work correctly.
Make these changes:
1. Make the `/shard` INVENTORY GUI fully functional.
* Clicking a Shard should actually select/equip it.
* Add a confirmation screen before changing Shards.
* Show the player's current Shard.
* Show the Shard's passive, abilities, ultimate, cooldowns, and Energy.
* Make every INVENTORY GUI button actually work.
2. Add proper Shard changing.
* `/shard set ` must work for admins.
* `/shard random` should give the player a random Shard.
* Add `/shard list`.
* Add `/shard info`.
* If a player has permission, allow them to select a Shard through the INVENTORY GUI.
* Do NOT silently fail when a Shard name is invalid. Give a clear error message.
3. Fix permissions.
* Make sure OP/admins can use all administrative commands.
* Add clear permissions to plugin.yml.
* Do not require an impossible or incorrectly named permission.
* Normal players should still be able to use `/shard`, `/shard info`, their abilities, and the Shard INVENTORY GUI.
4. Fix all Shard abilities.
* Make ability 1, ability 2, ability 3, and ultimate actually activate.
* Make sure cooldowns work.
* Make sure particles and sounds work.
* Make sure abilities cannot activate while the Shard is Broken.
* Make sure every Shard family has functional abilities, not placeholder buttons.
5. Fix Energy.
* Players start with 5 Energy.
* Maximum is 10.
* PvP kill gives +1 Energy.
* PvP death gives -1 Energy.
* Energy must save after restart/relog.
* Broken state occurs at 0 Energy.
* Make sure Energy changes immediately update the player's Shard state and INVENTORY GUI.
6. Fix Shard assignment.
* On first join, automatically assign exactly ONE random Shard.
* Save it permanently.
* Do not randomly replace the player's Shard every time they join.
* Admins can manually change a player's Shard.
* When a Shard is changed, update all abilities, passives, visuals, and INVENTORY GUI immediately.
7. Fix Shard item visuals.
* The Shard item should display the player's current Shard.
* Show Energy in the item lore.
* Show the current Shard state.
* Give each Shard its own material/name/color/visual identity where possible.
8. Check the ENTIRE project for compile errors, broken listeners, incorrect command registration, missing permissions, null values, and INVENTORY GUI click problems.
9. Make sure plugin.yml correctly registers:
* shard
* energy
* all permissions
* plugin main class
10. After making the changes, RUN A FULL GRADLE BUILD and fix every compilation error before finishing.
Do not just describe the fixes. Actually edit the source files and implement them.
Inventory GUI: trace the existing
/shardmenus, click handling, selection flow, and Shard data model; then make selection/confirmation/status buttons functional.Commands and permissions: fix
/shardsubcommands, admin checks, player-facing access, andplugin.yml.Abilities and energy: repair activation/cooldowns/effects, broken-state rules, PvP energy changes, and persistence.
Assignment and visuals: make first-join assignment permanent and refresh items, passives, GUI, and active state after changes.
Build verification: run the projectβs Gradle build and fix compilation errors.
GUI task landed: added main/status, selection, confirmation, ability, ultimate, back, and close interactions, plus permission-gated Shard selection.
Iβm now fixing the command surface and permission declarations so admin commands work for OP/console, invalid Shards return a specific error, and
random/listare available.
Command/permission task landed: added
list,random, explicit invalid-Shard errors, console-safe admin handling, default player selection permission, and plugin registrations.Energy/ability task next: fix persistence for offline/admin changes, refresh open GUIs immediately after state changes, and tighten ability behavior without changing the existing Shard designs.
The core state updates are now wired through the manager, so changing a Shard or Energy value saves immediately and refreshes an open menu. Iβm adding the remaining inventory-event guard and then checking the assignment/visual state flow.
Energy/ability review: the existing ability dispatcher already has concrete implementations for all 25 Shards, but Iβm correcting the remaining state edge cases so missing/corrupt player records still receive exactly one assignment and all energy changes remain bounded and persisted.4. Verified fixes to apply: add the missing ability-3 cooldown setting, make first-join detection depend on a saved Shard (not an energy-only record), and clear combat markers after PvP death so stale combat cannot trigger later rewards. Iβm leaving ability energy costs unchanged because the specification only defines Energy changes from PvP kills/deaths, not ability use.5. Ability pass: all slots were already wired, but several Shards reused one effect for every slot. Iβm making those slot behaviors distinct and adding a shared particle cue so every successful ability/ultimate visibly and audibly activates.The implementation is complete at source level. One command-surface edge case remains: console/admin execution should not fall into a player-only path for
/shard list, and the help text should expose the new subcommands.Implemented the Shardbound SMP fixes across the source:
Added functional Shard GUI selection, confirmation, status, abilities, ultimate, close, back, and information buttons.
Added permission-controlled GUI Shard selection.
Added
/shard listand/shard random.Fixed
/shard set <player> <shard>validation and admin handling.Added clear
plugin.ymlpermissions:shardbound.adminβ OP by defaultshardbound.selectβ enabled for normal players by default
Added invalid-Shard, random-Shard, and Shard-change messages.
Added passive and ultimate information to the GUI.
Added ability-3 cooldown configuration.
Added immediate GUI refresh after Shard or Energy changes.
Added inventory drag protection.
Fixed first-join detection so an existing Energy record cannot prevent Shard assignment.
Cleared PvP combat tracking after processed deaths.
Added distinct behavior for previously duplicated ability slots.
Added activation particles for abilities and ultimates.
Preserved Energy persistence, bounds, broken-state checks, and PvP Energy changes.
I could not run the Gradle build in this environment because the project has no Gradle wrapper and Gradle tooling is unavailable here. On your machine, run from the folder containing build.gradle:
gradle build
The resulting plugin JAR will be in:
build/libs/
package com.blisssmp;
import com.shardbound.command.ShardCommand;
import com.shardbound.listener.ShardListener;
import com.shardbound.shard.ShardAbilityManager;
import com.shardbound.shard.ShardManager;
import com.shardbound.shard.ShardMenu;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
public class BlissSMPPlugin extends JavaPlugin {
private ShardManager shardManager;
private ShardAbilityManager abilityManager;
private ShardMenu shardMenu;
@Override
public void onEnable() {
saveDefaultConfig();
this.shardManager = new ShardManager(this);
this.shardManager.load();
this.abilityManager = new ShardAbilityManager(this, shardManager);
this.shardMenu = new ShardMenu(this, shardManager, abilityManager);
ShardCommand shardCommand = new ShardCommand(this, shardManager, abilityManager, shardMenu);
getCommand("shard").setExecutor(shardCommand);
getCommand("shard").setTabCompleter(shardCommand);
getCommand("energy").setExecutor(shardCommand);
getCommand("energy").setTabCompleter(shardCommand);
Bukkit.getPluginManager().registerEvents(new ShardListener(this, shardManager, abilityManager, shardMenu), this);
abilityManager.startPassiveTask();
getLogger().info("Shardbound SMP enabled.");
}
@Override
public void onDisable() {
if (shardManager != null) {
shardManager.save();
}
}
public ShardManager getShardManager() {
return shardManager;
}
public ShardAbilityManager getAbilityManager() {
return abilityManager;
}
public void refreshShardMenu(java.util.UUID id) {
Player player = Bukkit.getPlayer(id);
if (player != null && shardMenu != null) shardMenu.refresh(player);
}
}