JaylyBot stands for "JaylyMC's Discord Bot". It is a Discord bot used in over 200 Discord servers which includes various Minecraft Scripting API toolings such as a TypeScript debugger for Minecraft scripting, within Discord.
The invite link to the bot is at the bottom of the post.
The type definition files (declaration files that contain only type information) for Minecraft modules such as @minecraft/server
are hosted on npmjs.com. This bot provides additional infomation on installing specific packages for Minecraft script development, and custom type definition files used in Script API Debugger for reference.
The /docs info
command returns installation commands for all Minecraft's npm packages tied to specific Minecraft versions. It was made because the Minecraft developers cannot manage to categorise the versions into 4 labels or 'dist-tags' on npm.
How does it work?
The npm version infomation are generated through a generator specifically for Script API, which involve parsing version strings with funky regex.
The /docs dump
command posts generated custom type definition of a Minecraft module used for Script API debugger. Keep in mind that some of the types may have modified from the original npm package files.
JaylyBot retrieves code exmaples from the ScriptAPI repository. Through the /script get
command, users can search for a script listed in scripts directory in the GitHub repository (in the 'main' branch).
This Discord bot can mainly debug your Minecraft scripts, for both Stable and Preview version of Minecraft. It is made possible through integrating TypeScript compiler into Discord.
Before debugging your scripts, make sure send your scripts with code blocks, with language type in js
or ts
:
```js
console.log("Hello World");
```
or with JavaScript / TypeScript files:
Upon selecting the action, this dropdown appears for you to choose the Minecraft version your script is run in.
Latest APIs: Debug scripts using non-experimental APIs for Minecraft release builds.
Latest Beta APIs: Debug scripts that requires Beta APIs experimental enabled for Minecraft release builds.
Preview APIs: Debug scripts using non-experimental APIs for Minecraft Preview builds.
Preview Beta APIs: Debug scripts that requires Beta APIs experimental enabled for Minecraft Preview builds.
Upon selecting the action, this dropdown appears for you to choose the Minecraft version your script is run in.
Latest APIs: Debug scripts using non-experimental APIs for Minecraft release builds.
Latest Beta APIs: Debug scripts that requires Beta APIs experimental enabled for Minecraft release builds.
Preview APIs: Debug scripts using non-experimental APIs for Minecraft Preview builds.
Preview Beta APIs: Debug scripts that requires Beta APIs experimental enabled for Minecraft Preview builds.
This Discord bot is public for everyone to invite to their Discord server, check it out: