关于
RayTraceAntiFreeCam 是一款轻量级的反自由视角(anti-freecam)保护插件,可防止玩家与他们在正常情况下无法触及或“看到”的方块进行交互。
重要提示
本插件 不会检测或阻止 客户端移动其摄像机(即不限制自由视角本身的移动)。
相反,它通过射线追踪/视线检查验证目标方块是否确实可以从玩家的视点位置进行交互,从而阻止 非法的方块交互(如打开、点击、破坏、放置等)。
功能
- 阻止“穿墙”交互
- 防止透过方块打开容器(箱子、 barrels、潜影盒等)。
- 防止透过墙壁使用按钮、拉杆、门、活板门等。
- 阻止非法破坏方块
- 通过交互过滤阻止非法建造/放置
- 拒绝依赖穿过障碍物点击方块的放置尝试(通过点击验证处理)。
- 感知有效距离
- 使用玩家的实际交互范围属性(如有),并应用可配置的限制。
- 优化稳定性
- 避免由于 yaw/pitch 不同步导致的“随机”误报,不依赖玩家的确切视角方向。
- 使用短期缓存,确保在挖掘或按住鼠标按键期间决策的一致性。
权限
raytraceantifreecam.bypass - 绕过所有检查。默认:OP。
配置文件 (config.yml)
# 允许的最大交互距离(硬性上限)。
# 类型:double | 典型值:5.0–6.0
max-reach: 6.0
# 添加到交互距离的额外容差,以减少边缘情况下的误拦截(角落/近距离/不同步)。
# 类型:double | 典型值:0.25–1.0
extra-reach: 0.75
# 上一个玩家+方块决策的缓存持续时间(毫秒),以防止在挖掘或按住鼠标按键时出现闪烁。
# 类型:long | 典型值:100–250
cache-ttl-ms: 175
check:
# 验证方块交互(对方块右键/左键:打开/使用/激活)。
# 类型:boolean
interact: true
# 验证方块破坏(挖掘)。
# 类型:boolean
break: true
About
RayTraceAntiFreeCam is a lightweight anti-freecam protection plugin that prevents players from interacting with blocks they should not be able to reach or “see” legitimately.
Important Note
This plugin does not detect or prevent the client from moving its camera (freecam movement itself).
Instead, it blocks illegitimate block interactions (opening, clicking, breaking, placing, etc.) by validating that the target block is actually interactable from the player’s eye position using a ray-trace / line-of-sight style check.
Features
- Blocks “through-wall” interactions
- Prevents opening containers (chests, barrels, shulkers, etc.) through blocks.
- Prevents using buttons, levers, doors, trapdoors, etc. through walls.
- Prevents illegitimate block breaking
- If the block is not realistically reachable/visible, breaking is cancelled.
- Prevents illegitimate building/placing via interaction filtering
- Placement attempts that rely on clicking blocks through obstacles are denied (handled via click validation).
- Reach-aware
- Uses the player’s real interaction range attribute (when available) and applies configurable limits.
- Optimized for stability
- Avoids “random” false positives caused by yaw/pitch desync by not relying on the player’s exact view direction.
- Uses short-term caching to keep decisions consistent while mining/holding clicks.
Permissions
raytraceantifreecam.bypass - Bypasses all checks. Default: OP.
Config (config.yml)
# Maximum allowed interaction distance (hard cap).
# Type: double | Typical: 5.0–6.0
max-reach: 6.0
# Extra tolerance added to reach to reduce edge-case false blocks (corners/close range/desync).
# Type: double | Typical: 0.25–1.0
extra-reach: 0.75
# Cache duration (ms) for the last player+block decision to prevent flickering while mining/holding click.
# Type: long | Typical: 100–250
cache-ttl-ms: 175
check:
# Validate block interactions (right/left click on blocks: open/use/activate).
# Type: boolean
interact: true
# Validate block breaking (mining).
# Type: boolean
break: true
评论 0
登录后参与评分
还没有评论,来抢沙发吧