COWBOY SHOOTER

--- ๐Ÿ“Ž Attached 1 file(s):

File: pasted-code-1787909489026.txt

txt
CREATE A COMPLETE MINECRAFT PLUGIN FROM SCRATCH

Plugin name: ArtifactSMP

I am a beginner. Generate the COMPLETE working plugin project.

Do NOT give pseudocode.
Do NOT give incomplete code.
Do NOT leave TODOs.
Do NOT skip files.
Do NOT tell me to finish anything manually.

Generate all required:
- Java source files
- plugin.yml
- config.yml
- Gradle or Maven build files
- resources
- dependencies
- commands
- permissions

==================================================
MINECRAFT VERSION
==================================================

Target:

Minecraft Java Edition 1.21.11 OR the latest stable Minecraft version if 1.21.11 is not the latest.

Use Paper.

Use the correct Java version for the selected Paper version.

DO NOT target Minecraft 1.21.1.

==================================================
AUTHME
==================================================

I already use AuthMe for player registration and login.

DO NOT create:

/register
/login
/registration
/authentication

Do not replace or interfere with AuthMe.

ArtifactSMP should simply work alongside AuthMe.

==================================================
LUCKPERMS PERMISSIONS
==================================================

IMPORTANT:

This plugin will use LuckPerms for permission management.

DO NOT create a custom permission-management system.

Define proper Bukkit/Paper permission nodes in plugin.yml so LuckPerms can control them.

I want to be able to give permissions to specific players/groups using LuckPerms.

Examples:

artifactsmp.artifact.set
artifactsmp.artifact.remove
artifactsmp.artifact.info
artifactsmp.artifact.souls
artifactsmp.artifact.give
artifactsmp.artifact.reload
artifactsmp.soul.give

Also create wildcard permissions:

artifactsmp.artifact.*
artifactsmp.soul.*
artifactsmp.*

IMPORTANT:

If I give a player:

artifactsmp.soul.give

they can ONLY use the Soul Give admin command.

If I give:

artifactsmp.artifact.set

they can ONLY use the Artifact Set command.

If I give:

artifactsmp.artifact.*

they get all Artifact administration commands.

If I give:

artifactsmp.*

they get ALL ArtifactSMP plugin permissions.

Do NOT make every command OP-only.

Permissions must be controllable through LuckPerms.

Normal players must NOT automatically have admin permissions.

Use proper permission checks for every admin command.

If a player does not have the required permission:
- deny the command
- show a permission denied message
- do not execute the command

Document every permission node in plugin.yml.

==================================================
ARTIFACT SYSTEM
==================================================

Artifacts are NOT physical Minecraft items.

Every player owns exactly ONE Artifact.

The Artifact is stored permanently in player data.

Each Artifact has:

1. Permanent passive effect(s)
2. One active ability

Passive effects are ALWAYS active.

The player does NOT need to hold anything.

==================================================
NORMAL ARTIFACTS
==================================================

There are exactly 6 NORMAL rollable Artifacts:

EMBER
FROST
THORN
STORM
SHADOW
RIFT

Do NOT name them:
Artifact 1
Artifact 2
Artifact 3
etc.

These exact names must be used.

==================================================
PREMIUM ARTIFACT
==================================================

There is one Premium Artifact:

EYE OF THE SEEKER

Eye of the Seeker is NOT one of the 6 normal rollable Artifacts.

It must NEVER be selected by:

/rollartifact

/rerollartifact

Only administrators or players with the proper permission can assign it.

==================================================
FIRST ARTIFACT ROLL
==================================================

After the player has authenticated through AuthMe, they can use:

/rollartifact

The player gets exactly ONE free roll.

The roll randomly selects one of:

EMBER
FROST
THORN
STORM
SHADOW
RIFT

The player can only use their free roll once.

Save that information permanently.

The Artifact must survive:

- relog
- restart
- death
- respawn
- disconnect
- crash

Do not give another free roll after it has been used.

Premium and Custom Artifacts must never be selected.

==================================================
ARTIFACT REROLLER
==================================================

Create a physical Artifact Reroller item.

Create a medium-difficulty crafting recipe.

The recipe should not be extremely cheap and should not be extremely expensive.

It should fit a survival SMP.

Show the recipe with:

/recipe

Create:

/rerollartifact

Using /rerollartifact consumes exactly one Artifact Reroller.

It randomly selects one of the 6 NORMAL Artifacts.

It must NEVER select:

