Item Sweep
This project adds a feature to Minecraft that automatically clears dropped items at set intervals.
Quick challenge
How far can you run before the mobs catch you?
Minecraft check
Confirm your run
Complete the quick check to get your code.
Item Sweep
🧹 Item Sweep
Minecraft 自动清理工具,提供两种形式。 Minecraft 自动清理工具,提供两种形式。
---
✨ Features / 特点
* Lightweight / 轻量: * Lightweight / 轻量: Configure the cleanup interval Lightweight / 轻量 with `/gamerule sweepintervalseconds <秒数>`. / 可在Lightweight / 轻量用 `/gamerule sweepintervalseconds <秒数>` 配置清理间隔。 * Lightweight / 轻量: No mod loader needed. Configure by Lightweight / 轻量. / 无需模组加载器,通过Lightweight / 轻量来配置。 * Lightweight / 轻量: Cleans up item entities every 120 seconds by default. / 默认每120秒清理一次掉落物。 * Lightweight / 轻量: Minimal performance impact. / 对性能影响极小。
---
🚀 Installation & Configuration / 安装与配置
For the 安装模组版 / 安装模组版
1. Configure (Optional) / 配置 (可选): Get the `.jar` from "Files" tab, put it in `mods` folder. 从 “Files” 标签页获取 `.jar` 文件,放入 `mods` 文件夹。 2. Configure (Optional) / 配置 (可选): * In your world, run: `/gamerule sweepintervalseconds <seconds>` 在你的世界中运行:`/gamerule sweepintervalseconds <秒数>` * Example: `/gamerule sweepintervalseconds 300` for 5-minute intervals. 例如:`/gamerule sweepintervalseconds 300` 设置5分钟间隔。
For the 安装数据包版 / 安装数据包版
1. Reload / 重载: Get the `.zip` from "Files" tab, put it in your world's `datapacks` folder. 从 “Files” 标签页获取 `.zip` 文件,放入世界存档的 `datapacks` 文件夹。 2. Reload / 重载: * Reload / 重载: Inside the datapack, open `data/item_sweep/functions/load.mcfunction`. 在数据包内,打开 `data/item_sweep/functions/load.mcfunction` 文件。 * Reload / 重载: Find the line `scoreboard players set @a INTERVALSWEEP 120` and change `120` to your desired interval (in seconds). 找到 `scoreboard players set @a INTERVALSWEEP 120` 这一行,将 `120` 改为你想要的间隔秒数。 * Reload / 重载: Run `/reload` in-game. 在游戏中运行 `/reload`。
---
❓ Support / 支持
Report issues or view source code on GitHub. 在 GitHub 报告问题或查看源代码。