
Occlusion
简介
服务端反自由视角(anti-freecam)。服务器会计算每个玩家实际能看到的区域,并仅发送那些内容。不在视野内的洞穴、基地和生物都不会被发送,因此自由视角(或任何客户端作弊)将无物可显。隐藏区域在未被发现时显示为普通石头,一旦进入视野即刻变为真实方块,合法玩家完全不会察觉。
此外,它还具备基于光线投射的反透视(raycast anti-xray)(视线无法触及的矿石会被发送为石头)和反ESP(anti-ESP)(位于墙壁后方的实体根本不会被发送)。
截图
从埋藏基地上方的岩石内部使用自由视角观察:

深入地下向下看的自由视角。原版会发送每一个洞穴、矿井和基地:

墙壁另一侧的生物在玩家能够看到它们之前,在客户端上并不存在:

特性
- 反自由视角:每 16x16x16 的区域都会结合客户端自身的区块行走路径与地下的视线射线进行检查。移动玩家前方的区域会提前发送,避免突然加载(pop-in)。
- 基于光线投射的反透视:接触空气但视线无法触及的矿石会被发送为石头。密封的空气囊也会被填充。
- 反ESP:除投射物外的所有实体都会进行方块级别的视线检查。32 格以内的玩家始终可见,发光实体和 Boss 血条保持显示。
- 挖掘揭示:你挖掘的方块后面的内容会在其破碎前显示出来,因此瞬间挖掘永远不会显示填充石。
- 第三人称(F5)摄像机被视为眼睛位置。
- 基岩版玩家通过 Geyser 支持。Simple Voice Chat:隐藏玩家的语音仍在其真实位置播放。
- API 供其他模组调用:
PandaOcclusionApi.canSee(ServerPlayer, AABB)(用于全息图、虚假实体等)。
对合法玩家毫无影响
- 完整原版音效:客户端会根据其拥有的方块和生物自行生成许多声音(岩浆气泡声、传送门嗡嗡声、火焰声、熔炉声、刷怪笼声、监守者心跳声、烈焰人声、图腾声……)。Occlusion 在服务端处理这些声音并发出,因此无论是否隐藏,玩家仍能听到周围每一个方块发出的细微声响。
- Boss 血条:墙后的凋灵依然像原版那样精确显示其生命值条。
- 光照:隐藏区域重新出现时带有正确的光照,不会出现黑盒。
- 瞬间挖掘:当你开始挖掘一个方块时,其背后的内容就会显示出来,因此你永远不会看到填充石。
性能与测试
- 带宽:登录及飞行期间,区块数据降至原版的 0.30-0.40x;下界中降至 0.17-0.30x。
- 服务器开销:视线检查运行在独立的线程上。在 Hardcore Anarchy 服务器上,每刻消耗约 0.4 毫秒(占服务器线程时间的 0.8%)。同时 30 个机器人潜入地下:离线线程每次检查耗时 0.2 毫秒,服务器线程每刻耗时约 0.02 毫秒。
- 基于光线投射的反透视:在测试洞穴中,接触空气但视线不可达且仍发送给客户端的矿石数量从 478 降至 18,意外隐藏的可见矿石为 0。
- 测试:每次更改都会自动运行一套包含 36 个机器人测试的用例,与上一版本进行比较,对比玩家能通过正常视角看到的方块和实体与通过机器人获得的原版视角之间的差异。视线范围内的错误方块数为 0。自 2026 年 10 月起已在 Hardcore Anarchy 和 Skyblock Anarchy 服务器上运行。
与 GrimAC 兼容性
可与 GrimAC 配合使用,但有一个注意事项:当 Occlusion 重新发送玩家所站立的区块时,上游的 Grim 会短暂地将玩家计为站在未加载的区块中,从而导致其被拉回(rubberbanding,无警告提示)。修复方法是在 TreeOfSelf/Grim fork 中使用一个提交 (35bf13c),两个服务器均已采用此修改。
配置
config/PandaOcclusion.json,首次启动时自动生成。每个功能都有独立的开关(hideEntities、hideUnseenOres、hideSealedPockets、revealBehindDig、thirdPersonCamera、hiddenSounds 等)。
与 AntiXray 模组配合效果良好:在 AntiXray 的隐藏方块列表和 keepHiddenUntilExposed 中列出相同的自然方块。
指令
操作员等级 3:
/occlusion reload,/occlusion stats
/occlusion bypass:查看所有内容(切换)
/occlusion section <player> <pos>,/occlusion why <player> <entity id>:解释某事物为何被隐藏或显示
紧急停止:将 "enabled": false 并执行 /occlusion reload。
尝试体验

