Solved Issue with the lore detection of 1.17

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

Tonipop

Member
Aug 15, 2021
12
0
1
hello, i got a issue with the lore detection, it works when there is 1 line of lore .. but when it has more then it stops to work.

before of 1.17 it worked, but now stoped work for any weird reason


on rightclick:
if uncolored lore of player's Tool contains "Charged Combo":
set {_waited} to difference between {cooldown::skill3::%player's uuid%} and now
if {_waited} is less than 30 seconds:
send action bar "&cYou are tired wait %difference between 30 seconds and {_waited}% before doing this again." to player
stop
execute console command "execute as %player% at @s run scoreboard players set @s chargedsword 300"
send "&e&lattack as fast as you can" to player
play sound "entity.lightning_bolt.thunder" with volume 1 and pitch 2 at player
apply glowing tier 1 to player for 10 seconds
apply strength tier 2 to player for 12 seconds
set {cooldown::skill3::%player's uuid%} to now



8C8Pzxd.png

in this item with only the lore it works

but when I add any extra lore about his attributes and more contents.
it stops to work

3pddtNw.png
 
welp with that I changed the code
Code:
    if uncolored lore of player's Tool contains "Charged Combo":
replacing with:
Code:
    if "%lore of player's tool%" contains "Charged Combo":
it worked
 
Status
Not open for further replies.