Example games
DocsExample games

Learn by example

Example games

Explore three complete projects, from a minimal script to multiplayer and co-op games.

Choose a starting point

  • Hello World — a custom model mob, navigation, and a small scheduled gameplay loop
  • Bomberman — generated arenas, rounds, chain reactions, power-ups, quests, UI, and behaviors
  • Crystal Caverns — a cooperative three-wave expedition with mobs, regions, loot, quests, and HUD elements

Each demo is an ordinary game directory. Run it unchanged first, then modify one system at a time.

Run a demo

shell
AE2_GAME_DIR="$PWD/games/crystal-caverns" ./gradlew :apps:server:run

Connect Minecraft to localhost:25565. With Docker Compose, select the same project by setting AE2_GAME=crystal-caverns.

What to study

Start with scripts/main.js to see lifecycle and orchestration. Then follow imports into scripts/lib for testable game logic, behaviors for resource-specific reactions, and content for validated data.