Using this
How would I clear drops around the explosion after it happened?
code_language.skript:
options:
Perm: uhc.staff
P: &8[&4TimeBomb&8]
C: &b
H: &f
Excluded: Spawn
Force: 10
command /TimeBomb <text>:
permission: {@Perm}
usage: /TimeBomb <On:Off>
trigger:
if arg-1 is "enable" or "on":
set {TimeBomb} to true
broadcast "{@P} &fTime Bomb &aEnabled{@C}!"
if arg-1 is "disable" or "off":
delete {TimeBomb}
broadcast "{@P}{@C} &fTime Bomb &cDisabled{@C}!"
on death of player:
if victim's world is not "Spawn":
{Timebomb} is true
set block at block at victim's location to chest
set {_loc} to the block at victim's location
set {_chest} to block at victim's location
set block at block left of {_chest} to chest
add 1 golden apple named "&6Golden Head" to the block at {_chest}
add victim's inventory to the block at {_chest}
add the victim's helmet slot to the inventory of the block at {_chest}
add the victim's chestplate slot to the inventory of the block at {_chest}
add the victim's leggings slot to the inventory of the block at {_chest}
add the victim's boots slot to the inventory of the block at {_chest}
clear drops
delete holo object "%victim%"
create holo object "%victim%" with id "%victim%" at location of block above victim's location
set {_time.%victim%} to 30
broadcast "{@P}{@H} &a%victim%'s &fcorpse is now ticking"
loop 30 times:
edit holo object "%victim%" line 1 to "&a%{_time.%victim%}% seconds remaining"
add -1 to {_time.%victim%}
wait 1 second
delete holo object "%victim%"
set block at {_chest} to air
set block at {_loc} to air
wait 3 ticks
create an explosion of force {@Force} at {_chest}
strike lightning effect at {_chest}
broadcast "{@P} &a%victim%'s &fcorpse has exploded"
clear drops at %victim%
How would I clear drops around the explosion after it happened?