功能
SimpleAnimator 是一款简易动画引擎,允许玩家使用基岩版(Bedrock Edition)的动画来播放角色动画。
在联机模式下,客户端会同步由服务器加载的动画。
动画
动画可以通过 BlockBench 制作,并在导出后根据需要手动添加一些特殊的布尔值参数:
- override:指定该动画是否覆盖现有的动作和相机朝向。默认值为 true。如果设为 false,动画将以叠加模式运行。
- movable:玩家在播放动画时是否可以移动。默认为 false。
- abortable:动画是否可以被中止。默认值为 true。如果设为 false,则无法通过玩家操作中断动画(如果动画处于循环模式,不建议设为 false)。
此外,对应格式的 BlockBench 项目文件可下载至 GitHub,以方便制作动画。
模组提供两种添加动画的方式:
数据包:
对于模组开发者,可以选择将动画放入 data/[modid]/animations 目录中。
API 及更多细节将在后续版本的文档中添加。
文件夹:
对于大多数玩家,只需将文件放入 [游戏版本路径]/animations 即可加载动画。
交互
交互是模组版本 1.1.0 之后新增的功能,允许两名玩家进行互动并播放动画(在网络不稳定的情况下可能会出现不同步)。
交互文件的导入方式与普通动画类似,但你需要在动画文件中添加子动画:invite(邀请)、waiting(等待)、cancel(取消,可选)。
此外,动画骨骼需要包含带有 requester_ 和 receiver_ 前缀的骨骼。具体格式可查看 GitHub 中的 Starting-Kit.interact.bbmodel 文件。
命令
/animate play <animation>
/animate stop
/interact invite <player> <interaction>
/interact accept <player>
Feature
SimpleAnimator is a simple animation engine that allows players to use BedrockEdition animations to play back player animations.
When playing online, the client synchronizes the animations loaded by the server.
Animation
Animations can be made via BlockBench, and some special Booleans can be manually added after the animation is exported if necessary:
- override: Specifies whether an animation overrides an existing action and camera orientation. The default value is true. If the value is false, the animation works in addition mode.
- movable: Whether a player can be moved while playing an animation. The default is false.
- abortable: Whether the animation can be aborted. The default value is true. If it is false, the animation cannot be interrupted by player action (not recommended if the animation is in loop mode).
In addition, BlockBench project files in the corresponding format can be downloaded to GitHub to facilitate animation.
The mod provides two ways to add animations:
Datapack:
For mod developers, you can choose to put animations into data/[modid]/animations.
The API and more details will be added in a later version of the documentation.
Folder:
For most players, animations can be loaded by dropping the files into [game version path]/animations.
Interaction
Interaction is a new feature added after mod version 1.1.0 that allows two players to interact and play animations(May be misaligned in the case of network instability).
Interaction file import is similar to normal animation, but you need to add subanimations to the animation file: invite, waiting, cancel(optional).
In addition, the animated bones need to include the bones with the requester_ and receiver_ prefixes. The specific format can be viewed by Starting-Kit.interact.bbmodel in GitHub.
Commands
/animate play <animation>
/animate stop
/interact invite <player> <interaction>
/interact accept <player>
评论 0
登录后参与评分
还没有评论,来抢沙发吧