page_type | author | description | ms.author | ms.date | languages | products | ||
---|---|---|---|---|---|---|---|---|
sample |
mammerla |
An add-on for Minecraft and the Minecraft Editor for managing debug states and configuration. |
07/16/2024 |
|
|
This sample contains a set of simple debug tools for adding in-game and editor watches.
Install Node.js tools, if you haven't already
We're going to use the package manager npm to get more tools to make the process of building our project easier.
Visit https://nodejs.org/.
Download the version with "LTS" next to the number and install it. (LTS stands for Long Term Support, if you're curious.) In the Node.js Windows installer, accept the installation defaults. You do not need to install any additional tools for Native compilation.
Install Visual Studio Code, if you haven't already
Visit the Visual Studio Code website and install Visual Studio Code.
-
Use npm to install dependent modules:
npm i
-
Use this shortcut command to open the project in Visual Studio Code:
code .
Within the root folder (debug_tools) of this sample, run this command:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Run this one to deploy in the game.
npm run local-deploy
If you'd like to run deployment in a watch mode, run the following:
npm run local-deploy -- --watch
Run this one to deploy in the editor mode.
npm run local-deploy-editor
- just.config.ts: This file contains build instructions for just-scripts, for building out TypeScript code.
- scripts: This contains Debug Tools TypeScript files, that will be compiled and built into your projects.
- behavior_packs: This contains resources and JSON files that define your behavior pack.