快乐守护者 Posted March 1 Report Posted March 1 English: Excuse me, after a player uses the "/emote s1" command to perform the s1 action, how can they stop it? I edited a custom action named s1 and added it to Player.json. After entering the game, when the player uses the "/emote s1" command to perform the action, they continuously loop the s1 action and cannot stop it. Whether the player walks, attacks, or swims, the s1 action is always blended with these movements. Using the "/npc exec playanim s1 1" command to make an NPC perform the s1 action causes the NPC to continuously loop the action. Using the "/npc stop" command can make the NPC stop the s1 action. Using the "/npc exec goto p s1 0.01 1" command to make an NPC move to the player's location using the s1 action causes the NPC to continuously loop the s1 action until it reaches the player's location, at which point the action stops. 原文: 请问,玩家用 "/emote s1" 指令做出s1动作后如何停止s1动作? 我编辑了一个自定义动作,名字叫s1。我在Player.json里添加了这个动作。进入游戏后,让玩家用 "/emote s1" 指令做出动作后玩家就一直循环做这个动作无法停止,不管玩家走路还是攻击还是游泳都会混合s1动作一起做。 用“/npc exec playanim s1 1”指令让NPC做出s1动作后NPC会一直循环这个动作,用“/npc stop”可以让NPC停止s1动作。 用“/npc exec goto p s1 0.01 1”指令让NPC用s1动作移动到玩家所在位置,NPC会循环使用s1动作直至移动到玩家所在位置然后停止动作。
The Insanity God Posted March 5 Report Posted March 5 I don't think emotes where meant to be set to repeat, I see no functionality for stopping them through commands so you will likely have to create your own command + entity packet to do this.
快乐守护者 Posted March 6 Author Report Posted March 6 22 hours ago, The Insanity God said: I don't think emotes where meant to be set to repeat, I see no functionality for stopping them through commands so you will likely have to create your own command + entity packet to do this. English: thank you. What I'm doing now is to copy the action of the automatic loop playback, change it to a one-time playback, and then rename it as a player-specific action. 原文: 谢谢。我现在的做法是,把自动循环播放的动作复制一份改成一次性播放然后重命名为玩家专用动作。
Recommended Posts