Sylcurity
基于 Polymer 的安全模组。

警告!!!!! 此模组仅用几天时间开发完成,因此在更新一段时间之前,不要期待它能达到完美的状态。
使用方法
服务器管理员
只需将此模组放入 mods 文件夹即可正常运行。不过,若要为事件接收器(以及未来带纹理的方块/物品)应用自定义纹理,还需安装 Polymer 并配置 资源包托管。
该模组应在 1.21.6 版本发布后能与 Geyser 玩家正常兼容,但由于基岩版表单的限制,对话框显示可能会略显怪异。
普通玩家
请参阅下方的功能介绍。你很可能需要先从一台安全终端和一个活动日志开始使用。
功能
安全终端
与安全终端交互时,会打开一个 GUI 界面,允许你访问网络上的摄像头。当终端被打开时,它会向其所在的所有组广播 Security Access(安全访问)事件。
活动日志
活动日志用于记录网络中的事件(只要它位于已加载的区块中)。它会接收其所在所有组传来的事件。
摄像头
摄像头支持远距离视觉监控,但只有当其所在的区块处于加载状态时才可访问。即使玩家已被访问终端信任,也只有受信任的玩家才能访问摄像头。
由于旁观者模式的机制差异,基岩版玩家在使用摄像头时会遇到问题。
玩家探测器
玩家探测器的作用类似于无形的绊线,范围为 32 格。它不会穿透方块或受信任的玩家(详见下文)。它拥有 16 个旋转状态,并在放置时根据当前角度进行检测。当一名非受信任的玩家进入其视野时,它会发出 Player Detection(玩家检测)事件,并将其所在的所有组都会收到该事件。
事件接收器
当事件接收器接收到其配置的事件时,会输出红石信号。它会接收其所在所有组传来的事件。
机制
受信任玩家
每个设备都会维护一份受信任玩家列表,这些玩家可以与该设备交互或被其忽略。
事件/消息
目前仅有两种事件:Security Access(安全访问)和 Player Detection(玩家检测)。设备会将其事件发送给其所在所有组中的每一台设备;同样地,设备也会从其所在所有组中接收消息。(这意味着如果你有两台设备同时属于相同的两个组,它们将发送/接收两次消息)
摄像头
使用摄像头的玩家会被传送至摄像头位置,进入假装的“旁观者”状态,同时由一个替身 NPC 取代他们的位置。玩家可以蹲下以退出摄像头视角。当 NPC 受到伤害时,会将玩家踢出摄像头,并按预期施加伤害。玩家在查看摄像头期间无法与任何方块或实体交互,也无法移动摄像机视角。模组会尽力防止在服务器崩溃期间发生任何传送或状态残留,但如果崩溃过于严重,仍可能发生这种情况。(简而言之,如果服务器耻辱地崩溃了,玩家可能会被传送至他们正在使用的摄像头处。)
Sylcurity
Polymer-based security mod.

WARNING!!!!! This mod was made in a few days, so don't expect immediate perfection until it's been updated for a while.
Usage
For server owners
Simply drop this mod into the mods folder and it will work as expected. However, custom textures for the Event Receiver (and future textured blocks/items) can be applied by also installing Polymer and configuring resource pack hosting.
The mod should work fine with Geyser players once 1.21.6 is released, though dialogs will be a bit weird due to Bedrock form limitations.
For players
See the features section below. You'll probably want to start with a Security Terminal and an Activity Log.
Features
Security Terminal
The security terminal, when interacted with, opens a GUI that gives access to cameras on your network. It will emit a Security Access event on all groups it is in when opened.
Activity Log
The activity log keeps track of events on the network (as long as it is in loaded chunks). It will receive events from any group it is in.
Camera
The camera allows for long-range visual monitoring, though it is only accessible when the chunk it's in is loaded. Only players that are trusted can access the camera, even if they are trusted by the access terminal.
Bedrock players will face issues using them due to differences in spectator mechanics.
Player Detector
The player detector works like an invisible tripwire with a range of 32 blocks. They do not go through blocks or trusted players (more on that later). They have 16 rotation states and will detect on the angle they are placed at. They emit a Player Detection event when a player enters its line of sight that is not trusted, and all groups it is in will receive it.
Event Receiver
The event receiver will emit a redstone signal when it receives the event it is configured for. It will receive events from any group it is in.
Mechanics
Trusted Players
Each device keeps a list of trusted players which can interact with it/be ignored by it.
Events/Messages
Currently there are only two events, Security Access and Player Detection. Devices will send their events to every device in every group they are in, and likewise devices will receive messages from any group they are in. (this means if you have two devices both in the same two groups, they will send/receive messages twice)
Cameras
Players using a camera will be teleported to the camera in a fake "spectator" state while a stand-in NPC takes their place. Players may crouch to exit the camera. When the NPC is damaged, it will kick the player out of the camera and apply the damage as expected. The player is not allowed to interact with any blocks or entities while using the camera, nor can they move their camera. The mod tries its best to prevent any teleportation or state persistence if the server crashes mid-camera-view, but it may happen anyway if the crash is severe enough. (tl;dr, if the server crashes disgracefully the player may be teleported to the camera they are using.)
评论 0
登录后参与评分
还没有评论,来抢沙发吧