Mam problem z tym co jest w tytule, żeby łatwiej zrozumieć co chcę zrobić https://ibb.co/2qGBhbb np: liczba z "Attack: 5" będzie dodawana do {attack.%player%}, dodam że nie każdy przedmiot będzie miał taki sam wzór lore jak ten na ss (np: Przed "Attack" będzie dajmy że "Health" a w niektórych przypadkach będzie odwrotnie, i będzie więcej statystyk niż te dwie (Pisze to po to żeby nie było nieporozumień)). Nie wiem czy to możliwe żeby zrobić z tego funkcje żeby uniknąć robienia 10000 linijek kodu, jak na razie to na dole jest to co udało mi się wymyśleć nie wiem czy z tego da się stworzyć coś co opisałem.
mc 1.17.1
skript 2.6.1
addons: skquary, skrayfall, skbee
on click:
set {lrq.%player%} to last character of 4th line of lore of player's tool parsed as integer
if {level.%uuid of player%} < {lrq.%player%}:
send "nope ur too weak %{lrq.%player%}%" to player
else:
send "u can use it %{lrq.%player%}%" to player
on jump:
set {lore::*} to uncolored lore of player's tool
loop 5 times:
if {lore::*} contains "Required Level: %loop-number%":
set {minlvl} to "%loop-number%" parsed as integer
send "ez %{minlvl}%" to player
send "%{lore::*}%"
if {level.%uuid of player%} < {minlvl}:
send "nope" to player
else:
send "u can use it" to player