让你的 Minecraft 服务器运行更流畅!?
本模组会自动清理你 Minecraft 服务器中的实体以防止卡顿。它会按照你配置的固定间隔执行此操作。你还可以通过命令启用/禁用自动清理并重置计时器。
⚙️ 工作原理?
“Custom Clear Lag”模组在服务器后台运行。以下是关键步骤:
- ? 配置: 当首次安装该模组启动服务器时,会在
config/oas_work/文件夹中创建一个名为clear_lag.json的配置文件。 - ? 读取配置文件: 模组会读取这个
clear_lag.json文件以获取以下信息:- ⏱️
time: 距离下次清理应经过多少分钟(默认为 5 分钟)。 - ?
command: 应执行哪个命令来进行清理(默认为kill @e,即杀死所有实体,请小心使用!)。
- ⏱️
- ⏳ 倒计时: 模组会统计游戏中流逝的时间。
- ? 自动清理: 一旦达到配置的时间,模组将执行配置文件中定义的命令。清理完成后,时间计数器重置并重新开始。
? 如何使用?
-
?️ 配置(可选但强烈推荐**):**
- ? 定位配置文件: 前往服务器的
config/oas_work/文件夹,并使用文本编辑器打开clear_lag.json文件。 - ✏️ 修改设置:
"time": 5,将5更改为每次清理之间期望的分钟数(例如,10代表 10 分钟)。"command": "kill @e"⚠️ 非常重要: 默认命令kill @e会杀死 所有 实体(地上的物品、动物、玩家……)。你必须将其更改为更具针对性的清理命令。 例如:"/kill @e[type=!minecraft:player,distance=500]"(杀死除玩家以外的所有实体,且距离超过 500 格——请根据你的服务器进行调整)。/minecraft:kill @e[type=!player,tag=!keep](需要标签来保护某些实体,更高级)。
- ? 保存
clear_lag.json文件。? 更改立即生效,无需重启服务器!
- ? 定位配置文件: 前往服务器的
-
?️ 游戏内命令(仅限服务器管理员):
打开服务器控制台或游戏内聊天(如果你是管理员),并使用命令:
/cclearlag-
/cclearlag stop <true/false>:/cclearlag stop true? 停止自动清理。/cclearlag stop false✅ 重新激活自动清理。
-
/cclearlag reset <true/false>或/cclearlag reset:- ? 重置计时器。 到下次清理的倒计时将从零开始重新计算。此处
true/false参数无效,只有reset有效。
- ? 重置计时器。 到下次清理的倒计时将从零开始重新计算。此处
-
? 重要提示:
- ? 托管兼容性: 本模组适用于所有类型的 Minecraft Forge/NeoForge 服务器。
- ? 权限: 只有服务器管理员(等级 4)才能使用
/cclearlag命令。 - ⚠️ 必要配置: 务必更改
clear_lag.json中的默认kill @e命令! 请使用更适合你服务器的命令,以避免删除重要实体(如玩家、驯服动物等)。 - ? 即时生效: 对
clear_lag.json文件的修改会立即应用,无需重启服务器。
? 我们正在招募法语使用者! 想为更多出色的 Minecraft 模组和项目做出贡献吗?我们需要会说法语的人加入我们的团队。如需更多信息,请通过电子邮件联系:persodreykaoas@gmail.com
Keep Your Minecraft Server Smooth! ?
This mod automatically cleans up entities on your Minecraft server to prevent lag. It does this at regular intervals that you can configure. You can also enable/disable and reset the timer with a command.
⚙️ How does it work?
The "Custom Clear Lag" mod works in the background on your server. Here are the key steps:
- ? Configuration: When the server starts for the first time with the mod installed, a configuration file named
clear_lag.jsonis created in theconfig/oas_work/folder. - ? Reading the configuration file: The mod reads this
clear_lag.jsonfile to find out:- ⏱️
time: After how many minutes the cleanup should be performed (default is 5 minutes). - ?
command: Which command should be executed for the cleanup (default iskill @ewhich kills all entities, be careful!).
- ⏱️
- ⏳ Countdown: The mod counts the time elapsed in the game.
- ? Automatic Cleanup: Once the configured time has elapsed, the mod executes the command defined in the configuration file. After the cleanup, the time counter is reset and starts again.
? How to use it?
-
?️ Configuration (optional but recommended):
- ? Locate the configuration file: Go to the
config/oas_work/folder of your server and open theclear_lag.jsonfile with a text editor. - ✏️ Modify the settings:
"time": 5,Change5to the desired number of minutes between each cleanup (e.g.,10for 10 minutes)."command": "kill @e"⚠️ VERY IMPORTANT: The default commandkill @ekills ALL entities (items on the ground, animals, players...). You MUST change it to a more targeted cleanup command. For example:"/kill @e[type=!minecraft:player,distance=500]"(Kills all entities except players, more than 500 blocks away - adapt to your server)./minecraft:kill @e[type=!player,tag=!keep](Requires tags to protect certain entities, more advanced).
- ? Save the
clear_lag.jsonfile. ? Changes are applied immediately, no server restart needed!
- ? Locate the configuration file: Go to the
-
?️ In-game commands (for server operators):
Open the server console or the in-game chat (if you are an operator) and use the command:
/cclearlag-
/cclearlag stop <true/false>:/cclearlag stop true? Stops automatic cleanup./cclearlag stop false✅ Reactivates automatic cleanup.
-
/cclearlag reset <true/false>or/cclearlag reset:- ? Resets the timer. The countdown to the next cleanup will restart from zero. The
true/falseargument has no effect here, onlyresetmatters.
- ? Resets the timer. The countdown to the next cleanup will restart from zero. The
-
? Important Points:
- ? Hosting Compatibility: This mod works on all types of Minecraft Forge/NeoForge servers.
- ? Permissions: Only server operators (level 4) can use the
/cclearlagcommand. - ⚠️ Essential Configuration: Absolutely change the default
kill @ecommand inclear_lag.json! Use a more suitable command for your server to avoid deleting important entities (players, tamed animals, etc.). - ? Instant Changes: Modifications to the
clear_lag.jsonfile are applied immediately, without restarting the server.
? We're Recruiting French Speakers! Want to contribute to more awesome Minecraft mods and projects? We are looking for people who can speak French to join our team. For more information, please reach out via email: persodreykaoas@gmail.com
下载 Custom Clear Lag
下载 Custom Clear Lag
下载 Custom Clear Lag
下载 Custom Clear Lag
下载 Custom Clear Lag
下载 Custom Clear Lag
下载 Custom Clear Lag
下载 Custom Clear Lag
下载 Custom Clear Lag
下载 Custom Clear Lag
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
评论 0
登录后参与评分
还没有评论,来抢沙发吧