lore skript help?

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

LastMC

New Member
Jul 28, 2021
8
1
3
so i have this skript here



command /enchant [<text>] [<integer>]:
permission: op
trigger:
if arg-1 is "sharpness":
if arg-2 is 1:
set lore of player's tool to "&7Sharpness I ||new line"
send "&7Add Sharp 1 To Held Item!" to player



it works fine except it doesnt add the lore to the item im holding? any help as to why?
 
You can add it to the tool's lore like this:
Code:
command /enchant [<text>] [<integer>]:
    permission: op
    trigger:
        if arg-1 is "sharpness":
            if arg-2 is 1:
                add "&7Sharpness I" to lore of player's tool
                send "&7Add Sharp 1 To Held Item!" to player

so i have this skript here



command /enchant [<text>] [<integer>]:
permission: op
trigger:
if arg-1 is "sharpness":
if arg-2 is 1:
set lore of player's tool to "&7Sharpness I ||new line"
send "&7Add Sharp 1 To Held Item!" to player



it works fine except it doesnt add the lore to the item im holding? any help as to why?
 
Status
Not open for further replies.