Files
entity_cleanup.sk
Code
1 30
entity_cleanup.sk
every 5 minutes:
send action bar "&e⚠ &fEntity cleanup will start in &c60 &fseconds!" to all players
play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 to all players
wait 30 seconds
send action bar "&e⚠ &fEntity cleanup in &c30 &fseconds!" to all players
play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 to all players
wait 20 seconds
send action bar "&e⚠ &fEntity cleanup in &c10 &fseconds!" to all players
play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 to all players
wait 5 seconds
send action bar "&e⚠ &fEntity cleanup in &c5 &fseconds!" to all players
play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 to all players
wait 5 seconds
set {_removed} to 0
loop all worlds:
loop all entities in loop-world:
if loop-entity is not a player:
if loop-entity is not a minecart:
if loop-entity is not tamed:
delete loop-entity
add 1 to {_removed}
send action bar "&a✓ &fRemoved Entities: &c%{_removed}%" to all players
play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 to all players