add lore at line

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

Shadow501pl

Active Member
Dec 19, 2020
62
2
8
24
so i tried adding custom enchants and i need them at a certain line so
Code:
command /customenchant [<text>] [<int>]:
    permission: admin.enchant
    trigger:
        if arg-1 is not "sharpness" or "efficiency":
            message "&6&lSkyblock items&7: You need to specify the enchant you want!"
        if arg-1 is "sharpness":
            if arg-2 is not set:
                message "&aSet arg-2"
            if arg-2 is more than 0:
                if arg 2 is more than 5:
                    message "&cToo high value"
                    stop
                if player's held item is not air:
                    loop uncolored lore of player's held item:
                        add 1 to {_count}
                        if loop-value contains "sharpness":
                            message "&cYou already have this enchantment!"
                            stop
                    set {_math} to {_count} - 3
                    # set the 1st line of the lore of the player's tool to "whatever"
                    add "sharpness %arg-2%" at line {_math}th to the lore of player's tool
this is what i have now
it says that its not a text and if i swap order it says unknown effect
 
Do it like this:
Code:
set line {_math} of player's held item's lore to "whatever"
 
Status
Not open for further replies.