🔥Get Started
In this page, we'll see how to use BlazeRun to compile your code.
ATTENTION: Everyting you'll see on this page is in development. You cannot run the commands and try the compiler for the moment.
BlazeRun is a nodejs program, hosted on the npm registery, so you'll need nodejs and npm to run BlazeRun. npm will be downloaded automatically if you download nodejs.
Download nodejs: https://nodejs.org/en/download
Then, to write the code, you'll need a code editor. I recommend for you to install Visual Studio Code.
Download VSCode: https://code.visualstudio.com/Download
Now, create a folder and open it with VSCode. Then, create a file with the .blaze extension, for exemple main.blaze. Next, open the terminal at this location and run npx blazerun main.blaze. It shoulds open a little terminal interface.
note: npx is a nodejs command that allows people to run nodejs programs hosted on the npm registery.
Now, write this simple code in main.blaze:
when PlayerJoin() do
giveItems(mc:diamond_sword)
endAnd finally type c in the terminal. It shoulds give you a command that you can copy, paste it in a command block ( in a singleplayer world ), take the block in your hotbar, save your hotbar, return to mcdiamondfire, load your saved hotbar and place the code template.
That's it!
Last updated