用於使一個或多個實體執行一次性動畫。
語法[]
playanimation <entity: target> <animation: string> [next_state: string] [blend_out_time: float] [stop_expression: string] [controller: string]
參數[]
<entity: target>
- 指定目標。必須是一位玩家的名字或目標選擇器(允許使用@e選擇非玩家實體)。
<animation: string>
- 指定目前要播放的動畫。必須是一個字串,且只能由一個單詞(不帶空格)或帶雙引號的字串組成。
- 由<資源包>/entity/<實體名稱>.entity.json檔案內
"minecraft:client_entity"."animations"
的參數定義。
[next_state: string]
- 指定動畫播放完畢後的狀態。必須是一個字串,且只能由一個單詞(不帶空格)或帶雙引號的字串組成。
- 由<資源包>/animation_controllers/<控制器>.json檔案內
"animation_controllers"."<控制器名称>"."states"
的參數定義。
[blend_out_time: float]
- 指定動畫漸變的持續時間。必須是一個單精度浮點數。
[stop_expression: string]
[controller: string]
- 指定動畫控制器。必須是一個字串,且只能由一個單詞(不帶空格)或帶雙引號的字串組成。
- 由<資源包>/entity/<實體名稱>.entity.json檔案內
"minecraft:client_entity"."render_controllers"
的參數定義。
歷史[]
關於「命令/playanimation」的歷史,請見各版本頁面。
關於「命令/playanimation」的歷史,請見各版本頁面。
關於「命令/playanimation」的歷史,請見各版本頁面。
語言