EYE OF THE SEEKER
Premium Artifacts
Custom Artifacts

==================================================
SOUL SYSTEM
==================================================

Every player has a Soul count.

Minimum:

-5

Maximum:

+5

Starting:

0

Possible values:

+5
+4
+3
+2
+1
0
-1
-2
-3
-4
-5

Never go above +5.

Never go below -5.

Soul count is permanent and persistent.

==================================================
PHYSICAL SOUL
==================================================

A physical Soul is a REAL Minecraft NETHER STAR.

The item should have a custom name:

SOUL

Give it suitable lore so players know it is the SMP Soul item.

A physical Soul is NOT the same thing as the player's Soul count.

When a player obtains/picks up a valid physical Soul:

Increase their Soul count by exactly 1.

Never allow the player's Soul count to exceed +5.

Prevent duplication.

==================================================
SOUL GIVE COMMAND
==================================================

Create:

/soul give <player> <amount>

Examples:

/soul give Steve 1

/soul give Steve 64

/soul give Steve 100

This command gives physical Soul Nether Stars into the target player's inventory.

It does NOT directly modify the target's Soul count.

This command requires:

artifactsmp.soul.give

Only players with that LuckPerms permission can use it.

==================================================
PVP SOUL LOSS
==================================================

A player loses exactly 1 Soul ONLY when killed by another REAL PLAYER.

Examples:

+5 -> +4
+4 -> +3
+3 -> +2
+2 -> +1
+1 -> 0
0 -> -1
-1 -> -2
-2 -> -3
-3 -> -4
-4 -> -5

Never go below -5.

Only confirmed player kills cause Soul loss.

DO NOT remove Souls from:

fall
lava
fire
drowning
mobs
void
explosions
suffocation
environmental damage
any non-player death

==================================================
SOUL DROP
==================================================

If the victim had +1 through +5 Souls BEFORE being killed by a player:

Remove exactly 1 Soul.

Drop exactly ONE physical Soul Nether Star.

Examples:

Victim = +5

Player kills victim.

Victim becomes +4.

One Soul Nether Star drops.

Victim = +1

Player kills victim.

Victim becomes 0.

One Soul Nether Star drops.

Victim = 0

Player kills victim.

Victim becomes -1.

NO Soul drops.

Victim = -1

Player kills victim.

Victim becomes -2.

NO Soul drops.

Prevent double Soul loss from one death.

==================================================
WITHDRAW
==================================================

Normal players can use:

/withdraw <amount>

This converts positive Soul count into physical Soul Nether Stars.

Example:

+5

/withdraw 1

becomes:

+4

and creates exactly 1 physical Soul.

Example:

+5

/withdraw 3

becomes:

+2

and creates exactly 3 physical Souls.

Players cannot withdraw at:

0
-1
-2
-3
-4
-5

Players cannot withdraw more than their current positive Soul count.

Withdraw can never make Soul count negative.

Normal players are allowed to use this command without an admin permission.

==================================================
HEART SYSTEM
==================================================

Maximum health depends on positive Souls.

+5 = 15 hearts
+4 = 14 hearts
+3 = 13 hearts
+2 = 12 hearts
+1 = 11 hearts
0 = 10 hearts
-1 = 10 hearts
-2 = 10 hearts
-3 = 10 hearts
-4 = 10 hearts
-5 = 10 hearts

Negative Souls do NOT reduce health below 10 hearts.

Use the actual Minecraft max-health attribute.

Do NOT use absorption hearts.

Update health immediately when Soul count changes.

Handle:

Soul gain
Soul loss
withdraw
PvP death
respawn
relog
restart

==================================================
TOTEM SYSTEM
==================================================

Maximum Totems of Undying depend on Soul count.

+5 = 5 Totems
+4 = 4 Totems
+3 = 3 Totems
+2 = 2 Totems
+1 = 1 Totem
0 = 0 Totems
-1 = 0 Totems
-2 = 0 Totems
-3 = 0 Totems
-4 = 0 Totems
-5 = 0 Totems

Prevent bypasses through:

inventory
offhand
shulker boxes
containers
Ender Chest
crafting
pickup
reconnect
death

Handle excess Totems safely.

Do not unnecessarily destroy legitimate items.

==================================================
ABILITY ACTIVATION
==================================================

For EVERY Artifact except SHADOW:

The player must:

1. Have at least 1 Soul.
2. Hold ANY Minecraft sword.
3. Right-click an ACTUAL PLAYER.
4. Be within the Artifact's required range.

