Documentation Guide
Creating Scenes
Master the art of narrative design.
Narrative Scenes
Scenes are YAML files located in plugins/AxLore/scenes/.
Anatomy of a Scene
yaml
title:
en: "The Ancient Prophecy"
es: "La Antigua Profecía"
display-mode: BOTH
intro-audio: "church_bells"
voice-id: "pNInz6obpg8ndMsc7H8p"
one-time: true # Play only once per player
texts:
en: "The ancient seal has been broken. Terror awaits us."
es: "El sello antiguo se ha roto. El terror nos espera."
Triggers & Events
AxLore supports various ways to trigger a narrative automatically:
- JOIN: Triggers when a player enters the server.
- FIRST_JOIN: Perfect for an immersive tutorial intro.
- INTERACT: Triggers when right-clicking a block (Value: Material Name, e.g.,
DEEPSLATE_COAL_ORE). - NPC: Triggers when right-clicking a Citizens NPC (Value: NPC ID).
- ZNPC: Triggers when right-clicking a ZNPCsPlus NPC (Value: NPC Name).
- COMMAND: Triggers via customized command logic.
- WG_FLAG: Triggers when entering a WorldGuard region with the
axlore-sceneflag. - MYTHIC_DEATH: Triggers when a MythicMob dies (Value: Internal Mob ID).
- MYTHIC_INTERACT: Triggers when right-clicking a MythicMob (Value: Internal Mob ID).
- QUEST_START: Triggers when starting a Quest (Value: Quest Title).
- QUEST_COMPLETE: Triggers when finishing a Quest (Value: Quest Title).
- SKILL_LEVEL: Triggers on level up (Value:
skill:level, e.g.,mining:10).
Example Config:
yaml
trigger:
type: NPC
value: "42" # Triggers when clicking NPC #42
# RPG Example: Custom Boss Dialogue
trigger:
type: MYTHIC_INTERACT
value: "SkeletonKing"
⚔️ Detailed RPG configuration
When using RPG triggers, ensure the value matches exactly what the plugin uses internally.
| Plugin | Value to use |
|---|---|
| MythicMobs | the InternalName in your mob YAML file. |
| Quests | the Title of the quest as defined in your quest editor. |
| AuraSkills | the skill name + level (e.g., agility:25). |
| McMMO | the skill name + level (e.g., unarmed:100). |
Generation Process
- Define the scene.
- Run
/axlore generate <name>. - The plugin will convert text to high-quality OGG files.
Pro Tip
Use the `/axlore admin` GUI to edit and test scenes in real-time.
💡 Special "Secret" Features
- Typewriter Effect: In Hologram mode, the letters appear one by one synchronized with the audio, creating a "real talking NPC" feel.
- Intro Synchronization: If you place an MP3 file in the
/introsfolder, the plugin will play it just before the AI voice, ideal for preceding sound effects (a roar, wind, etc.). - Language Detection: The plugin automatically detects the player's client language if the texts are correctly configured in the scene.
- One-Time Scenes: Set
one-time: trueto ensure a player only experiences a scene once in their entire adventure (saved via NBT).
[Placeholder: Scene Editor GUI Screenshot]
(Replace this component with <img src="..." /> when your screenshot is ready)
Was this helpful?
Help us improve our documentation.(Anonymous & any language)