Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

home true
heroImage /logo.png
title mcscript
actionText Get Started →
actionLink /guide/
footer MIT Licensed | Copyright © 2020 Stevertus

Are you ready?

Everything is open-source

Everything well documentated

A programming language for datapacks!

Use a programming language built ontop of Minecrafts functions to add new expressions, generators and simplify development.

Get Started!

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

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;

Loops

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]'){

}

Conditions And If-Statements

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
}

Clever File Handling

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

Installation

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 mcscript

If a successful answer apears you have done everything right and can start.

Get Connected With the Community and get Update