AFK Camera

概述
AFK Camera 是一款 Minecraft 模组,当你处于闲置状态时,它会自动激活电影般的摄像机运镜。在经过一段可配置的闲置时间(默认 30 秒)后,该模组会无缝地将你的视角切换为自由视角模式,并开始在世界周围播放平滑的预定义摄像机动画。
功能
- 自动 AFK 检测:监控玩家活动,包括移动、鼠标输入、按键和受伤
- 平滑的视角过渡:自动切换到带有电影特效的自由视角模式
- 可配置的时间:自定义 AFK 超时时长
- HUD 管理:在 AFK 模式下自动隐藏 HUD
- 动画系统:支持带有位置和旋转插值的自定义摄像机关键帧动画
- 智能停用:检测到任何玩家活动时立即返回正常游戏状态
- 死亡保护:可选设置,当玩家死亡时禁用 AFK 模式
工作原理
该模组持续监控以下玩家活动:
- 移动键(WASD、跳跃、潜行、疾跑)
- 鼠标移动
- 动作键(攻击、使用物品、打开物品栏)
- 玩家受到伤害
- 菜单交互
当在设定的时间内未检测到任何活动时,AFK Camera 会执行以下操作:
- 启用自由视角模式
- 隐藏游戏 HUD
- 按随机顺序加载并播放电影级摄像机动画
- 循环播放所有可用动画
一旦检测到任何玩家输入,模组将立即:
- 停止当前动画
- 恢复 HUD
- 将视角控制权交还给玩家
- 禁用自由视角模式
Blockbench 兼容性
本模组旨在与 Blockbench 摄像机动画无缝配合。你可以在 Blockbench 中创建自定义摄像机路径和关键帧动画,模组将在 AFK 期间自动加载并播放它们。动画系统支持:
- 带有平滑插值的位置关键帧
- 旋转关键帧(俯仰角和偏航角)
- 自定义时间和持续时间
- 针对 Minecraft 世界坐标的自动缩放
自定义摄像机动画教程
模板 资源包。 模板 BlockBench 文件。 详细文字指南——即将推出。
仅支持 Fabric
本模组是为 Fabric 加载器开发的。Forge 版本不在计划中,因为两个平台之间存在显著的建筑差异,且该模组深度集成了 Fabric 特有的 API。
依赖项
必需
- Fabric API - Fabric 模组加载器的核心功能
- YACL (Yet Another Config Library) - 配置管理
可选
- Mod Menu - 提供游戏内配置界面
问题反馈
如果你发现了未列出的问题,可以在这里进行报告。
致谢
非常感谢 hashalite 创建了 Freecam!我在项目中使用了部分代码,这对我帮助很大。做得好!
感谢 ZipeStudio 在 IDE 方面提供的帮助。
感谢 LopyMine 提供的 Mossy 模板!
感谢 Danrus1100 的贡献!
许可证
本项目采用 BY-ND 4.0 许可证授权 - 详见 LICENSE 文件。
AFK Camera

Overview
AFK Camera is a Minecraft mod that automatically activates cinematic camera movements when you're idle. After a configurable period of inactivity (default 30 seconds), the mod seamlessly transitions your camera into a free-cam mode and begins playing smooth, pre-defined camera animations around your world.
Features
- Automatic AFK Detection: Monitors player activity including movement, mouse input, key presses, and damage
- Smooth Camera Transitions: Automatically switches to free camera mode with cinematic animations
- Configurable Timing: Customizable AFK timeout period
- HUD Management: Automatically hides the HUD during AFK mode
- Animation System: Supports custom camera keyframe animations with position and rotation interpolation
- Smart Deactivation: Instantly returns to normal gameplay when any player activity is detected
- Death Protection: Optional setting to disable AFK mode when player dies
How It Works
The mod continuously monitors for player activity including:
- Movement keys (WASD, jump, sneak, sprint)
- Mouse movement
- Action keys (attack, use, inventory)
- Player taking damage
- Menu interactions
When no activity is detected for the configured time period, AFK Camera:
- Enables free camera mode
- Hides the game HUD
- Loads and plays cinematic camera animations in a random order
- Cycles through available animations continuously
The moment any player input is detected, the mod immediately:
- Stops the current animation
- Restores the HUD
- Returns camera control to the player
- Disables free camera mode
Block Bench Compatibility
This mod is designed to work seamlessly with Blockbench camera animations. You can create custom camera paths and keyframe animations in Blockbench, and the mod will automatically load and play them during AFK periods. The animation system supports:
- Position keyframes with smooth interpolation
- Rotation keyframes (pitch and yaw)
- Custom timing and duration
- Automatic scaling for Minecraft world coordinates
Custom camera animations tutorial
Template resource pack. Template BlockBench file. Detailed text guide - coming soon.
Fabric Only
This mod is developed for the Fabric mod loader. A Forge version is not planned due to the significant architectural differences between the platforms and the mod's deep integration with Fabric-specific APIs.
Dependencies
Required
- Fabric API - Core Fabric mod loader functionality
- YACL (Yet Another Config Library) - Configuration management
Optional
- Mod Menu - Provides in-game configuration interface
Issues
If you find a problem that is not listed, you can report it here.
Acknowledgments
Big thanks to hashalite for creating Freecam! I used a bit of the code in my project, and it really helped me out. Great work!
Thanks to ZipeStudio for help with IDE.
Thanks to LopyMine for Mossy template!
Thanks to Danrus1100 for contributing!
License
This project is licensed under the BY-ND 4.0 License - see the LICENSE file for details.
下载 AFK Camera
下载 AFK Camera
下载 AFK Camera
下载 AFK Camera
下载 AFK Camera
下载 AFK Camera
下载 AFK Camera
下载 AFK Camera
下载 AFK Camera
下载 AFK Camera
- 添加 Iris 支持
- 修复渲染 Mixin
- 兼容 Sinytra Connector (Oculus)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