Is there any way to check for an item's 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 community!

    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.

_Dani

Member
Feb 17, 2017
1
0
0
Hello there, I would like to get some help detecting some special items dropped by some mobs, those items are already added and they look like this:

7ea8473b6c8aa05f013da8df82248072.gif

The mechanic that I'm looking forward to add is this: When you right click a Citizen, in this case a Villager (skRayFall) with one of those "Clavis" he will have a chance to break the item or give you something in exchange for it, But I don't know how to add a Condition to my script to detect item's lore

code_language.skript:
On citizen right click:
    citizen is named "&9&lNómada de Agartha"
    player is holding a dye: #<---
         #etc

I know that RandomSK is able to check for item's metadata, but it's really outdated and I'm using 1.11.2, so, it doesn't really load.

If anyone has any idea on how to check for the item's lore, even the name, and can tell me how, I would really appreciate it.

- A newbie
 
player's tool is %item% named "" with lore "" :

Player has to hold The item while clicking on the citizen
 
Vanilla Skript has an expression to check lore, you can literally just do "%itemstack%'s lore". In your case you can use 'player's tool's lore', or 'lore of player's tool', whichever you prefer. You can check if it equals something or contains something like any other text.
 
Status
Not open for further replies.