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.
Prefer mods? The same pack is also available as a Fabric (needs Fabric API) or NeoForge mod on the Versions tab. There is no need to install both.
What it does
- Every 5 minutes, clears dropped items that have been lying around for at least 30 seconds. Items dropped right before a sweep are left alone.
- Warns everyone in chat 60 and 10 seconds before each sweep, then reports how much was cleared.
- Also clears arrows stuck in the ground. XP orbs are optional (off by default).
- All of this can be changed or turned off.
What it never touches
- Display items that can't be picked up (shops, decorations from other packs)
- Items set to never despawn
- Anything tagged
item_sweeper.keep— other packs can use this tag to protect their items
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.
你是这个资源的作者?登录后可认领此资源。
相似资源
缓冲的原始输入和线程化的事件轮询
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
原版世界生成优化模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
查看物品与配方
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