Hello, is there anyone who can me help with Lore refreshing of item on event on break: ?
My problem is: I want to refresh lore every, if player break a block, bcs i have integer variables in that lore.
On skript reload is anything OK, but it doesn't work.
Server version: 1.18.1
Addons: Using only skript, without addons.
Code:
SOLUTION:
I change variables into action bar. So it works good.
My problem is: I want to refresh lore every, if player break a block, bcs i have integer variables in that lore.
On skript reload is anything OK, but it doesn't work.
Server version: 1.18.1
Addons: Using only skript, without addons.
Code:
Code:
on break:
if player's name is "AvantyCZ":
if player's tool is any pickaxe named "{@ttkrump}" with lore "{@ttkrumplore}" and " " and "&f- &7XP: &c%{tt.krump.xp.%player%}%&f/&c%{tt.krump.xpmax.%player%}%" and "&f- &7Level: &b%{tt.krump.%player%}%" and " " and "{@ttkrumplore}":
if {tt.krump.xp.%player%} is less than {tt.krump.xpmax.%player%}:
add 1 to {tt.krump.xp.%player%}
set the 3rd line of the item's lore to "&f- &7XP: &c%{tt.krump.xp.%player%}%&f/&c%{tt.krump.xpmax.%player%}%"
set the 4st line of the item's lore to "&f- &7Level: &b%{tt.krump.%player%}%"
else:
SOLUTION:
I change variables into action bar. So it works good.
Last edited: