Double lore

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

skanto123

Active Member
Jan 8, 2018
70
0
0
34
command /test:
trigger:
set player's tool's lore to "%player's tool's lore%||&aAuto Smelt 3"

how do I make it if the lore contains Auto Smelt 3 and someone tried to put Auto smelt 2 on it it says that they already have auto smelt 3 on the pickaxe .Or if they have auto smelt 1 when you put auto smelt 2 or 3 on it removed the autosmelt 1 and put 2 or 3
 
Check if the lore contains auto smelt 3, then cancel it.On the other hand, check it and chance the value or remove the line of the lore and add the tier 2/3 line :emoji_slight_smile:.
 
You can use the on anvil combine event from tuske. From there you can check and execute everything else easily.
code_language.skript:
on anvil combine:
    if line 1 of the lore of the event-item is "Autosmelt 3":
        do the things
 
Status
Not open for further replies.