2021-06-15 17:13:13 +00:00
{
2021-11-20 11:26:35 +01:00
"$schema" : "http://json-schema.org/draft-07/schema" ,
2021-10-04 11:22:20 +02:00
"$id" : "blockception.minecraft.behavior.dialogue" ,
2024-04-29 20:24:55 +07:00
"defaultSnippets" : [
{
2024-06-29 00:06:53 +05:00
"format_version" : "${1:1.20.80}" ,
2024-04-29 20:24:55 +07:00
"minecraft:npc_dialogue" : {
"scenes" : [
{
"scene_tag" : "$2"
}
]
}
}
] ,
2021-06-15 17:13:13 +00:00
"examples" : [
{
2024-06-29 00:06:53 +05:00
"format_version" : "1.20.80" ,
2021-06-15 17:13:13 +00:00
"minecraft:npc_dialogue" : {
"scenes" : [
{
"scene_tag" : "fast_travel" ,
"npc_name" : { "rawtext" : [ { "translate" : "dialogue.guide.name" } ] } ,
"text" : { "rawtext" : [ { "translate" : "dialogue.fast_travel.body" , "with" : [ "\n" ] } ] } ,
"buttons" : [ ]
}
]
}
}
] ,
2021-10-04 11:22:20 +02:00
"type" : "object" ,
"title" : "NPC Dialogue" ,
2022-07-22 19:41:04 +02:00
"description" : "Specifies the dialogue scenes." ,
2021-10-04 11:22:20 +02:00
"$comment" : "UNDOCUMENTED" ,
"additionalProperties" : false ,
"required" : [ "format_version" , "minecraft:npc_dialogue" ] ,
"properties" : {
2021-10-08 13:08:24 +02:00
"format_version" : { "$ref" : "../../general/format_version.json" } ,
2021-10-04 11:22:20 +02:00
"minecraft:npc_dialogue" : {
"title" : "NPC Dialogue" ,
2022-07-22 19:41:04 +02:00
"description" : "Specifies the dialogue of an npc." ,
2021-10-04 11:22:20 +02:00
"$comment" : "UNDOCUMENTED" ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"scenes" : {
"title" : "Scenes" ,
2022-07-22 19:41:04 +02:00
"description" : "The different scenes." ,
2021-10-04 11:22:20 +02:00
"$comment" : "UNDOCUMENTED" ,
"type" : "array" ,
"minItems" : 1 ,
"items" : {
"title" : "Scene" ,
2022-07-22 19:41:04 +02:00
"description" : "A single scene specification." ,
2021-10-04 11:22:20 +02:00
"$comment" : "UNDOCUMENTED" ,
"type" : "object" ,
"additionalProperties" : false ,
"required" : [ "scene_tag" ] ,
"examples" : [ { "scene_tag" : "foo_intro" } ] ,
"properties" : {
"buttons" : {
"title" : "Buttons" ,
2022-07-22 19:41:04 +02:00
"description" : "This is where you can create buttons for your NPC." ,
2021-10-04 11:22:20 +02:00
"type" : "array" ,
"maxItems" : 6 ,
"items" : {
"title" : "Button" ,
2022-07-22 19:41:04 +02:00
"description" : "This is where you can create buttons for your NPC." ,
2021-10-04 11:22:20 +02:00
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"name" : {
"title" : "Name" ,
2022-07-22 19:41:04 +02:00
"description" : "Set the text that is going to be displayed on your NPC’ s button." ,
2022-05-09 09:33:43 +02:00
"oneOf" : [ { "type" : "string" } , { "$ref" : "../../general/rawtext/rawtext.json" } ]
2021-10-04 11:22:20 +02:00
} ,
"commands" : {
"type" : "array" ,
2022-07-22 19:41:04 +02:00
"description" : "allows you to add commands which will be run in-game when the button is pressed." ,
2021-10-04 11:22:20 +02:00
"title" : "Commands" ,
"items" : {
"title" : "Minecraft Command" ,
2022-07-22 19:41:04 +02:00
"description" : "The commands to execute." ,
2021-10-04 11:22:20 +02:00
"type" : "string" ,
"pattern" : "^/[a-z].*$"
}
}
}
}
} ,
"npc_name" : {
"title" : "NPC Name" ,
"description" : "This is where you can add or change a name for your NPC dialogue box. This is an optional property that is useful for dynamically changing NPC names." ,
2022-05-09 09:33:43 +02:00
"oneOf" : [ { "type" : "string" } , { "$ref" : "../../general/rawtext/rawtext.json" } ]
2021-10-04 11:22:20 +02:00
} ,
"on_close_commands" : {
"type" : "array" ,
2022-07-22 19:41:04 +02:00
"description" : "This is where you can define which commands will fire when the NPC dialogue box closes." ,
2021-10-04 11:22:20 +02:00
"title" : "On Close Commands" ,
"items" : {
"title" : "Minecraft Command" ,
2022-07-22 19:41:04 +02:00
"description" : "A minecraft command to execute." ,
2021-10-04 11:22:20 +02:00
"type" : "string" ,
"pattern" : "^/[a-z].*$"
}
} ,
"on_open_commands" : {
"type" : "array" ,
2022-07-22 19:41:04 +02:00
"description" : "This is where you can define which commands will fire when the NPC dialogue box opens." ,
2021-10-04 11:22:20 +02:00
"title" : "On Close Commands" ,
"items" : {
"title" : "Minecraft Command" ,
2022-07-22 19:41:04 +02:00
"description" : "A minecraft command to execute." ,
2021-10-04 11:22:20 +02:00
"type" : "string" ,
"pattern" : "^/[a-z].*$"
}
} ,
"scene_tag" : {
"title" : "Scene Tag" ,
"description" : "This is the name you will use to call this scene in-game. This is a required property." ,
"type" : "string"
} ,
"text" : {
"title" : "Text" ,
"description" : "This is where you enter the dialogue you want your NPC to display in-game for this scene. You can type the dialogue text directly here or use raw text if you are using a language file. This is an optional property, but without it your NPC dialogue box will be empty." ,
2022-05-09 09:33:43 +02:00
"oneOf" : [ { "type" : "string" } , { "$ref" : "../../general/rawtext/rawtext.json" } ]
2021-10-04 11:22:20 +02:00
}
}
}
}
}
}
}
2021-06-15 17:13:13 +00:00
}