Enchantment Upgrading - Checks.

  • 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!

Status
Not open for further replies.
Hello,

Can somebody tell me, help me or at least tell me if it is possible to check the player's held item, if it has the enchantment let's say: Efficiency 1, it would upgrade it to efficency 2. If you have Efficiency 2 it would make it into 3.

My code so far.

Code:
command /upgradeefficiencyprison:
    permission: pickaxe.upgrade
    permission message: &cNo perms.
    trigger:
        if player's held item has the enchantment "efficiency 1": #Here's where I need help.

Thanks <3

- TheCringleYT
 
try this
Code:
if player's tool is a pickaxe of efficiency 1:
 
Hello,

Can somebody tell me, help me or at least tell me if it is possible to check the player's held item, if it has the enchantment let's say: Efficiency 1, it would upgrade it to efficency 2. If you have Efficiency 2 it would make it into 3.

My code so far.

Code:
command /upgradeefficiencyprison:
    permission: pickaxe.upgrade
    permission message: &cNo perms.
    trigger:
        if player's held item has the enchantment "efficiency 1": #Here's where I need help.

Thanks <3

- TheCringleYT
Try:
code_language.skript:
if level of efficiency of player's held item = 1:
 
Status
Not open for further replies.