help detect 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.
Code:
command /check:
    trigger:
        if player's hand held item is blaze rod named "Lighting staff" with lore "&cEnd your enemies with the power of god":
            do smth

If it was the same item without the lore part it wouldnt do smth
 
Code:
command /check:
    trigger:
        if player's hand held item is blaze rod named "Lighting staff" with lore "&cEnd your enemies with the power of god":
            do smth

If it was the same item without the lore part it wouldnt do smth
its not detecting lores its detecting item name and lores
i want to make an custom enchant skript i make it like this
on damage:
if attacker's tool is a sword:
If the 1st line of the lore of the attacker's tool is "&7Blind 1":
apply blindness to victim for 5 seconds
apply slowness to victim for 5 seconds
If the 2nd line of the lore of the attacker's tool is "&7Blind 1":
apply blindness to victim for 5 seconds
apply slowness to victim for 5 seconds
If the 3rd line of the lore of the attacker's tool is "&7Blind 1":
apply blindness to victim for 5 seconds
apply slowness to victim for 5 seconds
If the 4th line of the lore of the attacker's tool is "&7Blind 1":
apply blindness to victim for 5 seconds
apply slowness to victim for 5 seconds
If the 5th line of the lore of the attacker's tool is "&7Blind 1":
apply blindness to victim for 5 seconds
apply slowness to victim for 5 seconds
i need shorter way to make that
iam sorry my english so bad ;(
 
Pretty sure this should work:

Code:
if lore of player's tool contains "xxx"
 
Code:
on damage:
    if attacker's tool is a sword:
        if lore of attacker's tool contains "&7Blind I":
            apply potion of blindness of tier 1 to victim for 5 seconds
            apply potion of slowness of tier 1 to victim for 5 seconds



Not Tested it but i believe it should work.
 
Code:
on damage:
    if attacker's tool is a sword:
        if lore of attacker's tool contains "&7Blind I":
            apply potion of blindness of tier 1 to victim for 5 seconds
            apply potion of slowness of tier 1 to victim for 5 seconds



Not Tested it but i believe it should work.
same its only detecting lore 1
 
Wait show me your sword skript... because that should work...
on damage:
if attacker's tool is a sword:
if lore of attacker's tool contains "abcd":
apply speed to attacker for 10 seconds
[doublepost=1610524965,1610181383][/doublepost]help plss XD
 
on damage:
if attacker's tool is a sword:
if lore of attacker's tool contains "abcd":
apply speed to attacker for 10 seconds
[doublepost=1610524965,1610181383][/doublepost]help plss XD
Code:
on damage:
  player is holding a sword named "lol" with lore "&4Lore1%newline%&4lore2%newline%&4ok i get it sotp with lores":
    # do stuff
 
  • Like
Reactions: Marc
its detect tool name and lore ;(
the internet is for inappropriate word and code
the internet is for (da da da)
ok here u go sorry for the horrible joke
Code:
on damage:
  attacker's held item is set:
    if lore of attacker's tool is "&aNo":
      send "Worked" to attacker
    
command /hi:
  trigger:
    give player stone named "&4OK" with lore "&aNo"
 
the internet is for inappropriate word and code
the internet is for (da da da)
ok here u go sorry for the horrible joke
Code:
on damage:
  attacker's held item is set:
    if lore of attacker's tool is "&aNo":
      send "Worked" to attacker
   
command /hi:
  trigger:
    give player stone named "&4OK" with lore "&aNo"
its only detecting lore 1 :emoji_frowning:
 
  1. on damage:
  2. attacker's held item is set:
  3. if line 1 of lore of attacker's tool is "&aNo":
  4. send "Worked" to attacker
  5. if line 2 of lore of attacker's tool is "xxx"
  6. command /hi:
  7. trigger:
  8. give player stone named "&4OK" with lore "&aNo"
 
  1. on damage:
  2. attacker's held item is set:
  3. if line 1 of lore of attacker's tool is "&aNo":
  4. send "Worked" to attacker
  5. if line 2 of lore of attacker's tool is "xxx"
  6. command /hi:
  7. trigger:
  8. give player stone named "&4OK" with lore "&aNo"
its same like my skript
i need short way to make that like
if line 1-20 of lore of attacker's tool is "..."
 
its only detecting lore 1 :emoji_frowning:
what is lore 1
[doublepost=1611854642,1611854118][/doublepost]
its only detecting lore 1 :emoji_frowning:
OHHH I GET IT
Code:
on damage:
  attacker's held item is set:
    if lore of attacker's tool is "&aNo%newline%&4line 2":
      send "Worked" to attacker
  
command /hi:
  trigger:
    give player stone named "&4OK" with lore "&aNo%newline%&4line 2"
 
Status
Not open for further replies.