set lore of pickup item

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

asdas dasd

Member
Oct 6, 2021
3
0
1
23
on pick up:
if event-item is sword:
if 1st line of lore of event-item is not set:
set 1st line of lore of event-item to "hello!"


error name: the line 1 of the lore of event-item stack can't be set to anything (sp.sk, line 16: set 1st line of lore of event-item to "hello!"')

skript version: 2.5.3

version: 1.16.5

thx!
 
next time. write it in code blocks. by clicking the plus then code.

Instead of setting the lines. You can use

Code:
set lore to "hello"
and you can also use and for more lines. also you can use that method but in different code
Code:
set the 1st line of the event-item's lore to "hello"
or
Code:
set event-item's lore line 1 to "hello"
# this one might not work
 
Status
Not open for further replies.