on place:
if event-world is "PvPBox":
wait 30 seconds
set event-block to air
simple rapide et efficace, mais si ton serveur crash/reload ou si ton skript se reload pendant ces 30s, le block restera a tout jamais :eek:
Donc 2ème méthode:
on place:
if event-world is "PvPBox":
add event-location to {clear.pvpbox::*}
wait 30 seconds
set event-block to air
remove event-location from {clear.pvpbox::*}
on load:
make console execute command "/clearblocks"
command /clearblocks:
trigger:
loop {clear.pvpbox::*}:
if block at loop-value is not air:
set block at loop-value to air
message "&a Vous avez clear les blocks du PvPBox !"
et voila :) Donc normalement c'est automatisé (quand ton serveur démarre/ quand tu reload / quand tu reload le skript) ca va clear les blocks, mais au cas ou, tu peux faire /clearblocks :)