You can expect that resources from Mojang and other places around the community will be written in JavaScript. TypeScript is converted into JavaScript, and although it helps to write less buggy code, it does add an additional layer of complexity that will be avoided for these tutorials. It's about catching bugs early and making you a more efficient developer, while at the same time leveraging the JavaScript community. The bestĭescription I've read about can be found on Stack Overflow ( What is TypeScript and why would I use it in place of JavaScript): With that, minecraft-addon-tools provides definitions for a language called TypeScript.
Supports the features that were introduced in EcmaScript 5.1 (EcmaScript being the specification for JavaScript versions).ĭespite it's ubiquity, it does have a reputation in some circles for being very easy to write code that is buggy or doesn't work at all. Various forms since May 1995, with many new revisions and additions made to the language in the years since. It is a very widely used language, most commonly used in your web browser. JavaScript is the add-on scripting language. When setting up your add-on, you will have been presented with at least two options, JavaScript and TypeScript. The official documentation in order to avoid something breaking because of the spelling being wrong Scripting Languages The use of the term behavior follows US spelling, in order to save on confusion it will always be referred to in the same spelling as in
This warrants a full explanation, see below What kind of modules will make up the addon? (Behaviors, Resources) The namespace helps to separate your add-on's functionality from other add-ons so they do not collide This will be the description displayed in Minecraft when the player selects your add-onĭemonstrate a very basic Minecraft Add-on
This will be the name displayed in Minecraft when players select your add-on This information will be used to both structure the add-on directories and create the various files that Minecraft will use to identify the add-on. generator-minecraft-addon will ask you a number of questions about your add-on and how you wish to develop it, This tutorial, we'll be using C:\Dev\Minecraft mkdir \Dev\Minecraft With these installed, we'll need a directory on your computer to develop your code in, so create a directory and enter it, for the sake of
Npm install -global generator-minecraft-addon Start by installing both of these tools globally.
Is a generator for yeoman, which itself is a tool made for quickly putting together a project. To get started quickly, we'll be using generator-minecraft-addon, which Now that you have all the tools installed, it's time to create your first add-on. That means that you will need to follow the Mojang guide to get signed up for It's highly recommended that when you install Node JS, you leave the option "Add to PATH" selected.Īs of the time of writing, the scripting API is in public Beta.
To use the additional tools we provide, you will need some additional dependencies Software Visual Studio Community 2017 with the following components installed: 'JavaScript diagnostics', 'JavaScript and TypeScript language support', 'Just-In-Time debugger'ġ.0 GB of free space for text editor, game, and scriptsģ.0 GB of free space for Visual Studio, game, and scripts
Visual Studio Code or any plain-text editor The bare minimum you will need are the Mojang recommended requirements: Software
Provide additional tools to make it easier to make it easier and faster to make your add-on. In order to develop a script add-on, you will need a number of things. There is a community dedicated to Bedrock Add-on development in Discord: Pre-requisites It is now possible for anybody to participate in the beta and write your own scripts for minecraft, and this tutorial series is here to help get Group to test it out (versions 1.8.0.50 and 1.8.0.51), then on the 5th of December, the API was given to the public beta community. On the 24th of October, the scripting documentation was released to the public for review, and the scripting API made available to a small focus You're about to embark on a journey of extending Minecraft to add functionality and content that the original creators had not imagined that the