Supported swords:

Wooden Sword
Stone Sword
Iron Sword
Golden Sword
Diamond Sword
Netherite Sword

Right-clicking air = nothing.

Right-clicking a block = nothing.

Right-clicking a mob = nothing.

Right-clicking an NPC = nothing.

Right-clicking with bread = nothing.

Right-clicking with an axe = nothing.

Right-clicking with any non-sword = nothing.

The target must be a real player.

==================================================
SOUL COST
==================================================

IMPORTANT:

Activating an Artifact ability NEVER consumes Souls.

Soul count does NOT decrease when using an ability.

If player has +1 and uses ability:

+1 remains +1.

If player has +5 and uses ability:

+5 remains +5.

The only ways Soul count decreases are:

1. PvP death
2. /withdraw

==================================================
COOLDOWNS
==================================================

EMBER = 240 seconds
FROST = 180 seconds
THORN = 210 seconds
STORM = 280 seconds
SHADOW = 560 seconds
RIFT = 280 seconds

Cooldown begins after successful activation.

Cooldown cannot be bypassed by relogging, reconnecting, changing worlds or restarting the server.

==================================================
ACTION BAR
==================================================

Use the Minecraft ACTION BAR above the hotbar.

I will attach an image.

IMPORTANT:

The attached image is ONLY an example/reference for the ACTION BAR DESIGN.

It is NOT an Artifact specification.

DO NOT create Eye of the Seeker because of the image.

DO NOT copy the Artifact from the image.

The Action Bar should be clean and centered.

Display something similar to:

EMBER | SOUL: 3 | READY

During cooldown:

EMBER | SOUL: 3 | 142s

Artifact colors:

EMBER = DEEP YELLOW
FROST = BLUE
THORN = GREEN
STORM = YELLOW
SHADOW = DEEP/DARK GRAY
RIFT = CYAN

EYE OF THE SEEKER should have its own configurable Premium color.

IMPORTANT:

SOUL text = GRAY
Soul number = GRAY
Soul icon/emoji = GRAY
READY = GRAY
Cooldown timer = GRAY

The Artifact name and its Artifact icon/emoji use that Artifact's color.

Make the Action Bar look clean and similar to the attached reference.

==================================================
EMBER
==================================================

NAME:

EMBER

PASSIVE:

Permanent Fire Resistance.

ABILITY:

Right-click an actual player within 10 blocks.

Spawn a massive TNT/explosion centered on the target.

It detonates after 2 seconds.

Main blast deals:

6 hearts of damage.

After the blast, create an affected area approximately:

30 blocks wide
10 blocks deep

with fire across the area.

Cooldown:

240 seconds.

==================================================
FROST
==================================================

NAME:

FROST

PASSIVE:

Permanent Speed II.

ABILITY:

Right-click an actual player.

Trap the target inside a temporary:

5 x 6 house/box.

Duration:

5 seconds.

During the trap:

- target cannot open inventory
- target cannot use Ender Pearls
- target can eat food
- target cannot escape normally

After 5 seconds:

Remove the temporary structure safely.

Do not permanently destroy the world.

Cooldown:

180 seconds.

==================================================
THORN
==================================================

NAME:

THORN

PASSIVE:

Permanent Resistance I.

ABILITY:

Right-click an actual player.

Teleport the target to:

Y = 150

Keep the exact X and Z coordinates.

Example:

150 65 150

becomes:

150 150 150

Then allow the player to fall normally.

Cooldown:

210 seconds.

==================================================
STORM
==================================================

NAME:

STORM

PASSIVE:

Permanent Resistance I
Permanent Fire Resistance

PASSIVE HIT:

Every successful hit has a:

1 in 20 chance

to strike the enemy with lightning.

Lightning damage:

2 hearts.

ACTIVE ABILITY:

Right-click an actual player.

Strike the target with:

20 lightning strikes.

Default intended TOTAL damage:

6.5 hearts total.

Do NOT deal 6.5 hearts x 20.

Make this configurable.

Cooldown:

280 seconds.

==================================================
SHADOW
==================================================

NAME:

SHADOW

PASSIVE:

Permanent Strength II.

Every successful hit has:

1 in 25 chance

to give enemy Blindness for 2 seconds.

Every successful hit has:

1 in 200 chance

to remove the enemy's Strength and Speed/Swiftness effects.

ACTIVE ABILITY:

TRUE SHADOW MODE

Shadow is the ONLY Artifact that does NOT require targeting a player.

