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:
Ensure your language is set to English (United States)
Enable "Enable Content Log GUI" in Settings -> General -> Creator
Import the attached add-on:
Create a new world with the add-on and the "Beta APIs" experiment enabled
Run
/effect @s speed
Drink a bucket of Pasteurized Milk. Notice that the effect was removed
Exit the world, switch to a different language and rejoin the world
Run
/effect @s speed
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

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