First, create the following folder
📂BP
└📄manifest.json
└📚pack_icon.png
└📂dialogue
└📄secen.json
Code Type
secne_tag - You can add scene tags
default - dialogue
npc_name - Name of the block
text - Dialog text
on_open_command - Execute command on open
on_close_command - Execute command on close
buttons - You can add up to six buttons.
example
{
"format_version": "1.17.20",
"minecraft:npc_dialogue": {
"scenes": [
{
"scene_tag": "dialogue",
"npc_name": "",
"text": "",
"on_open_commands": [
"/help"
],
"on_close_commands": [
"/help"
],
"buttons": [
{
"name": "My Button",
"commands": [
""
]
},
{
"name": "My Button",
"commands": [
""
]
},
{
"name": "My Button",
"commands": [
""
]
},
{
"name": "My Button",
"commands": [
""
]
},
{
"name": "My Button",
"commands": [
""
]
},
{
"name": "My Button",
"commands": [
""
]
}
]
}
]
}
}
Then, enable the add-on and use a custom block that supports dialogue, and you'll be able to use the dialogue you entered.