| home | true |
|---|---|
| heroImage | /logo.png |
| title | mcscript |
| actionText | Get Started → |
| actionLink | /guide/ |
| footer | MIT Licensed | Copyright © 2020 Stevertus |
Use a programming language built ontop of Minecrafts functions to add new expressions, generators and simplify development.
Start programming with mcscript today with the help of my video course:
<iframe width="560" height="315" style="margin: 0 calc(50% - 280px)" src="https://www.youtube-nocookie.com/embed/ShXr2-OD3lw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>Variables can store numbers, output these and perform operations. Minecraft Script now brings them to Minecraft Vanilla.
var var1;
var var2 = 5;
var1 = 10;
var2 += 5;
var1 += var2;Have you ever had something that repeats itself over and over again? This is called a loop and is now also available in Minecraft!
for(1,5){
log($(i))
}
while('entity @s[tag=loop]'){
}Simply summarize If conditions and name multiple conditions. Everything is controlled by mcscript!
if("entity @s"){
/say entity found
}
// else statement
if("entity @s"){
/say entity found
} else {
/say elsewhise command
}Generate unlimited new files, merge files or use everything together in a loop. There are no limits in creativity except the space of your computer.
#file: file1
#this is file 1
#file: file2
#this is file 2
The installation requires the Node.js environment and the Node Package Manager.
This is achieved the best way by using the installer: nodejs.org/en/download/
Install the mcscript-cli with:
npm install -g mcscriptIf a successful answer apears you have done everything right and can start.