跳到正文

Item Sweep

作者:Qiufeng

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

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

🧹 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 报告问题或查看源代码。

常见问题

Item Sweep 支持哪些 Minecraft 版本?

Item Sweep 支持 Minecraft Java 版 1.13–1.21.11,共 46 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Item Sweep 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

Qiufeng 的其他作品

查看全部 →