promotional bannermobile promotional banner
premium banner
Custom dialogue for any entity which gets displayed in a nice text box similiar to known rpg games

Description

Now also available for 1.20.1, 1.21.1, and 1.21.11!


Dynamic Dialogues adds a dynamic dialogue system which allows to create dialogue seperate from entitites. Meaning that all dialogue is saved seperately from the entities and can be attached to any entity you like. Even if it's from a different mod! 

The Mod further adds an ingame editor for creating the dialogue and displays it inside a nice simple text box similiar to the ones of classic rpg games.

Example of the text box that shows the dialogue


How to use:

Use the /dialogue editmode command to activate (or deactivate) the edit mode. You can then right-click on any entity to create a new dialogue configuration (a group of dialogues) and open the dialogue editor. 

Alternatively you can also right-click an entity while holding the Dialogue Wand Item the mod adds. 

Creating a new dialogue configuration

If the entity does not have any dialogue yet you will see this screen that asks you to create a new dialogue configuration. A dialogue configuration is like a grouping of dialogue. This is necessary due to some other more advanced features of the mod. You can also click on "Select" here to import an already existing configuration instead.

In case of creating a new one: choose a name which is easy to recognize and helps to differentiate it from future configurations. Ideally the entity's or npc's name combined with a number, or in relation to the content of your dialogue. Then click on "Create" to enter the dialogue editor.

The Dialogue Editor

The Dialogue Editor consists of multiple elements: The text box (on the bottom), the dialogue overview (in the top-left corner), the page indicator (top-center), and the menu buttons in the top-right corner.

  • The text box is where the dialogue is displayed in. And also the place where it is written. Just click on it to focus and write your text directly in it. Once the box is full, you can use the arrow buttons next to the page indicator to move to a new page. 
  • The dialogue overview lists all of your specific dialogues added to the dialogue configuration. The mod allows to add multiple dialogues to an entity, so a different one can be showed with every new interaction! The "SHUFFLE" Button displays the current mode in which order they appear. New Dialogues can be created with "+" and removed with "-". The up and down arrow buttons control the order dialogues appear when a "sequence"-mode is selected. Available modes are the following:
    • SHUFFLE - Dialogues appear in random order
    • SHUFFLE_STOP - Currently same as shuffle.
    • SEQUENCE_REPEAT - Dialogues appear in a set order. Repeats after the last was showed.
    • SEQUENCE_HOLD - Dialogues appear in a set order. Repeats only the last one over and over.
    • SEQUENCE_STOP - Dialogues appear in a set order. But no more dialogue gets showed after the last one.
  • The Menu buttons contain the done button (the check mark) and the cancel button (cross) to close the menu, and also a settings button (represented by the gear) with further buttons and options in the future. In the settings menu you can find buttons to change the current dialogue configuration to another one, a way to detach all dialogue from the entity (without deleting it!) and delete the player data (the information that is saved, which dialogue was seen last by which player to display them the correct order of dialogues)

After you have added your dialogue text you can close the menu with the check mark button, deactivate the edit mode, and interact with the entity via right-click to see it displayed. 


Additional Information

-Dialogues are stored inside the world folder in "dialogue-data" as <name>.dialogue.json files. There is also a "register.json" file which stores which entity has which dialogue. For this, entity UUIDs and the dialogue configuration file name (without the ending) are used.

-There ist also a /dialogue set <entity> <dialogue configuration name> command which allows to attach a dialogue to an entity via a command. Additionally there is /dialogue detach <entity> to detach it.

-The Dialogue Wand Item can be found inside the miscellaneous creative tab.

-The Mod does NOT add any npcs. You will need an extra mod for that like CustomNPCs, or CosmicNPCs