Problems with the skript

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

    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.

Put

New Member
Aug 7, 2021
7
0
1
I'm not sure why this doesn't work

Code:

Code:
command /upgrade:
    cooldown: 1 second
    cooldown message: &cSlow Down!
    trigger:
        if player is holding stone pickaxe:
            open chest with 3 rows named "Pickaxe Upgrade" to player
            wait 1 tick
            format gui slot 10 of player with prismarine shard named "&e&lENCHANT: &fEfficiency" with lore "&e- &f&oAbility To Break Blocks Faster" and "&r" and "&e- &fCost &e$200" and "&e- &fMax: &e5" to run:
                set {_i} to level of efficiency of {_p}'s tool
                set {_i} to 0 if {_i} is not set
                if {_i} < 10:
                    if {_p}'s balance >= 200:
                        remove 200 from {_p}'s balance
                        enchant {_p}'s held item with "efficiency %level of efficiency of tool + 1%" parsed as enchantment type
                        set line 3 of lore of player's tool to "&e&l| &fEfficiency: &f%level of efficiency of tool%"
                        send "&a&l[!] &aUpgraded Efficiency Level" to {_p}
                    else:
                        send "&c&l[!] &cInsufficent Funds" to {_p}
                else:
                    send "&c&l[!] &cMax Level Reached" to {_p}
        else:
            send "&fHold The default pickaxe"
 
Last edited:
Status
Not open for further replies.