Tu masz wersję z lore, testowana:
command /sila <number>:
permission: sila.ustaw
permission message: &cNie masz uprawenien!
trigger:
if player's tool is diamond sword or wooden sword or stone sword or gold sword or iron sword:
wait 1 tick
set lore of player's tool to "&8&l>> &2Siła miecza: &8&l<<||&8&l>> &7%arg 1% &8&l<<"
send "&aUstawiłeś siłe miecza na &7%arg 1%&a!"
else:
send "&cMozesz ustawiac tylko siłe mieczy!"
on damage:
if attacker's tool is diamond sword or wooden sword or stone sword or gold sword or iron sword:
if line 1 of lore of attacker's tool is "&8&l>> &2Siła miecza: &8&l<<":
set {_l2} to "%uncolored line 2 of lore of attacker's tool%"
replace all ">> " and " <<" with "" in {_l2}
set {_l2} to {_l2} parsed as number
set damage to {_l2}