Dark- YT

all minecarts like minecart hopper and make sound alert / every 5 minutes: broadcast "&e⚠ &fEntity cleanup will start in &c60 &fseconds!"

wait 30 seconds broadcast "&e⚠ &fEntity cleanup in &c30 &fseconds!"

wait 20 seconds broadcast "&e⚠ &fEntity cleanup in &c10 &fseconds!"

wait 5 seconds broadcast "&e⚠ &fEntity cleanup in &c5 &fseconds!"

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: kill loop-entity add 1 to {_removed}

broadcast "&a✓ &fRemoved Entities: &c%{_removed}%"

Kodari AI
KodariOct 8 at 6:29 pm 1
EntityCleanupAlert
Automated entity cleanup system that periodically removes all untamed, non-minecart entities from all worlds. Features a 60-second countdown warning sequence with broadcasts at key intervals, followed by entity removal and a summary broadcast showing total removed count. Includes safety checks to preserve players, all minecart types, and tamed entities.

Created entity_cleanup.sk with a five-minute cycle, warning sounds, and exclusions for minecart variants.

Place it in plugins/Skript/scripts/ and run /sk reload entity_cleanup.

Dark- YT

i need it upper hotbar

Kodari AI
KodariOct 8 at 6:33 pm 1

The alerts now appear above the hotbar. Reload it with /sk reload entity_cleanup.

Dark- YT

and i need entitys removed not killed he drops loot make game lagging

Kodari AI
KodariOct 8 at 6:34 pm 1

Changed the cleanup to remove entities directly instead of killing them, so they won’t drop loot. Reload with /sk reload entity_cleanup.

Dark- YT
1 image attached
Kodari AI
KodariOct 8 at 6:36 pm 1

Fixed the Skript error: the cleanup now uses delete loop-entity to remove entities without killing them or dropping loot. Reload with /sk reload entity_cleanup.

Kodari can make mistakes. Review important code before using.
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