on death of player:
set {_i} to xp bottle named "&6Exp gracza %victim%" with lore "&7Xp: %victim's exp%"
event.setDroppedExp(0)
add {_i} to drops
on right click:
if name of player's tool contain "&6Exp gracza ":
cancel event
set {_n} to uncolored line 1 of lore of player's tool
replace all "Xp: " with "" in {_n}
remove player's tool from player
add ({_n} parsed as number) to player's exp