Right-click air or anything to activate.

Requires at least 1 Soul.

Shadow Mode lasts:

3.5 seconds.

During Shadow Mode:

- player can fly
- approximately 4x normal movement speed
- movement should feel similar to Spectator flying
- DO NOT switch the player to Spectator Mode
- player stays in their original game mode
- create black smoke particles
- player can chase other players

After 3.5 seconds:

- remove flight
- restore normal movement
- remove temporary effects
- remove particles
- restore normal state

Prevent permanent flight or state bugs.

Cooldown:

560 seconds.

==================================================
RIFT
==================================================

NAME:

RIFT

PASSIVE:

Permanent Speed II.
Permanent Regeneration I.

ACTIVE ABILITY:

THE SWITCH

Right-click an actual player within 15 blocks.

Swap their positions.

Player A goes to Player B's location.

Player B goes to Player A's location.

Preserve orientation where practical.

Cooldown:

280 seconds.

==================================================
EYE OF THE SEEKER
==================================================

EYE OF THE SEEKER is a PREMIUM ARTIFACT.

It is NOT rollable.

It is NOT rerollable.

Only administrators or players with appropriate permissions can assign it.

Example passive:

Permanent Speed I.
Permanent Night Vision.

Example active:

THE EYE

When activated correctly, sword hits can trigger:

1/20 chance:
Lightning attack.

1/50 chance:
Strength III + Speed III for 3.5 seconds.

1/200 chance:
True Vanish + Speed III + Strength III for 3.5 seconds and freeze target for 1.5 seconds.

Keep this Artifact configurable because its exact values may change later.

==================================================
ARTIFACT INFO
==================================================

Create normal-player command:

/artifactinfo <artifact>

Examples:

/artifactinfo EMBER
/artifactinfo FROST
/artifactinfo THORN
/artifactinfo STORM
/artifactinfo SHADOW
/artifactinfo RIFT
/artifactinfo EYE_OF_THE_SEEKER

Show:

Artifact name
Type
Passive
Ability
Ability description
Cooldown
Activation requirement

Make the information compact and clean.

Use a small/simple Minecraft text presentation.

Do NOT make giant titles.

Example:

EMBER
Passive: Fire Resistance
Ability: Inferno Blast
Cooldown: 240s
Range: 10 blocks
Activation: Right-click a player with a sword

Artifact descriptions should be easy to read.

Normal players are allowed to use /artifactinfo.

==================================================
PLAYER ARTIFACT COMMAND
==================================================

Create:

/artifact

Show:

Current Artifact
Soul count
Maximum hearts
Maximum Totems
Ability
Cooldown/status

This is a normal-player command.

==================================================
ADMIN ARTIFACT COMMANDS
==================================================

Create:

/artifact set <player> <artifact>

/artifact remove <player>

/artifact info <player>

/artifact souls <player> <amount>

/artifact give <player> <artifact>

/artifact reload

Permissions:

/artifact set
requires:
artifactsmp.artifact.set

/artifact remove
requires:
artifactsmp.artifact.remove

/artifact info
requires:
artifactsmp.artifact.info

/artifact souls
requires:
artifactsmp.artifact.souls

/artifact give
requires:
artifactsmp.artifact.give

/artifact reload
requires:
artifactsmp.artifact.reload

DO NOT make these automatically available to every OP unless the permission system says so.

LuckPerms must control them.

==================================================
CUSTOM ARTIFACT SUPPORT
==================================================

Make the plugin architecture capable of supporting Premium and Custom Artifacts later.

Custom Artifacts should not be rollable.

Only administrators/authorized LuckPerms users can assign them.

==================================================
RECIPE
==================================================

Create:

/recipe

Normal players can use this.

It should show:

1. Artifact Reroller recipe
2. Soul recipe

Create the recipes yourself.

Difficulty:

MEDIUM.

==================================================
DATA STORAGE
==================================================

Persist:

Player UUID
Artifact
Soul count
Free roll used
Cooldown data
Temporary ability data when necessary

Data must survive:

relog
restart
crash
death

Use SQLite or another reliable persistent database.

==================================================
CONFIG.YML
==================================================

Create configurable options for:

Soul minimum
Soul maximum
Starting Souls
Heart values
Totem limits
Artifact colors
Action Bar format
Cooldowns
Ability chances
Ability durations
Ability ranges
Damage
Recipes
Messages
Soul item
Artifact settings

==================================================
EXPLOIT PREVENTION
==================================================

Prevent:

