Solved How to Delete and change the last line of the lore or a specific 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.
Mar 29, 2020
28
0
1
28
Hi guys! I'm making an item durability plugin. My problem is that I can't find a way to change a specific line of lore or the last line of lore. Always in the last line of the lore will be "durability" so I want to know how to delete and replace the last line of the lore or the specific line of "durability".
example: when repairing a weapon that has a durability of 100/5000 I want to change the entire lore line to 5000/5000.
I don't know if I explained it well, but I explained it the best I could :emoji_slight_smile:
 
simple:
Loop lore of player's tool:
add 1 to {_lenght}
set lore at line {_lenght} of player's tool to "TEXT"
 
Status
Not open for further replies.