Item Sweep
ModMIT

Item Sweep

This project adds a feature to Minecraft that automatically clears dropped items at set intervals.

50
Downloads
0
Followers
2 months ago
Updated
📦
2
Versions

📖About Item Sweep

🧹 Item Sweep

Automatic item clearing for Minecraft. Choose your format.
Minecraft 自动清理工具,提供两种形式。


✨ Features / 特点

  • Two Formats / 两种形式:
    • Fabric Mod / 模组版: Configure the cleanup interval in-game with /gamerule sweepintervalseconds <秒数>. / 可在游戏内/gamerule sweepintervalseconds <秒数> 配置清理间隔。
    • Vanilla Datapack / 数据包版: No mod loader needed. Configure by editing a number in a file. / 无需模组加载器,通过编辑文件中的一个数字来配置。
  • Automatic / 自动: Cleans up item entities every 120 seconds by default. / 默认每120秒清理一次掉落物。
  • Lightweight / 轻量: Minimal performance impact. / 对性能影响极小。

🚀 Installation & Configuration / 安装与配置

For the Fabric Mod / 安装模组版

  1. Install / 安装: 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 Vanilla Datapack / 安装数据包版

  1. Install / 安装: Get the .zip from "Files" tab, put it in your world's datapacks folder.
    从 “Files” 标签页获取 .zip 文件,放入世界存档的 datapacks 文件夹。
  2. Configure (Optional) / 配置 (可选)
    • Locate the file / 找到文件: Inside the datapack, open data/item_sweep/functions/load.mcfunction.
      在数据包内,打开 data/item_sweep/functions/load.mcfunction 文件。
    • Edit / 编辑: 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 报告问题或查看源代码。