Soul duplication
Soul drop duplication
Double Soul loss
Environmental Soul loss
Free roll duplication
Reroll exploits
Cooldown bypass
Artifact duplication
Totem limit bypass
Ability activation from air when not allowed
Ability activation from blocks when not allowed
Ability activation with non-swords
Ability activation against mobs
Ability activation against NPCs
Permanent Shadow flight
Permanent temporary effects
Permanent freezes
Data loss

==================================================
RESOURCE PACK
==================================================

NO resource pack is required.

Everything must work using normal Minecraft/Paper functionality.

Physical Souls use Nether Stars.

==================================================
PLUGIN STRUCTURE
==================================================

Use clean modular Java code.

Do NOT put the whole plugin in one huge class.

Suggested structure:

ArtifactSMP
Artifact
ArtifactManager
SoulManager
PlayerDataManager
HealthManager
TotemManager
CooldownManager
AbilityManager
ActionBarManager
RecipeManager
ArtifactListener
SoulListener
DeathListener
AbilityListener
Command classes
Permission handling

Use a better architecture if necessary.

==================================================
PLUGIN.YML PERMISSIONS
==================================================

Define permissions for LuckPerms.

At minimum:

artifactsmp.artifact.set
artifactsmp.artifact.remove
artifactsmp.artifact.info
artifactsmp.artifact.souls
artifactsmp.artifact.give
artifactsmp.artifact.reload
artifactsmp.soul.give

Also support:

artifactsmp.artifact.*
artifactsmp.soul.*
artifactsmp.*

Make sure wildcard permissions work correctly through Bukkit/Paper permission inheritance and LuckPerms.

Document all permissions.

==================================================
FINAL REQUIREMENTS
==================================================

Generate the COMPLETE plugin project from scratch.

Include every required file.

It must compile successfully.

Do NOT target 1.21.1.

Use Paper 1.21.11 or latest stable.

Do NOT create /register or /login.

AuthMe handles authentication.

The six normal Artifacts are EXACTLY:

EMBER
FROST
THORN
STORM
SHADOW
RIFT

Do NOT rename them to Artifact 1/2/3/etc.

EYE OF THE SEEKER is PREMIUM.

The attached image is ONLY an Action Bar design reference.

Do not use it as an Artifact specification.

After generating the project, explain:

1. Project folder structure.
2. Minecraft/Paper version used.
3. Java version required.
4. Exact compilation command.
5. Where the final JAR will be generated.
6. How to install it on Paper.
7. How to configure it.
8. How to add/edit Artifacts.
9. Every command.
10. Every permission node.
11. Example LuckPerms commands showing how an administrator can give a player ONLY:
    - artifactsmp.artifact.set
    - artifactsmp.soul.give
    - artifactsmp.artifact.*
    - artifactsmp.*

Make sure normal players cannot use admin commands unless LuckPerms gives them the required permission.
1 image attached
Kodari AI
KodariAug 28 at 9:38 am 3
ArtifactSMP
A comprehensive Paper plugin introducing a persistent artifact and soul system. Each player owns one permanent artifact with passive effects and an active ability, plus a soul count ranging from -5 to +5 that affects max health and totem limits. Includes six rollable artifacts (Ember, Frost, Thorn, Storm, Shadow, Rift) and a premium Eye of the Seeker, physical soul items, PvP soul loss mechanics, soul withdrawal, artifact rerolling, cooldown tracking, action bar displays, and full LuckPerms permission integration. Features SQLite persistence, crafting recipes, and modular architecture.
  1. Create the Gradle/Paper project and plugin resources.

  2. Add persistent player, soul, cooldown, health, totem, recipe, artifact, and ability systems.

  3. Register listeners and all player/admin commands with LuckPerms-compatible permissions.

  4. Add configurable defaults for artifacts, effects, recipes, messages, and action bar behavior.

ArtifactSMP generated

1. Project structure

