mojira.dev
MCPE-180083

Player.IsEmoting bool (@minecraft/server api) does not return true when emoting.

The IsEmoting property of the player class in the @minecraft/server api returns false whether or not I am emoting.

I tested this on api versions 1.10 and 1.11 beta in a singleplayer world.

Here is some example code (or attached .js file):
import

{ system, world }

from "@minecraft/server"

async function testIfEmoting() {
  let players = world.getAllPlayers();
  players.forEach((player, i) =>

{     console.log(player.isEmoting);   }

)
}

system.runInterval(testIfEmoting, 10);

Jira messed it up a little bit but you get the jist.
Despite using several emotes (like wave and hammer time), the console logged nothing but false.

 

Update: Still broken as of Preview 1.21.0.24

[media]

Linked issues

Attachments

Comments 7

[media][media][media][media]

Could you please attach a behavior pack that can be used to reproduce this?

@KR_
This addon should demonstrate the issue. Just load it up in a world and it should spam chat saying whether or not the player is emoting. (With the bug, it should always say not emoting)

[media]

@KR_
This addon should demonstrate the issue. Just load it up in a world and it should spam chat saying whether or not the player is emoting. (With the bug, it should always say not emoting)

[media]

Edit: I misunderstood how emotes work, sorry.
Can confirm, affects 1.20.72 and 1.20.80.24

Steps to reproduce:

  1. Import the .mcaddon into a world

  2. Press the emote button and select an emote

Observed results:
The script returns Player.IsEmoting as false.

Expected results:
The script should return Player.IsEmoting as true.

Video: 

[media]

@KR_ You misunderstand. That video does reproduce the issue. The expected behavior is that while the player is emoting, the text being spammed in chat should change to "You are emoting" instead of "you are not emoting." The text that says "[player] is [emote]ing" is part of Minecraft itself, not my example addon.

@KR_ You misunderstand. That video does reproduce the issue. The expected behavior is that while the player is emoting, the text being spammed in chat should change to "You are emoting" instead of "you are not emoting." The text that says "[player] is [emote]ing" is part of Minecraft itself, not my example addon.

Aiden

(Unassigned)

1233442

Confirmed

Windows

Windows 11 23H2

Script-API

1.20.80.23 Preview, 1.20.80, 1.21.0.24 Preview

1.21.30.21 Preview, 1.21.30

Retrieved