mojira.dev
MCPE-183016

Entity effect IDs are translated

Technically the typeId of effect should not supposed to be translated, but the typeId of effect are being translated too when you change the language in the game. As a result, reading the typeId of an effect is language dependent, only displayName is supposed to be translated not the typeId.

Steps to reproduce:

  1. Ensure your language is set to English (United States)

  2. Enable "Enable Content Log GUI" in Settings -> General -> Creator

  3. Import the attached add-on:

[media]
  1. Create a new world with the add-on and the "Beta APIs" experiment enabled

  2. Run /effect @s speed

  3. Drink a bucket of Pasteurized Milk. Notice that the effect was removed

  4. Exit the world, switch to a different language and rejoin the world

  5. Run /effect @s speed

  6. Drink a bucket of Pasteurized Milk. Notice that the effect was not removed and an error appears

Observed result:
The code:

for(const effect of e.source.getEffects()) {
  console.warn(`id: ${effect.typeId} - name: ${effect.displayName}`);
}

Gave this warning in game:

[Scripting][warning]-id: lentidão - name: Lentidão
[Scripting][warning]-id: cegueira - name: Cegueira
[Scripting][warning]-id: veneno - name: Veneno

The effect typeID and displayName are translated.

Expected result:
The effect typeID is not translated, only its displayName.

Attachments

Comments 6

[media][media][media]

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Could you please attach an example addon showcasing the issue?

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki

The report lacks information regarding this bug. This is for script API, technically the typeId of effect should not supposed to be translated, but the typeId of effect are being translated too when you change the language in the game. As a result, reading the typeId of an effect is language dependent, only displayName is supposed to be translated not the typeId.

The report lacks information regarding this bug. This is for script API, technically the typeId of effect should not supposed to be translated, but the typeId of effect are being translated too when you change the language in the game. As a result, reading the typeId of an effect is language dependent, only displayName is supposed to be translated not the typeId.

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

I am unable to create a new world using your add-on. Could you please verify if this issue persists in the latest version? If it does, could you add it to the list of affected versions (or mention it if you are not the reporter)? Additionally, please ensure that the add-on is functioning properly.

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki

Still an issue as of 1.21.51. I've attached a working version of the add-on.

Elias_Wolfy

(Unassigned)

1362904

Confirmed

Multiple

Script-API

1.21.0, 1.21.2 Hotfix, 1.21.51 Hotfix

1.21.73 Hotfix

Retrieved