GameTest Interpreter (v1.19.10)
GameTest interpreter is an add-on that directly executes instructions written in a programming or scripting language into GameTest Framework, the new scripting engine for Minecraft: Bedrock Edition.
The add-on currenly allows JavaScript and TypeScript code to be executed, and is mainly for debugging code snippets in game.
JavaScript Interpreter

Currenly JavaScript is the only programming language that allow developers to use GameTest Framework APIs from within their code.
This add-on allows developers to debug JavaScript code and reports an error condition immediately in Minecraft in-game using this interpreter. This reduces the amount of script errors happened in your code development and time, and allows developers to experiment with the new features available in GameTest Framework API modules in Minecraft.
To learn more about GameTest API, please visit GameTest Documentation.
Here are some examples executing JavaScript in-game:
This script makes the world / script engine say "running"


This script shows the script has error.


To get started:
- Type $javascript in chat to get the enchantment book
- Use the enchantment book to open the interpreter
- Type your javascript code in the chat
- Press Submit button to start executing your code
TypeScript Interpreter

TypeScript is a superset of JavaScript that adds syntax for types to compile to a clean JavaScript output.
This add-on has converted TypeScript source code from a CommonJS module to a ECMAScript module to become compatible with GameTest Framework.
This interpreter has the ability to show which character in a line of code has caused an error

To get started:
- Type $typescript in chat to get the enchantment book
- Use the enchantment book to open the interpreter
- Type your typescript code in the chat (This interpreter do not support javascript input)
- Press Submit button to start the compiler
- Wait until an error prompt pops up or a JavaScript interpreter with compiled code
- Press Submit button again to execute your code
Documentations
The documentations of this add-on are available in interpreter GitHub repository.
Click here or the downloads section for more information's!
Attributions
The following list contains packages the add-on uses, they either have open-source license or asked for permission:
- TypeScript - licensed under the Apache License 2.0
- @types/mojang-minecraft - licensed under the MIT license
- @types/mojang-minecraft-ui - licensed under the MIT license
- @types/mojang-minecraft-server-admin - licensed under the MIT license
- @types/mojang-net - licensed under the MIT license
- @types/mojang-gametest - licensed under the MIT license
Trailer
Showcase video of the add-on
Please subscribe to JaylyMC and Jaylyextra thank you.
?nbsp;
License
This add-on source code is licensed under GNU General Public License v3.0, this means:
You are allowed to download and use for
- Commercial use
- Modification
- Distribution
- Patent use
- Private use
With limitations such as
- Liability
- Warranty
You must
- Acknowledge the license and copyright notice of the add-on
When you're showcasing this add-on to social media, you must redirect this add-on to this webpage with no alternative download links (mediafire, linkvertise etc.), this allows the creator to get the most accurate analytics for this project.
Interpreter changelog
The add-on releases an update for Minecraft beta/preview version 1.19.10 and Minecraft release 1.19.0, please check out the repository for updated changelogs.
- Update DTS files for @types/mojang-minecraft and default typescript libraries for better compile accuracy.
- Added @types/mojang-minecraft-ui, @types/mojang-minecraft-server-admin, and @types/mojang-net typings from NPM.
- Added support for "mojang-minecraft-server-admin" and "mojang-net" module.
These 2 modules are intended to use in Bedrock Dedicated Servers only. - Experimental: Added Python to the interpreter add-on, however import statement is not supported.
Installation
First you go to the download section and click "Download GameTest Interpreter".
You will be redirected to Linkvertise and GitHub, then the add-on will be downloaded to your device.
Import the add-on to Minecraft (Preferably Latest Minecraft Beta / Preview)
In the world setting, enable GameTest Framework in experimental section.


If your Minecraft version is below 1.18.30, the dialog will not appear when you type $javascript because of outdated API, you would have to start coding in chat with $ prefix.
To start coding on Minecraft versions below 1.18.30, you have to switch GameTest Framework version to below 1.18.30. For example:

Resolution name is subject to change, always recommend using this add-on in latest stable / preview version of Minecraft.
For more information, check out the documentation here.