Add sound event schema and use where appropriate (#120)

* Fix typo in module name

* Add sound_event schema and add it where appropriate
This commit is contained in:
Piotr Brzozowski
2022-10-02 21:51:03 +02:00
committed by GitHub
parent 8b599b4562
commit c60e5c0d39
28 changed files with 444 additions and 38 deletions

View File

@@ -23,7 +23,7 @@
"title": "Condition"
},
"event_name": {
"type": "string",
"$ref": "../../../../general/sound_event.json",
"description": "Level sound event to be played as the ambient sound.",
"title": "Event Name"
}

View File

@@ -45,7 +45,7 @@
},
"angry_sound": {
"title": "Angry Sound",
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "The sound event to play when the mob is angry."
},

View File

@@ -17,7 +17,7 @@
"title": "Celeberation Targets"
},
"celebrate_sound": {
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "The sound event to play when the mob is celebrating.",
"title": "Celebrate Sound"

View File

@@ -61,7 +61,7 @@
"$ref": "../types/trigger.json"
},
"on_damage_sound_event": {
"type": "string",
"$ref": "../../../../general/sound_event.json",
"description": "Defines what sound to play, if any, when the on_damage filters are met.",
"title": "On Damage Sound Event"
}

View File

@@ -97,7 +97,7 @@
},
"play_sounds": {
"title": "Play Sounds",
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "List of sounds to play when the interaction occurs."
},

View File

@@ -54,13 +54,13 @@
"title": "Gravity"
},
"hit_ground_sound": {
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "The sound that plays when the projectile hits the ground.",
"title": "Hit Ground Sound"
},
"hit_sound": {
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "The sound that plays when the projectile hits something.",
"title": "Hit Sound"
@@ -601,7 +601,7 @@
"title": "Semi Random Diff Damage"
},
"shoot_sound": {
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "The sound that plays when the projectile is shot.",
"title": "Shoot Sound"

View File

@@ -69,7 +69,7 @@
"title": "Spawn Method"
},
"spawn_sound": {
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "plop",
"description": "Identifier of the sound effect to play when the entity is spawned.",
"title": "Spawn Sound"

View File

@@ -21,7 +21,7 @@
}
},
"begin_transform_sound": {
"type": "string",
"$ref": "../../../../general/sound_event.json",
"description": "Sound to play when the transformation starts.",
"title": "Begin Transform Sound"
},
@@ -106,7 +106,7 @@
"title": "Preserve Equipment"
},
"transformation_sound": {
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "Sound to play when the entity is done transforming.",
"title": "Transformation Sound"