hardcoreanarchy.gay (死亡惩罚无政府模式)
sky.hardcoreanarchy.gay (空岛无政府模式)
更多模组
Anti-Exploit - 一款即插即用型模组,用于防止常见的漏洞利用。完全可配置,并能与 GrimAC 等其他反作弊系统良好配合。
GeyserAC - 专为通过 Geyser 加入的基岩版玩家设计的反作弊:包含移动预测、战斗检测及方块交互检查。
No Lag - 消除服务器上常见的卡顿原因。可根据个人喜好进行配置。
Dupe Fix - 一款简单的即插即用型模组,用于防止所有形式的复制漏洞。启用此模组后,TNT 复制、重力方块复制等将不再有效。
查看所有我的模组
问题反馈
Bug 和问题请提交至 GitHub Issues。不提供 Discord 支持。
许可证


Occlusion
Description
Server-side anti-freecam. The server works out what each player can actually see and only sends that. Caves, bases and mobs out of sight are never sent, so freecam (or any client hack) has nothing to show. Hidden areas go out as plain stone and turn into the real blocks the moment they come into view, so legit players never notice.
On top of that you get raycast anti-xray (ores no line of sight reaches are sent as stone) and anti-ESP (entities behind walls aren't sent at all).
Screenshots
Freecam from inside the rock above a buried base:

Freecam deep underground, looking down. Vanilla sends every cave, mineshaft and base:

Mobs on the other side of a wall don't exist on the client until the player could see them:

Features
- Anti-freecam: every 16x16x16 section is checked with the client's own section walk plus line-of-sight rays underground. Sections ahead of a moving player are sent early, so nothing pops in.
- Raycast anti-xray: ores touching air that no line from the eye reaches are sent as stone. Sealed air pockets are filled too.
- Anti-ESP: every entity except projectiles gets a block-level line-of-sight check. Players within 32 blocks are always shown, glowing entities and boss bars stay.
- Dig reveal: what is behind the block you mine shows up before it breaks, so instant mining never shows stone.
- Third person (F5) cameras count as eyes.
- Bedrock players through Geyser are supported. Simple Voice Chat: hidden players' voices still play at their real position.
- API for other mods:
PandaOcclusionApi.canSee(ServerPlayer, AABB) (holograms, fake entities).
Nothing breaks for legit players
- Full vanilla sound: the client makes many sounds itself from the blocks and mobs it has (lava pops, portal hum, fire, furnaces, spawners, warden heartbeat, blazes, totems, ...). Occlusion works those out on the server and sends them, so players still hear every block and subtle noise around them, hidden or not.
- Boss bars: a wither behind a wall still shows its health bar exactly like vanilla.
- Lighting: hidden areas come back with correct light, no black boxes.
- Instant mining: what is behind a block shows up as you start mining it, so you never see filler stone.
Performance and testing
- Bandwidth: chunk data drops to 0.30-0.40x of vanilla on login and while flying, 0.17-0.30x in the nether.
- Server cost: sight checks run on their own threads. On Hardcore Anarchy it costs ~0.4 ms per tick (0.8% of the server thread). 30 bots moving underground at once: 0.2 ms per check off-thread, ~0.02 ms per tick on the server thread.
- Raycast anti-xray: ores touching air but out of sight that still reach the client: 478 -> 18 in the test caves, 0 ores in plain view hidden by mistake.
- Testing: an automated suite of 36 bot tests runs every change against the last version, comparing every block and entity a player can see with a bot that gets the vanilla view. 0 wrong blocks in line of sight. Running on Hardcore Anarchy and Skyblock Anarchy since October 2026.
GrimAC Compatibility
Works with GrimAC, with one catch: when Occlusion resends the chunk a player is standing in, upstream Grim briefly counts the player as standing in an unloaded chunk and rubberbands them (no alert). The fix is one commit (35bf13c) in the TreeOfSelf/Grim fork, which both servers run.
Configuring
config/PandaOcclusion.json, generated on first start. Every feature has its own switch (hideEntities, hideUnseenOres, hideSealedPockets, revealBehindDig, thirdPersonCamera, hiddenSounds, ...).
Works well with an AntiXray mod: list the same natural blocks in AntiXray's hidden blocks and in keepHiddenUntilExposed.
Commands
Operator level 3:
/occlusion reload, /occlusion stats
/occlusion bypass: see everything yourself (toggle)
/occlusion section <player> <pos>, /occlusion why <player> <entity id>: why something is hidden or shown
Kill switch: "enabled": false and /occlusion reload.
Try it out

hardcoreanarchy.gay (Deathban Anarchy)
sky.hardcoreanarchy.gay (Skyblock Anarchy)
More mods
Anti-Exploit - A drop-in mod for preventing common exploits. Fully configurable and works well alongside other anti-cheats like GrimAC.
GeyserAC - Anti-cheat for Bedrock players joining through Geyser: movement prediction, combat and block checks.
No Lag - Stop common causes of lag on your server. Configure to your likings.
Dupe Fix - A simple drop-in mod to prevent all forms of duping. TNT-Duping, Gravity block duping, and much more will not work with this mod enabled.
All my mods
Issues
Bugs and problems go on GitHub Issues. There is no Discord support.
License

评论 0
登录后参与评分
还没有评论,来抢沙发吧