功能
Freecam 模组允许玩家独立于角色主体移动摄像机。这在截图、建造和管理方面非常有用,但在服务器上使用时,如果玩家利用它观察或穿过通常由方块碰撞限制的区域,则可能带来问题。
AntiFreecam evolved 针对这一特定行为进行了处理:
- 服务器注册一个自定义的配置载荷(configuration payload)。
- 在连接建立阶段,服务器要求客户端必须安装此 AntiFreecam 模组。
- 服务器向客户端发送设置
forceCollision=true。
- 客户端在当前连接期间保存该服务器设置。
- 如果安装了 Freecam 模组,一个 mixin 会挂钩其配置。
- 即使 Freecam 通常会禁用方块碰撞,此时方块碰撞仍保持激活状态。
目标并非完全禁止使用 Freecam。摄像机仍然可以使用。该模组仅确保在需要强制执行碰撞的服务器上,Freecam 不会使用已禁用的方块碰撞。
起源
本项目基于 Kesuaheli 的 AntiFreecam 的原始想法和功能。这个衍生版本使该行为能够在较新版本的 Minecraft、Fabric 以及 Freecam 上正常工作。
错误报告
发现了 bug?请阅读发帖指南,并在我们的 Discord 错误报告论坛 提交你的报告。
Functionality
Freecam mods allow players to move the camera independently from the player body. This is useful for screenshots, building, and administration, but it can be problematic on servers when players use it to look into or move through areas that are normally limited by block collisions.
AntiFreecam evolved addresses that specific behavior:
The server registers a custom configuration payload.
During connection setup, the server requires the client to have this AntiFreecam mod installed.
The server sends the client the setting forceCollision=true.
The client stores this server setting for the current connection.
If the Freecam mod is installed, a mixin hooks into its configuration.
Block collisions then remain active in Freecam, even when Freecam would normally disable them.
The goal is not to ban Freecam completely. The camera can still be used. The mod only ensures that Freecam does not use disabled block collisions on servers that require collision enforcement.
Origin
This project is based on the original idea and functionality of Kesuaheli's AntiFreecam. This derived version keeps that behavior working on newer Minecraft, Fabric, and Freecam versions.
Bug Reports
Found a bug? Please read the posting guidelines and submit your report in our Discord bug report forum.
评论 0
登录后参与评分
还没有评论,来抢沙发吧