Player attack sides v1
本页目录
本文对应 1.21.10 现代框架。文档中的接口与配置按当前文档快照核对;完整框架仍在开发验收。接口可编译、配置可解析与游戏内效果验证分别记录。
Decision: ADR-045(源码配套资料). Required capability: model_player_attack_sides_v1 (PlayerModelBinding.ATTACK_SIDES_CAPABILITY). The existing public ModelService player binding and PresentationProfile model domain carry the configuration; no platform or business type is added to public parameters.
The existing actionMap accepts attack_left and attack_right. The same suffixes apply to ride_attack, swim_attack and glide_attack. Left and right always denote physical body sides. A left-handed player's main-hand swing therefore selects the left mapping.
"actionMap": {
"attack_left": "pose_45",
"attack_right": "pose_90",
"attack": "pose_0"
}
Resolution is explicit side alias → same-side authored name → generic posture attack. For example, ride_attack_left falls back to ride_attack only when no side mapping or authored side clip exists. A present but invalid/unsupported side clip does not silently become another attack. Explicit aliases are validated during preparation; rejection preserves the applied binding. Generic-only resources keep their existing behavior. Mapping values always refer to clips in the current asset, not another resource generation.
ModelPlan automatically adds the capability when a recognized side mapping is present (case normalization follows the existing profile grammar). A profile relying on automatic authored side names must list the capability in requires. Configuration scripts may replace profile.actionMap through model:player_patch; nested maps are whole replacements. Server consumers use ModelService.Owner.patchPlayer with the same profile structure. See neutral model plan(源码配套资料).
Only a native accepted swing creates an occurrence. Its physical side remains fixed; repeated body/arm draws do not restart it. New accepted swings may restart it. Existing playback continues through the authored duration after the short vanilla swing ends and returns to the current ordinary state. Commands, native use/posture changes, actor replacement, resource retirement, clear and owner close keep their existing interruption/retirement behavior. This extension does not change hurt policy or add damage/skill authority.
The client exposes support only with the implemented native path. Missing capabilities defer owner updates and preserve prior applied state. Full V1 conversion, human acceptance and release require their own evidence in delivery-tasks.json.
Scoped evidence: 2026-10-07 receipt(源码配套资料). Production 1f5ce1ac, native fixture db97e388: 23 focused tests and 18 native action/recovery cases plus two empty lifecycle checkpoints pass. Both native processes exited normally. The frozen client accepts different server-side aliases, rejects an invalid alias while retaining the applied binding, and recovers after resource reload.
The reviewed BBModel/Bedrock first-person images show both arms. The reviewed GLB first-person images do not establish visible model arms despite successful draw-selection diagnostics; GLB first-person appearance/grip remains open. Native samples cover selection after 0.45 seconds and later return to idle, not continuous exact-duration motion. Authored completion has separate controller test coverage. This evidence does not close the full V1 context matrix or human acceptance.