[1.8.8 - 1.20.1] Prekoyte's Powerlevels icon

[1.8.8 - 1.20.1] Prekoyte's Powerlevels -----

Get Minecraft-Dungeons style-like power levels for your items and armor




Now you can get power for the permissions you have!
This is extremely easy to set up

View attachment 800421

in this example, the permissions:
- "lolol" gives 1000 power
- group.default gives 500 power
- theultimatebeast gives 500
- theultimatebeast2 gives 0

View attachment 800422

if you set do-auto-generate to true, it will automatically add every permission it finds. This is recommended to be set to true, although it is false by default.
----------, Nov 14, 2023

Now you can get power for the permissions you have!
This is extremely easy to set up

upload_2023-11-14_10-22-26.png

in this example, the permissions:
- "lolol" gives 1000 power
- group.default gives 500 power
- theultimatebeast gives 500
- theultimatebeast2 gives 0

upload_2023-11-14_10-23-7.png

if you set do-auto-generate to true, it will automatically add every permission it finds. This is recommended to be set to true, although it is false by default.
----------, Nov 14, 2023

Fixed a bug where custom enchantments would give rewards, even when they weren't held.

Fixed a bug where it would try to parse a custom enchantment, despite there being none.
----------, Nov 3, 2023

Fixed a bug where custom enchantments would give rewards, even when they weren't held.

Fixed a bug where it would try to parse a custom enchantment, despite there being none.
----------, Nov 3, 2023

This version supports 1.13, 1.14, 1.15, 1.16, 1.17 and 1.18
----------, Oct 28, 2023

You can now specify the amount of power you get from Artifacts!

What are artifacts?

Artifacts are items that:
- You don't have in your hand
- You don't have in your offhand
- You aren't wearing

So basically inventory items!
You can make it so they give small boosts to the player's power.

In item.yml:


Code (YAML):
# Self-explanatory
Item
:
  diamond_sword
: 10
  diamond_axe
: 10

# Items that are custom (Fill in their literal name, but without color codes)
CustomItem
:
  Doimand Swerd
: 51
  The Ultimate Weapon
: 22

# Inventory items that you want to have give small boosts
Artifact
:
  diamond_sword
: 0.1

# Inventory items, but custom. Literal name, once again, without color codes.
CustomArtifact
:
  The Ultimate Weapon
: 39
   
----------, Oct 28, 2023

Now, when you rename items, it will still give you power.
----------, Oct 26, 2023

now armor enchants really work
----------, Oct 1, 2023

In this version, I fixed armor enchantments not counting on worn armor. This error was introduced a few version ago where I completely refactored my code.
----------, Oct 1, 2023

this update does not introduce any inherent feature changes, but in this update, all my code has been refactored to adhere to best practices.
----------, Sep 28, 2023

You can now define a color for your tablist/scoreboard or wherever you want!

%powerlevel_color% will return a color based on the powerlevel of the user:

in config.yml:

Code (YAML):

colors
:
  - "0-9
: &a"
  - "10-24
: &b"
  - "25-49
: &4"
  - "50-99
: &6"
  - "100-199
: &9"
  - "200
: &1"
 
This means that between 0 and 9 power, you get color code &a, etc.

This also means that every powerlevel above 200 gets &1 if you don't specify a range!

enjoy!
----------, Sep 28, 2023

The last updated broke armor power, but now it's fixed. Enjoy!
----------, Sep 28, 2023

Now you can add Custom Items!


Code (YAML):
Item:
  diamond_sword
: 10
  diamond_axe
: 10
  ...
 
CustomItem
:
  Doimand Swerd
: 51
----------, Sep 25, 2023

hp-power:
per-max-hp: 2
per-hp: 1
for-max-hp: 5


this means that:
- For each max hp that a player has, regardless of their current health, they will be given 2 power
- For each hp they currently have, they will be given 1
- If they are max hp, they will be given 5 power
----------, Sep 9, 2023

small bugfix
----------, Sep 7, 2023

console can now execute commands
also added a /power command to show your power.
permission:
powerlevel.show
----------, Sep 7, 2023

