
此前名为 “Screw_SubAnomaly1”。
实体一生成便自动消失!基于你自行编写的 JSON 规则。
最初旨在移除 TheBrokenScript 的 SubAnomaly1,现已成为通用的实体过滤器!
功能
基于规则的移除。 每条规则都是一个 JSON 文件,列出适用的实体及其生效维度。实体一旦加入世界即被丢弃。
指定实体或标签。 可在同一条规则中列出具体实体(minecraft:creeper)、实体标签(#minecraft:raiders)或两者兼有。
按维度或全局生效。 将 dimensions 留空则规则在所有维度生效;填写后则仅在指定维度内触发。
即插即用规则文件。 规则存放在 config/sym/rules/(全局)或 <world>/serverconfig/sym_rules/(按世界)。编辑 JSON 后运行 /sym reload 即可,无需重启服务器。
游戏内规则编辑器。 输入 /sym 或 /symrules 打开图形界面。无需触碰文件系统即可添加、移除、重命名、启用、禁用并验证规则。
实时验证。 加载时,系统会将实体 ID、标签和维度与注册表进行比对。未知条目会基于编辑距离(Levenshtein)给出“你是指……吗?”的提示。缺失模组命名空间的情况会单独报告。
保留列表。 完全豁免特定实体不被移除,无论任何规则如何规定。在批量清除期间也会跳过已命名的怪物和驯服的动物。
服务端同步。 在多人游戏中,规则会从服务器同步到客户端,以便编辑器显示真实状态。编辑操作受权限限制(需 op 等级 2),且修改会往返通过服务器确认。
调试通道。 可选的日志记录,涵盖移除操作、规则错误、验证结果和重载过程。输出可发送至控制台、聊天栏和/或 config/sym/debug.log,各项均可独立开关。

命令
所有命令均需 op 等级 2。
| 命令 |
功能 |
/sym |
打开规则编辑器(仅限单人 / LAN) |
/symrules |
编辑器的客户端别名(用于专用服务器) |
/sym list |
列出已加载的规则 |
/sym reload |
重新读取规则文件并同步至客户端 |
/sym stats |
查看规则与实体数量统计 |
/sym validate |
显示验证警告信息 |
/sym debug |
查看或设置调试通道状态 |
依赖
- NeoForge for Minecraft 1.21.1,至少版本 21.1.100
示例规则(也可在 config/sym/rules/_example.json 中找到)
{
"_comment": "复制此文件并重命名。如需删除 _comment 字段也可一并移除。",
"_comment2": "空的 'dimensions' 列表表示该规则适用于所有维度。",
"_comment3": "也支持类似 '#minecraft:raiders' 的标签。",
"entities": [
"minecraft:creeper",
"minecraft:skeleton",
"#minecraft:raiders"
],
"dimensions": [
"minecraft:overworld"
]
}
空的 dimensions 列表表示该规则适用于所有维度。将文件名以 _ 开头即可禁用该规则。

Previously known as "Screw_SubAnomaly1".
Automatically despawns entities the moment they spawn! Based on JSON rules you write yourself.
Originally built to remove TheBrokenScript's SubAnomaly1, now a general-purpose entity filter!
Features
Rule-based removal. Each rule is a JSON file listing entities and the dimensions it applies to. Entities are discarded the instant they join the world.
Entities or tags. List specific entities (minecraft:creeper), entity tags (#minecraft:raiders), or both in the same rule.
Per-dimension or global. Leave dimensions empty and the rule applies everywhere. Fill it in and it only fires in those dimensions.
Drop-in rule files. Rules live in config/sym/rules/ (global) or <world>/serverconfig/sym_rules/ (per-world). Edit the JSON, run /sym reload, done. No restart.
In-game rule editor. /sym, /symrules open a GUI. Add, remove, rename, enable, disable, and validate rules without touching the filesystem.
Live validation. On load, entity IDs, tags, and dimensions are checked against the registry. Unknown entries get flagged with a "did you mean…?" suggestion based on edit distance (Levenshtein). Missing mod namespaces are reported separately.
Keep list. Exempt specific entities from removal entirely, regardless of what any rule says. Also skips named mobs and tamed animals during bulk purge.
Server-side sync. On multiplayer, rules are synced from server to client so the editor shows the real state. Edits are permission-gated (op level 2) and round-trip through the server.
Debug channels. Optional logging for removals, rule errors, validation, and reloads. Output goes to console, chat, and/or config/sym/debug.log, each toggled independently.

Commands
All require op level 2.
| Command |
What it does |
/sym |
Open the rule editor (singleplayer / LAN only) |
/symrules |
Client-side alias for the editor (used for dedicated servers) |
/sym list |
List loaded rules |
/sym reload |
Re-read rule files and re-sync to clients |
/sym stats |
Rule and entity counts |
/sym validate |
Show validation warnings |
/sym debug |
Show or set debug channel state |
Requirements
- NeoForge for Minecraft 1.21.1, at least version 21.1.100
Example rule (also available in config/sym/rules/_example.json)
{
"_comment": "Copy this file and rename it. Delete the _comment fields if you want to.",
"_comment2": "Empty 'dimensions' list means the rule applies in ALL dimensions.",
"_comment3": "Tags like '#minecraft:raiders' are also supported.",
"entities": [
"minecraft:creeper",
"minecraft:skeleton",
"#minecraft:raiders"
],
"dimensions": [
"minecraft:overworld"
]
}
An empty dimensions list means the rule applies in every dimension. Rename the file to start with _ to disable a rule.
评论 0
登录后参与评分
还没有评论,来抢沙发吧