此条目缺失以下信息:用法和参数的详细描述。
请协助补充相关内容的描述。
本文章所述内容仅适用于基岩版和教育版。
playanimation
需要的权限等级
1
限制条件
启用作弊
在一个或多个实体上播放一次性动画。
目录
1 语法
2 参数
3 结果
4 输出
5 示例
6 历史
7 导航
语法[编辑 | 编辑源代码]
playanimation
参数[编辑 | 编辑源代码]
entity: target:CommandSelector
指定目标。
必须为玩家名或目标选择器。
animation: string:basic_string
指定动画。
由<资源包>/entity/<实体名称>.entity.json文件内"minecraft:client_entity"."animations"的参数定义。
必须为 字符串。必须为单个词或者双引号(")括起的字符串。引号内的字符可以使用\进行转义。
next_state: string:basic_string
指定动画播放完毕后的状态。
由<资源包>/animation_controllers/<控制器>.json文件内"animation_controllers"."<控制器名称>"."states"的参数定义。
必须为 字符串。必须为单个词或者双引号(")括起的字符串。引号内的字符可以使用\进行转义。
blend_out_time: float:float
指定动画渐变的持续时间。
必须为 单精度浮点数。
stop_expression: string:basic_string
指定动画播放终止的条件。
应为Molang表达式。[需要更多信息]
必须为 字符串。必须为单个词或者双引号(")括起的字符串。引号内的字符可以使用\进行转义。
controller: string:basic_string
指定动画控制器。
由<资源包>/entity/<实体名称>.entity.json文件内"minecraft:client_entity"."render_controllers"的参数定义。
必须为 字符串。必须为单个词或者双引号(")括起的字符串。引号内的字符可以使用\进行转义。
结果[编辑 | 编辑源代码]
命令触发条件基岩版
任意参数未正确指定 无法解析
entity: target无法选中一个或多个实体(以名称指定的玩家必须上线) 执行失败
不符合以上所有条件执行成功
输出[编辑 | 编辑源代码]
命令版本条件成功次数
任意基岩版执行失败0
执行成功1
示例[编辑 | 编辑源代码]
/playanimation @p animation.player.attack.rotations none 1 "v.attack_body_rot_y=180;"
将最近玩家的身体翻转180度。
/playanimation @p animation.armor_stand.riposte_pose
使最近的玩家开始盔甲架回刺反击动作的动画。
历史[编辑 | 编辑源代码]
基岩版1.16.1001.16.100.52加入了/playanimation。
导航[编辑 | 编辑源代码]
查
论
编命令
当前可用
clear
clone
damage
deop
difficulty
effect
enchant
execute
experience
xp
fill
function
gamemode
gamerule
give
help
kick
kill
list
locate
loot
me
op
particle
place
playsound
recipe
reload
ride
say
schedule
scoreboard
setblock
setworldspawn
spawnpoint
spreadplayers
stop
stopsound
summon
tag
msg
tell
w
tellraw
time
title
teleport
tp
transfer
weather
whitelist
仅Java版
advancement
attribute
ban
ban-ip
banlist
bossbar
chase
data
datapack
debug
debugconfig
debugmobspawning
debugpath
defaultgamemode
dialog
fetchprofile
fillbiome
forceload
item
jfr
pardon
pardon-ip
perf
publish
raid
random
return
rotate
save-all
save-off
save-on
seed
serverpack
setidletimeout
spawn_armor_trims
spectate
stopwatch[新增:JE 1.21.11]
team
teammsg
tm
test
tick
trigger
version
warden_spawn_tracker
waypoint
worldborder
仅基岩版
allowlist
changesetting
clearrealmevents
gametips
project
reloadconfig
reloadpacketlimitconfig
save
sendshowstoreoffer
仅教育版
classroommode
code
getchunkdata
getchunks
geteduclientinfo
geteduserverinfo
getspawnpoint
globalpause
resourceuri
takepicture
基岩版和教育版
?
ability
agent
aimassist
camera
camerashake
clearspawnpoint
closewebsocket
codebuilder_actorinfo
controlscheme
daylock
alwaysday
dedicatedwsserver
dialogue
enableencryption
event
fog
gametest
gettopsolidblock
hud
immutableworld
inputpermission
listd
mobevent
music
permission
ops
playanimation
querytarget
replaceitem
script
scriptevent
setmaxplayers
structure
testfor
testforblock
testforblocks
tickingarea
titleraw
toggledownfall
worldbuilder
wsserver
connect
已移除
placefeature
仅Java版
?
achievement
banip
blockdata
broadcast
entitydata
home
iron
locatebiome
replaceitem
setspawn
solid
stats
toggledownfall
testfor
testforblock
testforblocks
unban
wood
仅基岩版
clearfixedinv
mixer
resupply
set_movement_authority
setfixedinvslot
setfixedinvslots
simulationtype
volumearea
仅教育版
collect
dropall
move
position
tpagent
transfer
turn
基岩版和教育版
attack
createagent
destroy
detect
detectredstone
drop
executeasother
executeasself
getitemcount
getitemdetail
getitemspace
inspectdata
inspect
place
till
transferserver