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.

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.
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 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.
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.
-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