Plain Text
ArtifactSMP/
โ”œโ”€โ”€ build.gradle
โ”œโ”€โ”€ settings.gradle
โ””โ”€โ”€ src/
    โ””โ”€โ”€ main/
        โ”œโ”€โ”€ java/com/artifactsmp/
        โ”‚   โ”œโ”€โ”€ ArtifactSMP.java
        โ”‚   โ”œโ”€โ”€ ability/
        โ”‚   โ”‚   โ”œโ”€โ”€ AbilityManager.java
        โ”‚   โ”‚   โ””โ”€โ”€ CooldownManager.java
        โ”‚   โ”œโ”€โ”€ actionbar/
        โ”‚   โ”‚   โ””โ”€โ”€ ActionBarManager.java
        โ”‚   โ”œโ”€โ”€ artifact/
        โ”‚   โ”‚   โ”œโ”€โ”€ Artifact.java
        โ”‚   โ”‚   โ””โ”€โ”€ ArtifactManager.java
        โ”‚   โ”œโ”€โ”€ command/
        โ”‚   โ”‚   โ”œโ”€โ”€ ArtifactCommand.java
        โ”‚   โ”‚   โ”œโ”€โ”€ ArtifactInfoCommand.java
        โ”‚   โ”‚   โ”œโ”€โ”€ CommandUtil.java
        โ”‚   โ”‚   โ”œโ”€โ”€ RecipeCommand.java
        โ”‚   โ”‚   โ”œโ”€โ”€ RerollArtifactCommand.java
        โ”‚   โ”‚   โ”œโ”€โ”€ RollArtifactCommand.java
        โ”‚   โ”‚   โ”œโ”€โ”€ SoulCommand.java
        โ”‚   โ”‚   โ””โ”€โ”€ WithdrawCommand.java
        โ”‚   โ”œโ”€โ”€ data/
        โ”‚   โ”‚   โ”œโ”€โ”€ PlayerData.java
        โ”‚   โ”‚   โ””โ”€โ”€ PlayerDataManager.java
        โ”‚   โ”œโ”€โ”€ health/
        โ”‚   โ”‚   โ””โ”€โ”€ HealthManager.java
        โ”‚   โ”œโ”€โ”€ listener/
        โ”‚   โ”‚   โ”œโ”€โ”€ ArtifactListener.java
        โ”‚   โ”‚   โ”œโ”€โ”€ DeathListener.java
        โ”‚   โ”‚   โ”œโ”€โ”€ PlayerListener.java
        โ”‚   โ”‚   โ”œโ”€โ”€ SoulListener.java
        โ”‚   โ”‚   โ””โ”€โ”€ TotemListener.java
        โ”‚   โ”œโ”€โ”€ recipe/
        โ”‚   โ”‚   โ””โ”€โ”€ RecipeManager.java
        โ”‚   โ”œโ”€โ”€ soul/
        โ”‚   โ”‚   โ””โ”€โ”€ SoulManager.java
        โ”‚   โ”œโ”€โ”€ totem/
        โ”‚   โ”‚   โ””โ”€โ”€ TotemManager.java
        โ”‚   โ””โ”€โ”€ util/
        โ”‚       โ””โ”€โ”€ Items.java
        โ””โ”€โ”€ resources/
            โ”œโ”€โ”€ config.yml
            โ””โ”€โ”€ plugin.yml

Player data is stored in:

Plain Text
plugins/ArtifactSMP/data.yml

2. Minecraft and Paper version

The project targets:

Plain Text
Paper 1.21.11

The build uses the Paper API:

Plain Text
io.papermc.paper:paper-api:1.21.11-R0.1-SNAPSHOT

No AuthMe commands or authentication system are included. AuthMe remains responsible for registration and login.

3. Java version

Java 21 is required.

4. Compilation command

From the project directory:

Shell
gradle clean build

5. Final JAR location

After a successful build:

Plain Text
build/libs/ArtifactSMP-1.0.0.jar

6. Installation

  1. Build the plugin.

  2. Copy the generated JAR into:

Plain Text
plugins/
  1. Start or restart the Paper server.

  2. Configure the plugin in:

Plain Text
plugins/ArtifactSMP/config.yml
  1. Restart the server after configuration changes, or use:

Plain Text
/artifact reload

7. Configuration

The following systems are configurable in config.yml:

  • Soul minimum, maximum, and starting value

  • Heart values per Soul level

  • Totem limits per Soul level

  • Action bar format and colors

  • Artifact colors and icons

  • Ability cooldowns

  • Ability ranges

  • Ability damage

  • Ability durations

  • Ability chances

  • Ember fire-area dimensions

  • Reroller and Soul recipes

  • Soul and reroller item appearance

  • Plugin messages

The normal rollable Artifacts are exactly:

Plain Text
EMBER
FROST
THORN
STORM
SHADOW
RIFT

EYE_OF_THE_SEEKER is premium-only and is not selected by normal rolls or rerolls.

8. Adding or editing Artifacts

Artifact names and built-in behavior are defined in:

