? First Person Camera
将第一人称视角的摄像机略微向前移动,使其脱离你的头部——并防止其穿墙。
✨ 功能说明
原版 Minecraft 将摄像机放置在你的颅骨内部。此模组将其稍微向前推移(默认为 0.25 个方块),这感觉更加自然,并能让你更宽广地观察周围环境。
难点在于确保摄像机不会陷入方块内部。此模组通过以下几种方式来处理这个问题:
- 碰撞限制 — 如果前方有墙壁阻挡,摄像机会退回到你的眼睛位置,而不是穿过墙壁。
- 转向时身体微调 — 如果旋转视角会导致摄像机撞入墙壁,你的身体会被轻轻推开以腾出空间。
- 移动约束 — 你的身体不能移动到使偏移后的摄像机陷入方块内的位置。
- 视角晃动抑制 — 在靠近墙壁时,行走时的视角晃动会被平滑抑制。
- 射线投射物品修正 — 水桶、玻璃瓶、船以及放置于水面的物品会使用变换后的摄像机目标,而非原版的眼部射线。
所有内容均为 仅客户端。对于少量基于射线投射的右键点击物品,模组会调整发送的注视方向,以便服务器能解析到你实际注视的目标。
? First-person Model 集成
First-person Model 渲染你在第一人称下可见完整的玩家模型——这是一个非常酷的想法,也是本模组的灵感来源之一。强烈建议搭配 First Person Camera 使用。
First-person Model 单独使用时存在的问题是,身体必须相对于你的实际位置进行偏移渲染,否则当你向下看时,它会瞬间填满整个屏幕。First Person Camera 将这些偏移值锁定到玩家 实际所在 的位置,因此这两个模组开箱即用,完美协作。
First-person Model 是 可选的。没有它,本模组也能正常工作。
⚙️ 配置
config/first-person-camera.json 会在首次启动时自动生成:
{
"cameraForward": 0.25
}
cameraForward 是摄像机向前推动的距离(以方块为单位)。默认值 0.25 在自然感和碰撞保护之间取得了良好的平衡。
⚠️ 反作弊通知
本模组尚未针对服务端反作弊系统进行测试。大多数行为纯粹是视觉/客户端层面的,但基于射线投射的右键点击物品可能会短暂发送调整后的注视或位置数据包,以便服务器目标与变换后的摄像机一致。请在服务器上自行酌情使用。
? First Person Camera
Moves the first-person camera slightly forward out of your head — and keeps it from clipping through walls.
✨ What it does
Vanilla Minecraft places the camera right inside your skull. This mod pushes it forward a little (0.25 blocks by default), which feels more natural and gives you a slightly wider view of your surroundings.
The hard part is making sure the camera doesn't end up inside a block. This mod handles that in a few ways:
- Collision clamping — if a wall is in the way, the camera pulls back to your eyes rather than clipping through it.
- Body nudge on turn — if rotating would push the camera into a wall, your body is gently nudged aside to make room.
- Movement constraint — your body can't move into a position where the offset camera would be buried in a block.
- View bob suppression — walking bob is smoothly suppressed near walls.
- Raycast item correction — buckets, glass bottles, boats, and place-on-water items use the transformed camera target instead of the vanilla eye ray.
Everything is client-side only. For a small set of raycast-based right-click items, the mod adjusts the sent look direction so the server resolves the same target you are actually looking at.
? First-person Model integration
First-person Model renders your full player body visible in first-person — a really cool idea, and part of what inspired this mod. It's strongly recommended alongside First Person Camera.
The problem with First-person Model on its own is that the body has to be rendered offset from your actual position, otherwise it fills your entire screen the moment you look down. First Person Camera locks those offset values to where the player actually is, so the two mods just work together out of the box.
First-person Model is optional. This mod works perfectly fine without it.
⚙️ Configuration
config/first-person-camera.json is auto-generated on first launch:
{
"cameraForward": 0.25
}
cameraForward is the distance in blocks the camera is pushed forward. The default of 0.25 is a good balance between natural feel and collision protection.
⚠️ Anti-cheat notice
This mod hasn't been tested against server-side anti-cheat. Most behavior is purely visual/client-side, but raycast-based right-click items may briefly send adjusted look or position packets so the server targets the same block as the transformed camera. Use on servers at your own discretion.
评论 0
登录后参与评分
还没有评论,来抢沙发吧