-
Notifications
You must be signed in to change notification settings - Fork 7
Reward Profiles
Reward profiles define what happens when an item reaches a specific level. Rewards can include enchantments, commands, and attribute modifications.
plugins/LevelTools/reward_profiles.yml
profiles:
profile_id:
levels:
1:
- "enchant2 efficiency 1"
5:
- "enchant2 efficiency 2"
- "command broadcast {player} reached level 5!"
10:
- "enchant2 efficiency 3"
- "attribute generic.attack_speed 0.5"Each reward line follows the format: handler argument1 argument2 ...
Adds an enchantment, overriding the existing level.
- "enchant efficiency 3"If the item has Efficiency 5, it will become Efficiency 3.
Adds an enchantment only if the new level is higher than existing.
- "enchant2 efficiency 3"If the item has Efficiency 5, nothing happens. If it has Efficiency 2, it becomes Efficiency 3.
Recommended for most use cases to prevent accidental downgrades.
Adds to the existing enchantment level.
- "enchant3 efficiency 1"If the item has Efficiency 2, it becomes Efficiency 3.
Runs a command as console.
- "command give {player} diamond 1"
- "command broadcast {player} leveled up their tool!"Placeholders:
-
{player}- Player name -
{level}- New level -
{item}- Item type
Runs a command as the player.
- "player-command spawn"Runs a command as the player with temporary OP permissions.
- "player-opcommand specialplugin enchant"Use with caution. The OP permission is removed immediately after execution.
Modifies an item attribute.
- "attribute generic.attack_speed 0.5"
- "attribute generic.attack_damage 2"See Attribute Reference for valid attributes.
Used by pickaxes, axes, and shovels.
| Level | Rewards |
|---|---|
| 1 | Efficiency I |
| 3 | Efficiency II |
| 5 | Efficiency III |
| 8 | Efficiency IV |
| 10 | Efficiency V |
| 11-15 | Unbreaking I-III |
| 20 | Mending I |
| 24-30 | Fortune I-III |
| 40+ | Efficiency VI+ (beyond vanilla) |
| 100 | Efficiency X, Fortune V |
Used by swords.
| Level | Rewards |
|---|---|
| 1 | Sharpness I |
| 3 | Sharpness II |
| 5 | Sharpness III |
| 8 | Sharpness IV |
| 10 | Sharpness V |
| 11-15 | Unbreaking I-III |
| 20 | Mending I |
| 24-30 | Looting I-III |
| 40+ | Sharpness VI+ |
| 100 | Sharpness X, Looting V |
Used by bows and crossbows.
| Level | Rewards |
|---|---|
| 1 | Power I |
| 10 | Power V |
| 11-15 | Unbreaking I-III |
| 20 | Mending I |
| 24-30 | Punch I-III |
| 50 | Flame I |
| 100 | Power X, Infinity I |
Used by fishing rods.
| Level | Rewards |
|---|---|
| 1 | Lure I |
| 5 | Luck of the Sea I |
| 10 | Lure II |
| 15 | Unbreaking I |
| 25 | Lure III |
| 35 | Luck of the Sea III |
| 50 | Mending I |
Example: Combat tool with attribute bonuses
profiles:
elite_swords:
levels:
1:
- "enchant2 sharpness 1"
10:
- "enchant2 sharpness 5"
- "attribute generic.attack_speed 0.2"
25:
- "enchant2 fire_aspect 2"
- "command broadcast &6{player} &eunlocked &cFire Aspect&e!"
50:
- "enchant2 sharpness 7"
- "attribute generic.attack_damage 2"
- "command give {player} experience_bottle 10"