Plain Text
src/main/java/com/artifactsmp/artifact/Artifact.java
src/main/java/com/artifactsmp/artifact/ArtifactManager.java
src/main/java/com/artifactsmp/ability/AbilityManager.java

Artifact-specific settings such as cooldowns, colors, icons, ranges, damage, durations, and chances are in:

Plain Text
src/main/resources/config.yml

Premium artifact assignment is supported through:

Plain Text
/artifact set <player> EYE_OF_THE_SEEKER

provided the sender has the required permission.

9. Commands

Player commands

Plain Text
/artifact

Displays the playerโ€™s current Artifact, Souls, health, totem limit, and cooldown.

Plain Text
/artifactinfo <artifact>

Displays information about an Artifact.

Examples:

Plain Text
/artifactinfo EMBER
/artifactinfo FROST
/artifactinfo EYE_OF_THE_SEEKER
Plain Text
/rollartifact

Uses the playerโ€™s single permanent free roll.

Plain Text
/rerollartifact

Consumes one physical Artifact Reroller and selects a new normal Artifact.

Plain Text
/withdraw <amount>

Converts positive Soul count into physical Soul Nether Stars.

Plain Text
/recipe

Shows and unlocks the Artifact Reroller and Soul recipes.

Administrator commands

Plain Text
/artifact set <player> <artifact>
/artifact remove <player>
/artifact info <player>
/artifact souls <player> <amount>
/artifact give <player> <artifact>
/artifact reload
Plain Text
/soul give <player> <amount>

Gives physical Soul Nether Stars. This does not directly change the targetโ€™s Soul count.

10. Permission nodes

Plain Text
artifactsmp.artifact.set
artifactsmp.artifact.remove
artifactsmp.artifact.info
artifactsmp.artifact.souls
artifactsmp.artifact.give
artifactsmp.artifact.reload
artifactsmp.soul.give

Wildcards:

Plain Text
artifactsmp.artifact.*
artifactsmp.soul.*
artifactsmp.*

All administrative permissions default to false. Normal players do not receive them automatically.

11. LuckPerms examples

Give a player only Artifact Set:

Plain Text
/lp user PlayerName permission set artifactsmp.artifact.set true

Give a player only Soul Give:

Plain Text
/lp user PlayerName permission set artifactsmp.soul.give true

Give a player all Artifact administration permissions:

Plain Text
/lp user PlayerName permission set artifactsmp.artifact.* true

Give a player every ArtifactSMP permission:

Plain Text
/lp user PlayerName permission set artifactsmp.* true

Remove a permission:

Plain Text
/lp user PlayerName permission unset artifactsmp.artifact.set

The plugin does not create /register, /login, /auth, or any replacement authentication commands.

COWBOY SHOOTER

FIX THE SOUL CONSUMPTION SYSTEM.

The physical Soul is a Minecraft Nether Star.

When a player RIGHT-CLICKS while holding the valid physical Soul Nether Star in either their main hand or offhand:

  1. Check the player's current Soul count.
  2. If the player has less than +5 Souls:

- consume exactly 1 physical Soul Nether Star - increase the player's Soul count by exactly +1 - update their maximum health - update their maximum Totem limit - immediately update the Action Bar - send a small confirmation message

Example:

Player has 2 Souls.

Player right-clicks a Soul Nether Star.

Soul item is consumed.

Player becomes 3 Souls.

If the player is already at +5 Souls:

DO NOT consume the Soul item.

Send a message such as: "You already have the maximum amount of Souls."

The physical Soul must ONLY be consumed when right-clicked.

It must work with:

  • main hand
  • offhand

Do NOT require a sword.

Do NOT activate an Artifact ability when right-clicking a Soul.

IMPORTANT:

The Soul Nether Star must be distinguishable from a normal Nether Star. Use the custom Soul name and/or persistent item data (PersistentDataContainer) so a normal Nether Star cannot accidentally be consumed as a Soul.

The Soul system must remain separate from Artifact abilities.

Remember:

  • Artifact abilities NEVER consume Souls.
  • Right-clicking a Soul item DOES consume the physical Soul and adds +1 Soul.
  • PvP death removes 1 Soul according to the existing rules.
  • /withdraw removes positive Soul count and creates physical Soul Nether Stars.
  • /soul give gives physical Soul Nether Stars and does NOT directly increase Soul count.
