Salut :) Voila le code , le probleme c'est que le craft ne marche pas... Et il y a 2 erreurs.
register new shaped recipe for 8 of plain glass block of unbreaking 10 named "&6Cave Block" with lore "&cAttention à usage unique !" using plain glass block, plain glass block, plain glass block, plain glass block, emerald, plain glass block, plain glass block, plain glass block, plain glass block
on right click with plain glass block of unbreaking 10:
cancel event
wait 1 tick
remove 1 of the tool of player from the inventory of player
set {_loc} to location of player
set {_loc1} to location of player
set {_loc2} to location of player
set {_loc3} to location of player
set {_loc4} to location of player
add 17 to x-coord of {_loc3}
add 17 to z-coord of {_loc3}
add 17 to x-coord of {_loc1}
add 17 to z-coord of {_loc2}
loop blocks within chunk of {_loc3}:
if loop-block isn't chest or diamond ore or emerald ore or gold ore or iron ore:
make player see loop-block as air
loop blocks within chunk of {_loc2}:
if loop-block isn't chest or diamond ore or emerald ore or gold ore or iron ore:
make player see loop-block as air
loop blocks within chunk of {_loc1}:
if loop-block isn't chest or diamond ore or emerald ore or gold ore or iron ore:
make player see loop-block as air
loop blocks within chunk of {_loc4}:
if loop-block isn't chest or diamond ore or emerald ore or gold ore or iron ore:
make player see loop-block as air
wait 10 second
loop blocks within chunk of {_loc3}:
make player see loop-block as loop-block
loop blocks within chunk of {_loc2}:
make player see loop-block as loop-block
loop blocks within chunk of {_loc1}:
make player see loop-block as loop-block
loop blocks within chunk of {_loc4}:
make player see loop-block as loop-block
wait 5 ticks
add 1 to y-coord of {_loc}
teleport player to {_loc}