- 完整三轴弯曲变形:支持在真实玩家骨骼(
torso、right_arm、left_arm、right_leg、left_leg)上设置 bend.rotation(X/Y/Z)、弯曲局部坐标 bend.position、bend.scale 以及自定义 bend.pivot。
- 连续网格、法线与缠绕方向:变形后的弯曲段保持平滑关节,重新计算顶点法线,即使在负缩放或镜像情况下也能保持正确的背面缠绕方向。
- 动态 Molang 与平滑过渡:在弯曲轨道中评估 Molang 表达式(
1.21.1/26.x 使用 PAL Molang 6.2,1.20.1 使用内置 PalMoreMolang),具备平滑的三轴过渡混合和通道掩码隔离功能。
- 装备与层级一致性:修复了手持物品
left_item / right_item 的 Y/Z 旋转,保持皮肤外层与盔甲同步,并将躯干弯曲传递给披风和鞘翅。在 1.21.1 中包含默认的 EMF 玩家/盔甲模型。
- 内置淡入淡出与镜像播放同步(
1.3.0):通过服务器端播放或停止动画,支持平滑淡入、淡出、中断四元数 SLERP 混合、左右手镜像,并通过 PalMorePlayOptions 同步第一人称显示标志。
- 关键帧控制器 API:将 PAL 的
timeline、sound_effects 和 particle_effects 关键帧路由到命名的控制器本地处理程序(PalMoreAnimationController)。
- 跨库姿态、挂点与盔甲 API(
1.3.0):提供专服安全、无硬依赖的 API(PlayerPoseAccess、PlayerPoseSnapshot、PlayerBoneSocketRegistry、PalMoreArmorCompat、PalMoreCapabilities、PalMoreDiagnostics),适用于 VFX、UI、战斗和自定义盔甲模组。
- 向后兼容:现有的 PAL /
playerAnimator 动画和标量格式 bend: 35 无需修改即可直接使用。
支持版本与依赖项
| Minecraft |
加载器 |
所需外部模组 |
捆绑内容 |
1.20.1 |
Fabric / Forge |
playerAnimator, bendy-lib(Fabric 端需 Fabric API) |
— |
1.21.1 |
Fabric / NeoForge |
Player Animation Library(Fabric 端需 Fabric API) |
Bendable Cuboids 2.0.0+alpha.1 + 默认 EMF 模型 |
26.1.2 |
Fabric / NeoForge |
Player Animation Library(Fabric 端需 Fabric API) |
Bendable Cuboids 2.0.2 |
26.2 |
Fabric / NeoForge |
Player Animation Library(Fabric 端需 Fabric API) |
Bendable Cuboids 2.0.4 |
26.3 |
Fabric / NeoForge |
Player Animation Library(Fabric 端需 Fabric API) |
Bendable Cuboids 2.1.0 |
弯曲 JSON 示例
标量格式和三轴向量格式:
"bend": 35
"bend": [35, 10, -15]
完整的弯曲通道(pivot、rotation、position、scale):
"left_arm": {
"bend": {
"pivot": [0, -4, 0],
"rotation": {
"0.0": { "post": [0, 0, 0] },
"0.5": { "post": [35, 20, -15] },
"1.0": { "post": [0, 0, 0] }
},
"position": {
"0.0": { "post": [0, 0, 0] },
"0.5": { "post": [2, 1, 0] },
"1.0": { "post": [0, 0, 0] }
},
"scale": {
"0.0": { "post": [1, 1, 1] },
"0.5": { "post": [1.25, 0.8, 1] },
"1.0": { "post": [1, 1, 1] }
}
}
}
开发者 API 快速入门
带淡入过渡、镜像和第一人称标志的服务器端同步播放:
// 基本播放
PalMoreAnimations.play(serverPlayer, animationId);
PalMoreAnimations.stop(serverPlayer);
// 平滑淡入(2刻),淡出(4刻),镜像模式
PalMoreAnimations.play(serverPlayer, animationId, 2.0F, 4.0F, true);
PalMoreAnimations.stop(serverPlayer, 4.0F);
// 完整选项构建器
PalMorePlayOptions options = PalMorePlayOptions.builder()
.fadeInTicks(2.0F)
.fadeOutTicks(4.0F)
.mirrored(true)
.firstPersonOptions(PalMoreFirstPersonOptions.SHOW_ARMS_AND_ITEMS)
.quaternionBlend(true)
.build();
PalMoreAnimations.play(serverPlayer, animationId, controllerId, options);
查询玩家骨骼姿态、弯曲段,或从下游模组注册 6DoF 挂点:
// 查询缓存的世界空间姿态快照(专服安全的 API)
PlayerPoseAccess.getSnapshot(player).ifPresent(snapshot -> {
snapshot.boneWorldPosition("right_arm");
snapshot.bendSegmentPose("right_arm");
});
// 在弯曲段上注册自定义 6DoF 挂点
PlayerBoneSocketRegistry.register(
PlayerBoneSocket.of("example:blade_tip", "right_arm_bend", 0f, -6f, 0f)
);
Blockbench 制作指南
使用 PAL Bend Player Tools Blockbench 插件:
- 创建
PAL Bend Player Animation 项目(或导入现有的 PAL / 表情 / DragonCore 玩家动画)。
- 在 Blockbench 中对玩家和
*_bend 辅助骨骼进行动画制作。
- 使用
PAL: Export Player Animation 导出,并将 JSON 文件放置在 assets/<namespace>/player_animations/ 目录下。
完整文档与 GitHub Wiki:GitHub Repository
中文
- 完整三轴 Bend 变形:在真实玩家骨骼(
torso、right_arm、left_arm、right_leg、left_leg)上支持 bend.rotation(X/Y/Z)、bend.position、bend.scale 与自定义支点 bend.pivot。
- 连续弯曲网格与法线/绕序修正:弯曲关节无缝衔接,变形后自动重算顶点法线,并在负缩放或左右镜像下保持正确面绕序与光照表现。
- 动态 Molang 与平滑过渡:弯曲轨道支持 Molang 动态表达式(
1.21.1/26.x 使用 PAL Molang 6.2,1.20.1 内置 PalMoreMolang),并提供三轴平滑过渡与通道掩码隔离。
- 装备与附加层同步:补齐
left_item / right_item 手持物品 Y/Z 轴旋转,同步皮肤外层与盔甲姿态,并让披风与鞘翅自然继承躯干弯曲;1.21.1 内置默认 EMF 玩家与盔甲模型。
- 内置淡入淡出与镜像同步播放(
1.3.0):通过 PalMorePlayOptions 在服务端一键触发平滑淡入、淡出、打断四元数 SLERP 过渡、左右手镜像及第一人称显示配置同步。
- 命名关键帧控制器 API:通过
PalMoreAnimationController 将 PAL 解析的 timeline、sound_effects 与 particle_effects 路由至对应控制器回调。
- 跨库姿态、骨骼挂点与盔甲兼容 API(
1.3.0):提供专服安全、零硬依赖的 PlayerPoseAccess、PlayerPoseSnapshot、PlayerBoneSocketRegistry、PalMoreArmorCompat、PalMoreCapabilities 与 PalMoreDiagnostics,方便特效、UI、战斗与自定义盔甲模组接入。
- 完整向后兼容:原有 PAL /
playerAnimator 动画及旧版标量 bend: 35 无需修改即可直接运行。
支持版本与依赖
| Minecraft |
加载器 |
必需外部前置 |
内置模块 |
1.20.1 |
Fabric / Forge |
playerAnimator、bendy-lib(Fabric 另需 Fabric API) |
— |
1.21.1 |
Fabric / NeoForge |
Player Animation Library(Fabric 另需 Fabric API) |
Bendable Cuboids 2.0.0+alpha.1 + 默认 EMF 模型 |
26.1.2 |
Fabric / NeoForge |
Player Animation Library(Fabric 另需 Fabric API) |
Bendable Cuboids 2.0.2 |
26.2 |
Fabric / NeoForge |
Player Animation Library(Fabric 另需 Fabric API) |
Bendable Cuboids 2.0.4 |
26.3 |
Fabric / NeoForge |
Player Animation Library(Fabric 另需 Fabric API) |
Bendable Cuboids 2.1.0 |
Bend JSON 示例
旧版标量与三轴数组格式:
"bend": 35
"bend": [35, 10, -15]
完整通道(pivot、rotation、position、scale):
"left_arm": {
"bend": {
"pivot": [0, -4, 0],
"rotation": {
"0.0": { "post": [0, 0, 0] },
"0.5": { "post": [35, 20, -15] },
"1.0": { "post": [0, 0, 0] }
},
"position": {
"0.0": { "post": [0, 0, 0] },
"0.5": { "post": [2, 1, 0] },
"1.0": { "post": [0, 0, 0] }
},
"scale": {
"0.0": { "post": [1, 1, 1] },
"0.5": { "post": [1.25, 0.8, 1] },
"1.0": { "post": [1, 1, 1] }
}
}
}
开发者 API 快速上手
服务端同步播放(支持淡入淡出、镜像与第一人称选项):
// 基础播放与停止
PalMoreAnimations.play(serverPlayer, animationId);
PalMoreAnimations.stop(serverPlayer);
// 平滑淡入(2 ticks)、淡出(4 ticks)与左右手镜像
PalMoreAnimations.play(serverPlayer, animationId, 2.0F, 4.0F, true);
PalMoreAnimations.stop(serverPlayer, 4.0F);
// 完整选项构建器
PalMorePlayOptions options = PalMorePlayOptions.builder()
.fadeInTicks(2.0F)
.fadeOutTicks(4.0F)
.mirrored(true)
.firstPersonOptions(PalMoreFirstPersonOptions.SHOW_ARMS_AND_ITEMS)
.quaternionBlend(true)
.build();
PalMoreAnimations.play(serverPlayer, animationId, controllerId, options);
读取玩家姿态快照与注册弯曲骨骼挂点:
// 读取缓存的玩家世界空间姿态快照(专服安全 API)
PlayerPoseAccess.getSnapshot(player).ifPresent(snapshot -> {
snapshot.boneWorldPosition("right_arm");
snapshot.bendSegmentPose("right_arm");
});
// 在弯曲分段上注册自定义 6DoF 挂点
PlayerBoneSocketRegistry.register(
PlayerBoneSocket.of("example:blade_tip", "right_arm_bend", 0f, -6f, 0f)
);
Blockbench 制作流程
推荐使用 PAL Bend Player Tools Blockbench 插件:
- 新建
PAL Bend Player Animation 项目(或导入已有 PAL / emote / 龙核玩家模型动画)。
- 在 Blockbench 中制作玩家骨骼及
*_bend 辅助骨骼动画。
- 使用
PAL:导出玩家动画 导出,并将 JSON 放入资源包或模组的 assets/<namespace>/player_animations/ 目录。
完整文档与 GitHub Wiki:GitHub 仓库
PlayerAnimationLibraryMoreRotation
English
PlayerAnimationLibraryMoreRotation is an addon and runtime library for player animation creators and mod developers. Built on Player Animation Library (playerAnimator + bendy-lib on 1.20.1) and Bendable Cuboids, it unlocks full 3-axis limb/torso bending, smooth fade & mirror playback sync, and a clean cross-library pose & socket API across Minecraft 1.20.1, 1.21.1, 26.1.2, 26.2, and 26.3 (Fabric, NeoForge, and Forge).
Latest release: 1.3.0
Key Features
- Full 3-Axis Bend Deformation: Supports
bend.rotation (X/Y/Z), bend-local bend.position, bend.scale, and custom bend.pivot on real player bones (torso, right_arm, left_arm, right_leg, left_leg).
- Continuous Mesh, Normals & Winding: Deformed bend segments keep smooth joints, recomputed vertex normals, and proper backface winding even under negative scale or mirroring.
- Dynamic Molang & Smooth Transitions: Evaluates Molang expressions in bend tracks (PAL Molang 6.2 on
1.21.1/26.x, built-in PalMoreMolang on 1.20.1) with smooth 3-axis transition blending and channel-mask isolation.
- Equipment & Layer Parity: Fixes
left_item / right_item held-item Y/Z rotations, keeps skin outer layers and armor synchronized, and passes torso bend to capes and elytra. Includes default EMF player/armor models on 1.21.1.
- Built-in Fade & Mirror Playback Sync (
1.3.0): Play or stop animations from the server with smooth fade-in, fade-out, interruption quaternion SLERP blending, left/right hand mirroring, and synced first-person display flags via PalMorePlayOptions.
- Keyframe Controller API: Route PAL
timeline, sound_effects, and particle_effects keyframes to named controller-local handlers (PalMoreAnimationController).
- Cross-Library Pose, Socket & Armor API (
1.3.0): Dedicated-server-safe, zero-hard-dependency APIs (PlayerPoseAccess, PlayerPoseSnapshot, PlayerBoneSocketRegistry, PalMoreArmorCompat, PalMoreCapabilities, PalMoreDiagnostics) for VFX, UI, combat, and custom armor mods.
- Backwards Compatible: Existing PAL /
playerAnimator animations and legacy scalar bend: 35 work without changes.
Supported Versions & Dependencies
| Minecraft |
Loaders |
Required External Mods |
Bundled |
1.20.1 |
Fabric / Forge |
playerAnimator, bendy-lib (+ Fabric API on Fabric) |
— |
1.21.1 |
Fabric / NeoForge |
Player Animation Library (+ Fabric API on Fabric) |
Bendable Cuboids 2.0.0+alpha.1 + default EMF models |
26.1.2 |
Fabric / NeoForge |
Player Animation Library (+ Fabric API on Fabric) |
Bendable Cuboids 2.0.2 |
26.2 |
Fabric / NeoForge |
Player Animation Library (+ Fabric API on Fabric) |
Bendable Cuboids 2.0.4 |
26.3 |
Fabric / NeoForge |
Player Animation Library (+ Fabric API on Fabric) |
Bendable Cuboids 2.1.0 |
Bend JSON Examples
Legacy scalar and 3-axis vector formats:
"bend": 35
"bend": [35, 10, -15]
Full bend channels (pivot, rotation, position, scale):
"left_arm": {
"bend": {
"pivot": [0, -4, 0],
"rotation": {
"0.0": { "post": [0, 0, 0] },
"0.5": { "post": [35, 20, -15] },
"1.0": { "post": [0, 0, 0] }
},
"position": {
"0.0": { "post": [0, 0, 0] },
"0.5": { "post": [2, 1, 0] },
"1.0": { "post": [0, 0, 0] }
},
"scale": {
"0.0": { "post": [1, 1, 1] },
"0.5": { "post": [1.25, 0.8, 1] },
"1.0": { "post": [1, 1, 1] }
}
}
}
Developer API Quick Start
Server-side synced playback with fade transitions, mirroring, and first-person flags:
// Basic playback
PalMoreAnimations.play(serverPlayer, animationId);
PalMoreAnimations.stop(serverPlayer);
// Smooth fade-in (2 ticks), fade-out (4 ticks), mirrored
PalMoreAnimations.play(serverPlayer, animationId, 2.0F, 4.0F, true);
PalMoreAnimations.stop(serverPlayer, 4.0F);
// Full options builder
PalMorePlayOptions options = PalMorePlayOptions.builder()
.fadeInTicks(2.0F)
.fadeOutTicks(4.0F)
.mirrored(true)
.firstPersonOptions(PalMoreFirstPersonOptions.SHOW_ARMS_AND_ITEMS)
.quaternionBlend(true)
.build();
PalMoreAnimations.play(serverPlayer, animationId, controllerId, options);
Query player bone poses, bend segments, or register 6DoF sockets from downstream mods:
// Query cached world-space pose snapshot (dedicated-server safe API)
PlayerPoseAccess.getSnapshot(player).ifPresent(snapshot -> {
snapshot.boneWorldPosition("right_arm");
snapshot.bendSegmentPose("right_arm");
});
// Register a custom 6DoF socket on a bend segment
PlayerBoneSocketRegistry.register(
PlayerBoneSocket.of("example:blade_tip", "right_arm_bend", 0f, -6f, 0f)
);
Blockbench Authoring
Use the PAL Bend Player Tools Blockbench plugin:
- Create a
PAL Bend Player Animation project (or import existing PAL / emote / DragonCore player animations).
- Animate the player and
*_bend helper bones in Blockbench.
- Export with
PAL: Export Player Animation and place the JSON under assets/<namespace>/player_animations/.
Full documentation & GitHub Wiki: GitHub Repository
中文
PlayerAnimationLibraryMoreRotation 是一个面向玩家动画作者与模组开发者的运行时扩展库。它基于 Player Animation Library(1.20.1 为 playerAnimator + bendy-lib)与 Bendable Cuboids,在 Minecraft 1.20.1、1.21.1、26.1.2、26.2 与 26.3(Fabric / NeoForge / Forge)上提供完整三轴弯曲变形、内置淡入淡出与镜像同步播放,以及专服安全的跨库姿态与骨骼挂点 API。
当前版本:1.3.0
主要功能
- 完整三轴 Bend 变形:在真实玩家骨骼(
torso、right_arm、left_arm、right_leg、left_leg)上支持 bend.rotation(X/Y/Z)、bend.position、bend.scale 与自定义支点 bend.pivot。
- 连续弯曲网格与法线/绕序修正:弯曲关节无缝衔接,变形后自动重算顶点法线,并在负缩放或左右镜像下保持正确面绕序与光照表现。
- 动态 Molang 与平滑过渡:弯曲轨道支持 Molang 动态表达式(
1.21.1/26.x 使用 PAL Molang 6.2,1.20.1 内置 PalMoreMolang),并提供三轴平滑过渡与通道掩码隔离。
- 装备与附加层同步:补齐
left_item / right_item 手持物品 Y/Z 轴旋转,同步皮肤外层与盔甲姿态,并让披风与鞘翅自然继承躯干弯曲;1.21.1 内置默认 EMF 玩家与盔甲模型。
- 内置淡入淡出与镜像同步播放(
1.3.0):通过 PalMorePlayOptions 在服务端一键触发平滑淡入、淡出、打断四元数 SLERP 过渡、左右手镜像及第一人称显示配置同步。
- 命名关键帧控制器 API:通过
PalMoreAnimationController 将 PAL 解析的 timeline、sound_effects 与 particle_effects 路由至对应控制器回调。
- 跨库姿态、骨骼挂点与盔甲兼容 API(
1.3.0):提供专服安全、零硬依赖的 PlayerPoseAccess、PlayerPoseSnapshot、PlayerBoneSocketRegistry、PalMoreArmorCompat、PalMoreCapabilities 与 PalMoreDiagnostics,方便特效、UI、战斗与自定义盔甲模组接入。
- 完整向后兼容:原有 PAL /
playerAnimator 动画及旧版标量 bend: 35 无需修改即可直接运行。
支持版本与依赖
| Minecraft |
加载器 |
必需外部前置 |
内置模块 |
1.20.1 |
Fabric / Forge |
playerAnimator、bendy-lib(Fabric 另需 Fabric API) |
— |
1.21.1 |
Fabric / NeoForge |
Player Animation Library(Fabric 另需 Fabric API) |
Bendable Cuboids 2.0.0+alpha.1 + 默认 EMF 模型 |
26.1.2 |
Fabric / NeoForge |
Player Animation Library(Fabric 另需 Fabric API) |
Bendable Cuboids 2.0.2 |
26.2 |
Fabric / NeoForge |
Player Animation Library(Fabric 另需 Fabric API) |
Bendable Cuboids 2.0.4 |
26.3 |
Fabric / NeoForge |
Player Animation Library(Fabric 另需 Fabric API) |
Bendable Cuboids 2.1.0 |
Bend JSON 示例
旧版标量与三轴数组格式:
"bend": 35
"bend": [35, 10, -15]
完整通道(pivot、rotation、position、scale):
"left_arm": {
"bend": {
"pivot": [0, -4, 0],
"rotation": {
"0.0": { "post": [0, 0, 0] },
"0.5": { "post": [35, 20, -15] },
"1.0": { "post": [0, 0, 0] }
},
"position": {
"0.0": { "post": [0, 0, 0] },
"0.5": { "post": [2, 1, 0] },
"1.0": { "post": [0, 0, 0] }
},
"scale": {
"0.0": { "post": [1, 1, 1] },
"0.5": { "post": [1.25, 0.8, 1] },
"1.0": { "post": [1, 1, 1] }
}
}
}
开发者 API 快速上手
服务端同步播放(支持淡入淡出、镜像与第一人称选项):
// 基础播放与停止
PalMoreAnimations.play(serverPlayer, animationId);
PalMoreAnimations.stop(serverPlayer);
// 平滑淡入(2 ticks)、淡出(4 ticks)与左右手镜像
PalMoreAnimations.play(serverPlayer, animationId, 2.0F, 4.0F, true);
PalMoreAnimations.stop(serverPlayer, 4.0F);
// 完整选项构建器
PalMorePlayOptions options = PalMorePlayOptions.builder()
.fadeInTicks(2.0F)
.fadeOutTicks(4.0F)
.mirrored(true)
.firstPersonOptions(PalMoreFirstPersonOptions.SHOW_ARMS_AND_ITEMS)
.quaternionBlend(true)
.build();
PalMoreAnimations.play(serverPlayer, animationId, controllerId, options);
读取玩家姿态快照与注册弯曲骨骼挂点:
// 读取缓存的玩家世界空间姿态快照(专服安全 API)
PlayerPoseAccess.getSnapshot(player).ifPresent(snapshot -> {
snapshot.boneWorldPosition("right_arm");
snapshot.bendSegmentPose("right_arm");
});
// 在弯曲分段上注册自定义 6DoF 挂点
PlayerBoneSocketRegistry.register(
PlayerBoneSocket.of("example:blade_tip", "right_arm_bend", 0f, -6f, 0f)
);
Blockbench 制作流程
推荐使用 PAL Bend Player Tools Blockbench 插件:
- 新建
PAL Bend Player Animation 项目(或导入已有 PAL / emote / 龙核玩家模型动画)。
- 在 Blockbench 中制作玩家骨骼及
*_bend 辅助骨骼动画。
- 使用
PAL:导出玩家动画 导出,并将 JSON 放入资源包或模组的 assets/<namespace>/player_animations/ 目录。
完整文档与 GitHub Wiki:GitHub 仓库
评论 0
登录后参与评分
还没有评论,来抢沙发吧