Home›Java›Mods›SafeClear
SafeClear
ModsJava

SafeClear

Java mod listed for Minecraft 1.20–26.x. Downloads from the MC Java Mods app on Android.

by Palmine38 · on Modrinth

⬇ Download on Modrinth

SafeClear

Paper plugin for quick cleanup around the player: item frames, dropped items, entities (mobs and others), and villagers with persistent spawn blocking, periodic auto-clean, and undo (up to 5 actions back).

Contact me

You can DM me here on Discord if you got any issues or suggestions

Compatibility

Commands explanation

All commands can only be used by a player (cannot be used from console).

When <distance> (or more precisely radius) is expected, you can type infinite if you want to affect the entire server.

Argument order rule: on every command it applies to, filters come first, then distance, then (if applicable) percentage last <filters...> <distance> [percentage%].

/safeclear itemframes <all|glow|normal> [empty|map|item|all] <distance> [percentage%]

Removes item frames within a radius of <distance> blocks around the player.

Examples:

/safeclear itemframes all 20 clears all item frames within a 20 blocks radius

/safeclear itemframes glow map 30 clears glow item framew within a 30 blocks radius

/safeclear itemframes normal 15 50% clears half normal item frames within a 15 blocks radius.

Permission: safeclear.itemframes (default: op)

/safeclear items <distance> [percentage%]

Removes dropped item entities within a radius of <distance> blocks.

Permission: safeclear.items (default: op)

/safeclear entity <type1,type2,...> <distance> [percentage%]

Removes all entities of the given types (mobs, but also any other entity: armor stand, minecart, boat, etc.) within a given radius.

Examples:

/safeclear entity wandering_trader,bat 20
/safeclear entity zombie 30 50%

Permission: safeclear.entity (default: op)

/safeclear blockentity <add|remove|list|clear> ...

Prevents an entity type from spawning server-wide, with 3 levels:

The blocked-types list is persistent (saved to config.yml).

/safeclear blockentity add phantom,zombie spawn
/safeclear blockentity add wither_skeleton natural
/safeclear blockentity remove phantom
/safeclear blockentity list
/safeclear blockentity clear

Permission: safeclear.blockentity (default: op)

/safeclear villagers <filter1,filter2,...|all> <distance> [percentage%]

Removes villagers within a given radius, with filters:

Example: /safeclear villagers unemployed,child 20 removes villagers that are both unemployed and babies within a 20-block radius.

Permission: safeclear.villagers (default: op)

/safeclear autoclear <enable|disable|interval|entities|status>

Periodic, automatic cleanup across the whole server (all worlds, no radius or reference player) meant to reduce lag by regularly removing entities that pile up (dropped items, hostile mobs, etc.).

The configuration (enabled, interval, types) is persistent (saved to config.yml).

/safeclear autoclear entities item,zombie,skeleton
/safeclear autoclear interval 15m
/safeclear autoclear enable
/safeclear autoclear status
/safeclear autoclear disable

A message is broadcast server-wide after each cycle that removed at least one entity.

Permission: safeclear.autoclear (default: op)

/safeclear undo

Undoes the last removal performed by the player (item frames, items, entities, or villagers), restoring their position, type, and main traits (content/rotation for frames, profession/level/age for villagers). Very good feature, well optimized, really proud of it.

Permission: safeclear.undo (default: op)

Thanks for reading all of that, and I hope you will enjoy using this plugin!

License

MIT

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more