Home›Java›Datapacks›Item Sweeper
DatapacksJava

Item Sweeper

Java data pack listed for Minecraft 26.x. Downloads from the MC Java Mods app on Android.

by pome_rabbit · on Modrinth

Clears old dropped items on a timer to cut lag. Warns players first, never touches display items. Vanilla, lightweight.

⬇ Download on Modrinth
Item Sweeper — screenshot 1Item Sweeper — screenshot 2

Item Sweeper

Too many dropped items lagging your server? Item Sweeper clears them on a timer — with a warning first.

A small, vanilla data pack. Drop it in your world's datapacks folder. Players don't need to install anything.

What it does

What it never touches

Light on your server

Only loaded chunks are swept — like vanilla despawning, items in unloaded chunks are left alone. One sweep is a handful of commands no matter how many items there are. In testing, 16,000 items were cleared in a single sweep with no command-limit issues.

Commands (operators)

Command What it does
/function item_sweeper:settings Show settings and time until the next sweep
/function item_sweeper:sweep_now Clear dropped items now
/function item_sweeper:uninstall Remove everything the pack added

Settings

/scoreboard players set #<name> item_sweeper.config <value>

Name Default Meaning
enabled 1 1 = on, 0 = off
interval 300 Seconds between sweeps (0 = off)
min_age 30 Seconds an item must have been on the ground
warn_1 / warn_2 60 / 10 Warning times in seconds (0 = no warning)
arrows 1 Clear arrows stuck in the ground
xp_orbs 0 Clear XP orbs
announce 1 Chat warnings and summary

Settings survive /reload.

Translations

Chat messages use translation keys (item_sweeper.warn, item_sweeper.done, item_sweeper.done_with_others) with English fallbacks, so resource packs can translate them.

Tested on

Minecraft 26.1, 26.2 and 26.3 (dedicated server).

Bug reports are welcome, but replies may be slow.

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

File checked by MCModsHub

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

Explore more