Play around with Minecraft’s insides!

Ever wish Minecraft had turn-based combat? Or that you could play chess in Minecraft? Or that I would stop opening these articles with rhetorical questions and just get to the point for once? All these things are possible, and so much more, now that scripting API is available in the Minecraft public beta!

But what is scripting API (Application Programming Interface)? Essentially, it's the art of tweaking a game’s insides – writing new commands into Minecraft's texty innards to modify the game. The Minecraft Script Engine uses the JavaScript language. Scripts can be written and bundled with Behaviour Packs to listen and respond to game events, get (and modify) data in components that entities have, and affect different parts of the game.

Let's look at some of the cool stuff players have already done with it!

An example of a Turn-Based RPG Combat System using the Minecraft Script Engine!

And here's an example of gameplay in the Mob Arena Minigame that is made with scripting. The minigame spawns waves of enemies for the player to fight and tracks the player's score for each one defeated!

Today it can be used to mod UI elements, animations and entities, but this is just the beginning – we 'll be rolling out more and more capabilities as we go on!

Let us know what you think and what you want to see next on our Feedback Site (where you can also see a few bug fixes that are helpful for beta players on Xbox One and Android too). We can't wait to see what you come up with!

Written by
Tom Stone