Structural Safety
有时你希望玩家清理地牢并拿走战利品,而不必把整个地方都挖空。这就是 Structural Safety 的用途。
你可以决定玩家在受保护区域内可以破坏、放置和交互的内容。他们保持生存模式,像往常一样与怪物战斗,并能打开你允许开启的战利品箱。规则在他们进入受保护区域时生效。服务器负责处理保护逻辑,因此玩家可以使用原版客户端加入。
可保护的对象
此功能适用于村庄、矿井(Mineshafts)、要塞(Strongholds)、试炼密室(Trial Chambers)、远古城市(Ancient Cities)、林地府邸(Woodland Mansions)、掠夺者前哨站(Pillager Outposts)、海底神殿(Ocean Monuments)、沙漠神殿和丛林神庙、下界要塞(Nether Fortresses)、堡垒遗迹(Bastion Remnants)、末地城(End Cities)以及模组结构。你可以选择要保护哪些类型,并为每种类型单独设置。
某些地点是作为“特性”(features)生成的。经典的刷怪室(包含一个刷怪笼和几个战利品箱)就是一个例子。Structural Safety 也能找到并保护这些房间。
受保护区域的形状很重要。对于村庄,你可以覆盖道路和房屋之间的空间。对于地下有房间的建筑物,你可以向下扩展保护范围。这样你就可以覆盖沙漠金字塔下方的宝藏室。
挖掘、交互与放置
你可能希望玩家能剪断矿井中的蜘蛛网,收割村庄里的农作物,而在冒险地图的地牢中则让所有方块保持原状。每个结构或特性都可以针对破坏方块、使用方块、临时放置和永久放置设置独立的规则。
- 继承(Inherit):使用上一级的列表。一种结构类型可以使用共享列表,而单个地点可以使用其类型的规则。
- 扩展(Extend):保留该列表并添加你选择的条目。
- 替换(Replace):仅使用你自己的列表。
- 无(None):在规则下禁用此类操作。
允许的方块使用正常左键点击进行挖掘。Minecraft 负责处理破坏进度、工具、挖掘速度、耐久度、附魔、掉落物以及破坏事件。你还可以要求玩家在挖掘允许的方块时按住潜行键。
对于交互操作,你可以允许访问容器、门、拉杆、红石组件、可刷新的方块以及其他你选择的方块。双层战利品箱的两半都必须允许访问。如果访问权限在容器打开期间过期或发生变化,服务器会关闭它。
临时方块
火把可以停留足够长的时间让你通过地牢,随后消失。设置计时器,并选择过期的方块是被移除还是按照 Minecraft 的正常掉落方式被破坏。服务器会在重启之间记住临时放置状态,并在区块加载时处理过期情况。
使用永久列表来放置那些希望留在原地的物品,例如梯子。当有人放置门或床时,会检查其占据的所有方块。桶会在实际吸取流体、倾倒流体或使方块水logged的位置进行检查。
环境保护
- 爆炸(Explosions):可以阻止受保护方块被破坏,包括来自苦力怕(Creepers)和 TNT 的爆炸。
- 火焰(Fire):保护涵盖引燃和火焰蔓延。
- 熔岩(Lava):阻止熔岩流入受保护方块,并检查发射器释放的熔岩。
- 活塞(Pistons):尊重其移动的方块、这些方块最终到达的位置以及沿途可能摧毁的任何方块的保护状态。
爆炸、火焰和熔岩保护拥有独立的设置。还有一个 TNT 陷阱设置。启用后,在受保护区域内被点燃的 TNT 和 TNT 矿车可以对该区域造成损害。其他在爆炸范围内受到波及的受保护区域仍会应用它们自己的规则。
为某个结构或房间赋予独立规则
前往 Tools → Edit site 以更改特定结构或特性。你可以在那里开启或关闭保护,为其分配独立规则,预览其边界,或将其重置为该类型的默认设置。
要为某个房间赋予独立规则,请在站点内标记两个角点并创建一个命名的 zone(区域)。你可以关闭菜单去定位第二个角点,然后继续之前的操作。在保存之前,使用粒子效果预览边界。当受保护区域重叠时,每个区域都必须允许该操作。
如果有人需要修缮村庄或为活动准备地牢,你可以给予该玩家针对某个站点的 限时访问权限 以进行破坏、放置和交互。选择一名在线玩家,设置持续时间,如果需要可以随时提前撤销。其他重叠的站点仍会应用它们的规则。
对于冒险地图,数据包触发器(data pack triggers) 可以开启或关闭区域的额外保护。在区域菜单中设置触发器,然后在对应维度的函数中调用 structuralsafety admin site trigger 后跟触发器 ID。你可以用它来在玩家完成目标后解除奖励房间的额外规则。数据包还可以使用 structuralsafety:protected 标签标记待保护的结构类型。
游戏内菜单
运行 /structuralsafety menu 来选择要保护的内容、编辑列表、设置计时器和管理站点。库存菜单可与原版客户端配合使用。客户端安装了 Structural Safety 的管理员可以使用带有可搜索列表的原生设置界面。运行 /structuralsafety menu vanilla 可直接打开库存菜单。
你可以在专用服务器、局域网世界和单人游戏中实时管理设置。单人世界所有者可以在关闭作弊的情况下使用菜单。
预设和可复用的规则
- Vanilla-Friendly(原版友好):从标准的挖掘和放置列表开始,允许玩家通过正常左键点击挖掘允许的方块。
- Anti-Grief(防破坏):要求对允许的挖掘操作按住潜行键,并清除共享的永久放置列表。
- Strict(严格):清除共享的挖掘和永久放置列表,并将临时放置限制为灯光类方块。
- Adventure Map(冒险地图):从空的共享挖掘和放置列表开始,同时保留常见的交互操作,如开门和使用容器。
你可以调整任意预设。如果你满意在某一处设置的规则,可以将其保存为命名配置。你可以预览更改,并将该配置应用于多种结构或特性类型、选定的地点或单个区域。规则历史记录涵盖共享列表、类型规则、地点规则和区域规则,并提供用于撤销和重做的预览功能。
玩家视角
/structuralsafety info 显示你所在区域的名称和 ID、是结构还是特性、以及使用的破坏规则。它会列出你可以在那里挖掘的方块,包括区域重叠时的共享结果。它还会显示是否需要潜行、共享的交互和放置列表,以及临时方块的计时器和过期行为。
你可以开启或关闭进出提示、拒绝消息、音效、逃脱提示和临时方块反馈。/structuralsafety info 的聊天提示拥有独立设置。当某个动作被阻止时,动作栏会告知玩家是哪个区域阻止了该动作、是否需要潜行,或者是否需要不同的工具。
如果你被困住,/structuralsafety escape 会尝试将你上次附近的可用安全点作为逃生目标。它也可以在已加载的地形中搜索安全位置。冷却时间可配置,即使重新连接也会继续生效。
已有世界与管理工具
Structural Safety 可以在区块加载时自动发现现有的原版怪物房。新生成的支持特性会按维度记录并保存,因此服务器重启后仍能记住它们的位置。管理员可以启动扫描、检查进度或取消扫描。扫描以小批量方式运行,且仅作用于已加载的区块。
/structuralsafety help显示可用的命令。/structuralsafety inspect允许管理员查看哪些区域和规则允许或阻止了挖掘、放置或交互。/structuralsafety preview使用原版粒子效果绘制检测到的保护边界。/structuralsafety diagnostics显示查询耗时、允许和拒绝的动作、扫描进度、追踪的临时方块,以及审计日志和配置的状态。
你可以将特定工具的访问权限授予版主,例如检查、诊断或测试功能。审计日志会在后台记录保护活动并自动轮换。如果配置重载时发现无效值,它会报告该设置、备份被拒绝的文件,并保持之前的设置生效。此外还提供修复工具以解决常见的配置问题。
如果你在打包整合包或排查服务器故障,技术测试模式 提供启动自检和引导式测试场景。它在内存中创建临时的结构和特性区域,让你能够使用模组在世界中实际运行相同的规则来尝试挖掘、放置、反馈和逃脱。测试模式在开发版本中默认启用,你也可以在需要时在服务器上手动开启。
由 MrStilu2k6 制作
在规则或受保护区域方面需要帮助?在 Discord 上提问。如果你发现了错误或对模组有改进建议,在 CurseForge 上留言。
我在 CurseForge 上的其他模组 · 通过 PayPal 支持我的工作
Structural Safety
Sometimes you want people to clear a dungeon and take the loot without mining out the whole place. That’s what Structural Safety is for.
You decide what players can break, place, and interact with inside protected areas. They stay in Survival, fight mobs as usual, and can open the chests you allow. The rules kick in when they enter a protected area. The server handles protection, so players can join with a vanilla client.
What you can protect
This works with villages, mineshafts, Strongholds, Trial Chambers, Ancient Cities, Woodland Mansions, Pillager Outposts, Ocean Monuments, desert and jungle temples, Nether Fortresses, Bastion Remnants, End Cities, and modded structures. You can choose which types to protect and set up each one separately.
Some places are generated as features. The classic monster room with a spawner and a couple of loot chests is one example. Structural Safety can find and protect those rooms too.
The shape of the protected area matters. For villages, you can cover the paths and spaces between houses. For structures with rooms below ground, you can extend protection downwards. That’s how you can cover the treasure chamber beneath a desert pyramid.
Mining, interactions, and placement
You might want players to cut cobwebs in a mineshaft, harvest crops in a village, and leave every block in an adventure map’s dungeon alone. Each structure or feature can have separate rules for breaking blocks, using blocks, temporary placement, and permanent placement.
- Inherit uses the list from the level above. A structure type can use the shared list, and an individual site can use the rules for its type.
- Extend keeps that list and adds the entries you pick.
- Replace uses only your own list.
- None turns off that kind of action under the rule.
Allowed blocks use normal left-click mining. Minecraft handles break progress, tools, mining speed, durability, enchantments, drops, and break events. You can also require players to sneak when mining allowed blocks.
For interactions, you can allow containers, doors, levers, redstone components, brushable blocks, and other blocks you pick. Both halves of a double chest have to allow access. If access expires or changes while a container is open, the server closes it.
Temporary blocks
A torch can stay long enough to get you through a dungeon and disappear later. Set the timer and choose whether expired blocks are removed or broken with normal Minecraft drops. The server remembers temporary placements across restarts and handles expiry when their chunks are loaded.
Use the permanent list for things you want to stay in place, like ladders. When someone places a door or bed, every block it occupies is checked. Buckets are checked at the actual spot where they pick up fluid, pour it, or waterlog a block.
Environmental protection
- Explosions can be blocked from breaking protected blocks, including explosions from Creepers and TNT.
- Fire protection covers ignition and fire spread.
- Lava protection stops lava from flowing into protected blocks and checks lava released by dispensers.
- Pistons respect protection at the blocks they move, where those blocks would end up, and anything they would destroy along the way.
Explosion, fire, and lava protection have separate settings. There’s also a TNT trap setting. With it enabled, TNT and TNT minecarts ignited inside a protected area can damage that area. Other protected areas caught in the blast still apply their own rules.
Give one structure or room its own rules
Go to Tools → Edit site to change one particular structure or feature. You can turn protection on or off there, give it its own rules, preview its bounds, or reset it to the settings for its type.
To give a room its own rules, mark two corners inside the site and create a named zone. You can close the menu to get to the second corner and pick up where you left off. Preview the bounds with particles before saving. Where protected areas overlap, each one has to allow the action.
If someone needs to fix up a village or prepare a dungeon for an event, you can give that player timed access to break, place, and interact at one site. Pick an online player, set the duration, and revoke it early if you need to. Other sites that overlap still apply their rules.
For adventure maps, data pack triggers can turn a zone’s extra protection on or off. Set up the trigger in the zone menu, then call structuralsafety admin site trigger followed by the trigger ID from a function in that dimension. You could use it to lift the extra rules on a reward room after a player completes an objective. Data packs can also mark structure types for protection with the structuralsafety:protected tag.
The in-game menu
Run /structuralsafety menu to choose what to protect, edit the lists, set timers, and manage sites. The inventory menu works with vanilla clients. Admins with Structural Safety on their client can use a native settings screen with searchable lists. Run /structuralsafety menu vanilla to open the inventory menu directly.
You can manage the settings live on dedicated servers, in LAN worlds, and in singleplayer. Singleplayer world owners can use the menu with cheats turned off.
Presets and reusable rules
- Vanilla-Friendly starts with the standard lists for mining and placement and lets players mine allowed blocks with a normal left click.
- Anti-Grief requires sneaking for allowed mining and clears the shared permanent placement list.
- Strict clears the shared mining and permanent placement lists and limits temporary placement to lights.
- Adventure Map starts with empty shared mining and placement lists while keeping common interactions such as opening doors and containers available.
You can tweak any preset. If you like the rules you’ve set up in one place, save them as a named profile. You can preview the changes and apply the profile to several structure or feature types, selected sites, or an individual zone. The rule history covers shared lists, type rules, site rules, and zone rules, with previews for undo and redo.
What players see
/structuralsafety info shows the name and ID of the area you’re in, whether it’s a structure or feature, and which break rule it uses. It lists the blocks you can mine there, including the shared result when areas overlap. It also shows whether you need to sneak, the shared interaction and placement lists, and the temporary block timer and expiry behavior.
You can turn entry and exit messages, denial messages, sounds, escape hints, and temporary block feedback on or off. The chat hint for /structuralsafety info has its own setting. When an action is blocked, the action bar can tell the player which area blocked it, whether they need to sneak, or whether they need a different tool.
If you get stuck, /structuralsafety escape tries your last nearby safe spot if it’s still usable. It can also look for a safe place in loaded terrain. The cooldown is configurable and still applies if you reconnect.
Existing worlds and admin tools
Structural Safety can find existing vanilla monster rooms as their chunks load. Newly generated supported features are recorded and saved per dimension, so the server remembers their locations after a restart. Admins can start a scan, check its progress, or cancel it. Scans work in small batches and stay within chunks that are already loaded.
/structuralsafety helpshows the available commands./structuralsafety inspectlets admins see which area and rule allowed or blocked mining, placement, or interaction./structuralsafety previewdraws the detected protection boundaries with vanilla particles./structuralsafety diagnosticsshows lookup timings, allowed and denied actions, scan progress, tracked temporary blocks, and the state of the audit log and configuration.
You can give moderators access to individual tools, such as inspection, diagnostics, or testing. The audit log records protection activity in the background and rotates automatically. If a config reload finds a bad value, it reports the setting, backs up the rejected file, and keeps the previous settings active. There’s also a repair tool for common configuration problems.
If you’re putting together a modpack or troubleshooting a server, technical test mode gives you startup self-tests and a guided test scenario. It creates temporary structure and feature areas in memory so you can try mining, placement, feedback, and escape with the same rules the mod uses in the world. Test mode is enabled by default in development runs and can be turned on when you need it on a server.
Made by MrStilu2k6
Need a hand with a rule or a protected area? Ask on Discord. If you’ve found a bug or have an idea for the mod, leave a comment on CurseForge.
My other mods on CurseForge · Support my work on PayPal
下载 Structural Safety
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Structural Safety
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Structural Safety
下载 Structural Safety
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Structural Safety
下载 Structural Safety
下载 Structural Safety
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Structural Safety
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Structural Safety
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Structural Safety
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
Structural Safety 2.0.1
加载器兼容性
- Forge: 62.0.0 或更高版本(已测试至 62.0.9)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