Getting Started
Learn how to install, set up, and create your first AsaJS project.
System requirements
Before you get started, make sure you have:
- Node.js installed
- Windows or Linux
Installation
Install the core package using npm:
Tip: It's recommended to use a
src
directory to organize your project.
In your package.json
, you can optionally add these scripts for development and production builds:
Project Structure
Create a src
directory and a main entry file inside it:
Sample Usage (src/app.js)
Tip: You can find the Bedrock Samples repository for vanilla Minecraft UI paths.
Building the Project
To compile the DSL and generate a resource pack:
For live rebuilding during development:
Output
The build process generates a full JsonUI-compatible resource pack, stored in:
.build
- compiled output.minecraft
- symbolic link for automatic installation (if configured)
Example Projects
Want to see AsaJS in action? Here are some example projects to help you get started quickly:
- Live Wallpaper Generator - Generate live wallpapers for your favorite UI Resource Packs.
- ItemID Viewer - A tool to view Item IDs as text in Minecraft: Bedrock Edition (This package updates automatically with each version, but users must update it manually here).
Next: Defining Elements
Defining Elements: Learn how to define and structure elements using AsaJS.