Ceci devrait fonctionner :
aliases:
UNCLAIMFINDER= 347
NOUNCLAIMFINDER= 38:1
on right click with UNCLAIMFINDER:
if name of player's tool contains "&c&lUnclaimFinder":
loop blocks within chunk at player:
if loop-block is chest or ender chest or trapped chest or dispenser or hopper or dropper or minecart with hopper or minecart with chest:
add 1 to {_chest}
send "&b%{_chest}% coffre(s) &7ont été trouvés sur ce chunk."
set {_b} to name of player's tool
replace all "&c&lUnclaimFinder &6(" and "&e/1000&6)" with "" in {_b}
set uncolored {_b} to {_b} parsed as number
if {_b}-1 = 0:
remove UNCLAIMFINDER from player's inventory
send "&cVotre unclaimfinder est cassé."
else:
set name of player's tool to "&c&lUnclaimFinder &6(&e%{_b}%&e/1000&6)"
on command "/uf":
if player has permission "uf.give":
cancel event
give player clock named "&c&lUnclaimFinder &6(&e1000&e/1000&6)"
send "Voici un unclaim finder"