How do I add a lore to a tool

  • 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
how do I make it so if I do the command /test it will add a new line with the lore "&ctest" to my tool
 
code_language.skript:
set lore of player's tool to "%lore of player's tool%||new line"
 
code_language.skript:
set lore of player's tool to "%lore of player's tool%||new line"
How do I make it so if a player is holding a pickaxe that containts the lore "&aTest" then it gives the player haste for 100 days
 
How do I make it so if a player is holding a pickaxe that containts the lore "&aTest" then it gives the player haste for 100 days
code_language.skript:
if "%lore of player's tool%" contains "&atest":
 apply haste 1 to player for 100 days
else:
 send "You don't have the lore '&atest'" to player
 
Last edited:
code_language.skript:
if "%lore of player's tool%" contains "&atest":
 apply haste 1 to player for 100 days
else:
 send "You don't have the lore '&atest'" to player
If I do that then If I add another lore it overwrites the preexisting one
 
If I do that then If I add another lore it overwrites the preexisting one
if you want lore on multiple lines you can use the || symbol to que a new line, or you can set a specific line of lore with something like
set the 1st line of the lore of the player's tool to "whatever"
 
Status
Not open for further replies.