Pour ca, on va reprendre une partie de skript de skywars : l'auto-regène
on break:
if "%World of player%" is "{@map}":
{skywars.game.ignore.locations::%location of event-block%} is not set
add location of block to {skywars.game.broken.blocks::*}
add type of block to {skywars.game.broken.type::*}
set {skywars.game.ignore.locations::%location of event-block%} to true
command /skywarsregen:
trigger:
loop {skywars.game.broken.blocks::*}:
set {_loc} to loop-value
set block at {_loc} to {skywars.game.broken.type::%loop-index%}
delete {skywars.game.broken.blocks::*}
delete {skywars.game.broken.type::*}
delete {skywars.game.ignore.locations::*}
on place:
if "%World of player%" is "{@map}":
{skywars.games.ignore.locations:%location of event-block%} is not set
add location of block to {skywars.games.place.blocks::*}
add type of block to {skywars.games.place.type::*}
set {skywars.games.ignore.locations::%location of event-block%} to true
command /skywarsregen1:
trigger:
loop {skywars.games.place.blocks::*}:
set {_loc} to loop-value
set block at {_loc} to air
delete {skywars.games.place.blocks::*}
delete {skywars.games.place.type::*}
delete {skywars.games.ignore.locations::*}
Il ne te suffira plus qu'à changer le nom des variables et, si besoin, les commandes tout en citant les sources. La première partie du code est lorsqu'on casse un bloc. La seconde est lorsqu'on place un bloc. Là, ce qui nous intéresse est la seconde partie.
Espérant avoir pu t'aider. Après tu connais la suite...(passer en résolu etc...)