Kodari AI
KodariAug 28 at 10:01 am 2
  1. Separate physical Soul consumption from Artifact interaction, covering both hands and rejecting normal Nether Stars.

  2. Route successful consumption through SoulManager so health, Totem limits, persistence, and feedback stay synchronized.

  3. Remove automatic pickup conversion so physical Souls are consumed only by right-click.

  1. Fixed Soul consumption:

    • Custom Soul items are detected via PersistentDataContainer.

    • Right-clicking consumes exactly one Soul Nether Star.

    • Works in both main hand and offhand.

    • Adds exactly +1 Soul when below the configured maximum.

    • Updates health, Totem limits, persistence, Action Bar, and confirmation message.

    • At maximum Souls, the item remains untouched and the player receives a maximum-Souls message.

  2. Kept Souls separate from Artifacts:

    • Soul right-clicks no longer activate Shadow or target abilities.

    • Sword requirements do not apply to Soul consumption.

    • Normal Nether Stars are unaffected.

  3. Removed automatic pickup conversion:

    • Physical Souls are no longer consumed when picked up.

    • /withdraw and /soul give continue creating physical Soul items.

    • PvP death Soul-loss behavior remains unchanged.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
29 1,587
src/main/java/com/artifactsmp/ArtifactSMP.java
package com.artifactsmp;

import com.artifactsmp.ability.AbilityManager;
import com.artifactsmp.actionbar.ActionBarManager;
import com.artifactsmp.artifact.ArtifactManager;
import com.artifactsmp.command.ArtifactCommand;
import com.artifactsmp.command.ArtifactInfoCommand;
import com.artifactsmp.command.RecipeCommand;
import com.artifactsmp.command.RerollArtifactCommand;
import com.artifactsmp.command.RollArtifactCommand;
import com.artifactsmp.command.SoulCommand;
import com.artifactsmp.command.WithdrawCommand;
import com.artifactsmp.data.PlayerDataManager;
import com.artifactsmp.health.HealthManager;
import com.artifactsmp.listener.ArtifactListener;
import com.artifactsmp.listener.DeathListener;
import com.artifactsmp.listener.PlayerListener;
import com.artifactsmp.listener.TotemListener;
import com.artifactsmp.recipe.RecipeManager;
import com.artifactsmp.soul.SoulManager;
import com.artifactsmp.totem.TotemManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class ArtifactSMP extends JavaPlugin {
    private PlayerDataManager dataManager;
    private ArtifactManager artifactManager;
    private HealthManager healthManager;
    private TotemManager totemManager;
    private SoulManager soulManager;
    private AbilityManager abilityManager;
    private ActionBarManager actionBarManager;
    private RecipeManager recipeManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        dataManager = new PlayerDataManager(this);
        healthManager = new HealthManager(this);
        totemManager = new TotemManager(this, dataManager);
        soulManager = new SoulManager(this, dataManager, healthManager, totemManager);
        artifactManager = new ArtifactManager(this, dataManager);
        abilityManager = new AbilityManager(this, dataManager, artifactManager, soulManager);
        actionBarManager = new ActionBarManager(this, artifactManager);
        recipeManager = new RecipeManager(this);
        recipeManager.register();

        Bukkit.getPluginManager().registerEvents(new PlayerListener(this), this);
        Bukkit.getPluginManager().registerEvents(new ArtifactListener(this), this);
        Bukkit.getPluginManager().registerEvents(new DeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new TotemListener(this), this);

        getCommand("artifact").setExecutor(new ArtifactCommand(this));
        getCommand("artifactinfo").setExecutor(new ArtifactInfoCommand(this));
        getCommand("rollartifact").setExecutor(new RollArtifactCommand(this));
        getCommand("rerollartifact").setExecutor(new RerollArtifactCommand(this));
        getCommand("soul").setExecutor(new SoulCommand(this));
        getCommand("withdraw").setExecutor(new WithdrawCommand(this));
        getCommand("recipe").setExecutor(new RecipeCommand(this));
    }

    @Override
    public void onDisable() {
        if (abilityManager != null) {
            abilityManager.shutdown();
        }
        if (dataManager != null) {
            dataManager.saveAll();
        }
    }

    public PlayerDataManager data() { return dataManager; }
    public ArtifactManager artifacts() { return artifactManager; }
    public HealthManager health() { return healthManager; }
    public TotemManager totems() { return totemManager; }
    public SoulManager souls() { return soulManager; }
    public AbilityManager abilities() { return abilityManager; }
    public ActionBarManager actionBar() { return actionBarManager; }
    public RecipeManager recipes() { return recipeManager; }
}