Solved Giving item and 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.

SoMuchWessel

Active Member
Apr 3, 2017
147
3
18
46
Hello guys,
Is there a way to give a player a item and give the given item a lore?
Like:

code_language.skript:
        give a dirt to player
        set the 1nd line of the lore of the given item to "test"

And i know about the codeline: Give the player a dirt with lore "test", but that is not what i want here
 
Hey, of course there is here is the code:
code_language.skript:
set line 1 of the lore of player's tool to "test"
[doublepost=1536331299,1536331071][/doublepost]Sorry, just pulled the line from one of my skripts, changed it just in case.
 
Hey, of course there is here is the code:
code_language.skript:
set line 1 of the lore of player's tool to "test"
[doublepost=1536331299,1536331071][/doublepost]Sorry, just pulled the line from one of my skripts, changed it just in case.

That is not what i mean. I will give an example.

If a player does the command /test, he will get a dirt. And i want that after he got the dirt, the dirt will get a lore with "test".
But i can not do something like: set the 1nd line of the lore of the given item to "test"
 
Here:
code_language.skript:
command /dirt:
    trigger:
        give a dirt with lore "test" to player
 
Here:
code_language.skript:
command /dirt:
    trigger:
        give a dirt with lore "test" to player

The problem with that is that if i have multiple different items, that i need to add
code_language.skript:
with lore "test"
to every one of them, which is kinda a pain
 
Tbh at this point I don't know what you are talking about. You asked for "Is there a way to give a player a item and give the given item a lore?" and I have literally spoon fed it too you. What more can I give you. If you want the player to get more items add them below in the same format. If you want more lines on the lore (another line under the top one) add more. It's really not hard.
 
Its totally different

Your way is setting the lore of the tool the player already has

Mine is ... creating an item, adding lore to it, THEN giving it to the player
The player gets the item with the lore, it's in the same line of code. There is not a way to avoid getting the lore on the item.
 
Status
Not open for further replies.