Need help with 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.

Crafty

Member
Aug 13, 2021
1
0
1
23
Is it possible to check if an item has "3" as line one of lore and "Strawberry" as line 2 of lore?

This is what I'm working with:

on right click:
if player's held item is stick named "Cleaner":
if player's offhand is black dye named "test" with lore "3" and line 2 of lore "Strawberry":
give 1 stone named "Strawberry"
delete player's offhand's lore
set the 1st line of player's offhand's lore to "3"

(Btw I do have tabs in the code editor but the site dosen't allow me to put spaces or tabs)
 
upload_2022-11-2_1-29-15.png
 
Code:
on right click:
    player's tool is stick named "Cleaner" # Does not trigger when there are 2 or more sticks

    player's offhand is black dye named "test" with lore "3" and line 2 of lore "Strawberry"

    give stone named "Strawberry"

    clear player's offhand's lore
    set 1st line of player's offhand's lore to "3"
 
Status
Not open for further replies.