This guide explains how to control an entity (such as a golem) using the Lua scripting interface.

It covers:

1. Available Globals

3. Movement & Basic Actions

4. Attacking

5. Messaging

6. Behavior Flags

7. Variables

8. Timer (Delta)

9. Finding Entities

10. Current Attack Target

11. Self Information

12. Example Scripts

13. Recommended Script Pattern

14. Common Mistakes