on load:
register new shapeless recipe for water bucket named "&6MEGA WIADRO" with lore "&7Uzycia &6250" using water bucket, iron ingot, water bucket, water bucket, enchanted book of mending 1, iron ingot, water bucket, bucket, water bucket
on bucket empty:
if name of player's tool is "&6MEGA WIADRO":
set {_l} to uncolored lore of player's tool
replace all "Uzycia" and " " with "" in {_l}
set {_l} to {_l} parsed as integer - 1
{_l} > 0
set player's tool to water bucket named "&6MEGA WIADRO" with lore "&7Uzycia &6%{_l}%"