Skip to main content

Introduction

Ambient Script API is built on a fork of gudzpoz's luajava (which is also a fork of the original luajava project).

warning

This documentation shows the extreme latest changes in the script api.

Before you start

Make sure that you have:

  • Some knowledge of lua and it's features
  • Understanding of Minecraft's codebase
tip
The use of a text editor is recommended

It is recommended to get the basic lua extensions and pluto ones.

Create your first script

  1. Navigate to the script folder with .script folder

  2. Create a file ending with either .lua or .pluto

  3. Write an example Hello World to the created file:

    hello_world.pluto
    pluto
    print("Hello World!")
  4. Run the script with .script load <scriptname>

  5. The hello world will be displayed in the chat