Code (YAML):
elite:
  Shadow Assassin
:
    cumulative
: 5
    1
: 2
    2
: 5
    3
: 10
    4
: 15
    5
: 24
  Paladin-Armored
:
    cumulative
: 6
    1
: 3
    2
: 6
    3
: 11
    4
: 16
    5
: 25
In this new update, most custom enchantments (including elite enchantments) work now.

It uses the most basic function, which is lore checking.

upload_2023-9-7_14-4-3.png

Full enchantments.yml structure preview:

Code (YAML):
# WARNING: for 1.8, use the proper names! Not sharpness, but DAMAGE_ALL. https://helpch.at/docs/1.8/index.html?org/bukkit/enchantments/Enchantment.html
# "cumulative" is the amount of power you get for each level. only works when do-cumulative is set to true in config.yml
Enchantments
:
  sharpness
:
    cumulative
: 5
    1
: 0.5
    2
: 2
    3
: 4
    4
: 6
    5
: 8
  protection
:
    cumulative
: 10
    1
: 0.5
    2
: 2
    3
: 4
    4
: 6
    5
: 8

elite
:
  Shadow Assassin
:
    cumulative
: 5
    1
: 2
    2
: 5
    3
: 10
    4
: 15
    5
: 24
  Paladin-Armored
:
    cumulative
: 6
    1
: 3
    2
: 6
    3
: 11
    4
: 16
    5
: 25
  Insomnia
:
    cumulative
: 10
    1
: 5
    2
: 10
    3
: 15
    4
: 20
    5
: 30
----------, Sep 7, 2023

# How much power you get for reach hp, and a boost for if you are max hp
hp-power:
per-hp: 0.5
for-max-hp: 5
----------, Sep 4, 2023

I forgot to remove some debug logs. They are now removed. Thanks!
----------, Sep 2, 2023

Now, there is a "cumulative" feature!

messages.yml:

Enchantments:
DAMAGE_ALL:
cumulative: 9
1: 5
2: 11
3: 17


in config.yml:

do-cumulative: true

if do-cumulative is on, only the "cumulative" will count. right now it's set to 9, meaning that every level gives 9 power

if it's off it will follow the regular rules
----------, Sep 2, 2023

Prior to this update, if you used an older minecraft version (<1.13), you would get a NoSuchMethod error. That's crazy.

This has been fixed

Next project is implementing support for EliteEnchantments
----------, Sep 2, 2023

added update check
----------, Sep 2, 2023

finally it isnt such a hassle anymore, because with this update, you finally get seperate files.

JOIN MY DISCORD: https://discord.gg/RURukbUJVh
----------, Aug 20, 2023

Yes! This update introduces enchantments!


Enchantments:
sharpness:
'1': 0.5
'2': 2
'3': 4
'4': 6
'5': 8
protection:
'1': 0.5
'2': 2
'3': 4
'4': 6
'5': 8
efficiency:
'1': 0.5
'2': 2
'3': 4
'4': 6
'5': 8


add more as needed!
----------, Aug 19, 2023

What's up y'all!

In this new update, you can decide to enable a whitelist with do-whitelist: true.

If it is enabled, you can define items like this:

whitelist:
- iron_sword

Thanks!
----------, Aug 19, 2023

%powerlevel_power% returns power with no decimals
%powerlevel_powerdecimal% returns power with 1 decimal
enjoy!
----------, Aug 19, 2023

Hi there!

In this update, offhand items now also count towards your power level.
However, you can change this in the config.yml with do-offhand: true or false!

Also, decimal values are now supported!
----------, Aug 19, 2023

Now, when you have dynamic-reload set to true, you don't have to reload your config at all for new power levels to show up.

Please note I am talking about the power level of items in the config!

like this: diamond_sword: 10

Also, I added the /power reload command, for if you don't want to use dynamic reloading (because it can be taxing on server performance)
----------, Aug 19, 2023

Resource Information
Author:
----------
Total Downloads: 7,553
First Release: Aug 19, 2023
Last Update: Nov 14, 2023
Category: ---------------
All-Time Rating:
8 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings