Mojira Archive
MCPE-189477

the game closes completely when I save & quit with a line in the scripts

if i have this line "const addEnch = new EnchantmentType(`${message}`);" in my script
after the script is executed, the "save & quit" button closes the game completely.
I uploaded a video of when it happens, and the js file I'm using, the npc only has the scriptevent command

Unresolved

XJos22X

2024-12-27, 11:21 PM

2024-12-27, 11:21 PM

0

0

Unconfirmed

1.21.51 Hotfix

-