How do you replace lores?

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

BrownMee

Active Member
Apr 16, 2018
126
6
18
23
Let's say I have a diamond sword with "Haste I" on it. Then I got another enchantment book with "Haste II". How do I replace the "Haste I" lore to "Haste II" ?
[doublepost=1531760673,1531649397][/doublepost]Help ;_;
 
Let's say I have a diamond sword with "Haste I" on it. Then I got another enchantment book with "Haste II". How do I replace the "Haste I" lore to "Haste II" ?
[doublepost=1531760673,1531649397][/doublepost]Help ;_;
Try
code_language.skript:
replace every "Haste I" in lore of tool of player with "Haste II"
but if it's about the actual enchantments and not the lore this won't work, as the enchantments are defined by the lore
 
Last edited:
Try
code_language.skript:
replace every "Haste I" in lore of player with "Haste II"
but if it's about the actual enchantments and not the lore this won't work, as the enchantments are defined by the lore
Understand. Does the code works with player tool?