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
It is recommended to get the basic lua extensions and pluto ones.
Create your first script
-
Navigate to the script folder with
.script folder -
Create a file ending with either .lua or .pluto
-
Write an example Hello World to the created file:
- Pluto
- Lua
hello_world.plutoplutoprint("Hello World!")hello_world.lualuaprint("Hello World!") -
Run the script with
.script load <scriptname> -
The hello world will be displayed in the chat