Je me suis aidé de PalaItem, un skript déjà fais sur le forum, voici ton code, je ne l'ai pas tester dis moi si tu veux changer quelque chose (si tu ne sais pas comment faire)
options:
name: &7[&6Unclaim &eFinder&7] #Nom de l'item
lore : "||&7Clique-Droit pour voir le||&7nombre de coffres dans les||&7alentours !" #La lore de l'item (ce qu'il y a en dessou du nom)
portée: 50 #Nombre de blocks de portée
craft: gold ingot, gold ingot, gold ingot, gold ingot, diamond, gold ingot, gold ingot, gold ingot, gold ingot #Craft de l'item
on right click with compass:
if lore of tool of player is "{@lore}":
set {_chest} to 0
loop all blocks in radius {@portée} 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"
on load:
register new shaped recipe for clock named "{@name}" with lore "{@lore}" using {@craft}