Short description of the issue:
A fatal scripting error occurs when an add-on script attempts to utilize specific interface properties (such as 'closest') via the Script API on Nintendo Switch. The bedrock engine fails the native type conversion from the JavaScript interface.
Steps to reproduce the issue:
Load a world with an add-on that utilizes the Script API (e.g., Alchemy add-on) on Nintendo Switch.
Enable "Beta APIs" or "Upcoming Creator Features" in the world settings.
Trigger the add-on's mechanic that requires entity/item searching or conversion processing.
Expected result:
The Minecraft bedrock engine should correctly process and convert the native types passed from the JavaScript interface without throwing errors.
Actual result:
The script crashes and outputs the following error log in the chat/log screen:
"[Scripting][error]-[Alchemy] TypeError: Native type conversion failed. Interface property ['closest'] expected type: (unlinked/unlinked.alchemy.js:2852)"
This occurs globally for all item interactions within the device.
Environment:
Device: Nintendo Switch
Minecraft Version: v1.26.30
Thank you for helping us improve Minecraft! We saved your files: