Level Requirement for Enchantment

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Zhync

Active Member
Feb 11, 2022
138
9
18
Is there a way to check the minimum level for an enchantment? I was thinking of doing something like making grinding off enchantments above a certain threshold add a 'Sharpened' status effect to weapons, but I can't find a Skript effect or anything on the Paper Javadocs about it. I'm using 2.6.4, server version 1.19.4.

I know I can set a list when the file loads and just refer to it from that variable, but I'd really rather *not* do that if that information is already stored in memory somewhere. I could also probably make my own enums with Hippo, but my experiences with enums and that addon weren't the greatest.

Thanks.