This template is provided to help you get started making your own Bedrock Edition add-ons. It's packed with useful features and tools to help you succeed!
Are you still a beginner? Click here to get the JavaScript template instead.
- Automatic script reloading - This is achieved by using a WebSocket you can connect to once the watch server is started.
- Code reliability - Thanks to TypeScript, you'll get type errors and such before you even run the code.
- Download and install the latest version of Visual Studio Code, as well as the LTS version of Node.js.
- Create a new repo using this template and clone it locally.
- Extract the template to a folder of your choice. Open the folder in Visual Studio Code and feel free to change both the
manifest.json
files in thebehavior_pack
andresource_pack
folders located in thesrc
folder to your liking. Change thename
field in thepackage.json
file: that will be the name used for the folder to copy things in. - Open a terminal in Visual Studio Code and run
npm i -D
to install all the dependencies, including the development dependencies. - Run
npm run watch
to start the WebSocket and watch for changes in thesrc
folder. This will also automatically reload all the scripts when a change is detected. - Open Minecraft, create a new world with the add-on(s) installed and connect to the websocket using the command from the watch server (usually
/wsserver ws://localhost:3000
). - You're all set!