J'ai trouvé !!! J'ai reconfiguré tout le skript et il marche !
on load:
register new shaped recipe for clock named "&7[&6Unclaim &eFinder&7]" with lore "||&7Clique-Droit pour voir le||&7nombre de coffres dans les||&7alentours !" using gold ingot, gold ingot, gold ingot, gold ingot, diamond, gold ingot, gold ingot, gold ingot, gold ingot
on right click with clock:
if lore of tool of player is "||&7Clique-Droit pour voir le||&7nombre de coffres dans les||&7alentours !":
set {_chest} to 0
loop all blocks in radius 50 around player:
if loop-block is a chest:
add 1 to {_chest}
if loop-block is an ender chest:
add 1 to {_chest}
if loop-block is a trapped chest:
add 1 to {_chest}
wait 1 tick
set tool of player's name to "&7[&6Unclaim &eFinder&7] &8-> &b%{_chest}% &8dans les &b{@portée} &7blocks"