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

@@ -10,7 +10,7 @@
},
"admire_item_sound": {
"title": "Admire Item Sound",
"type": "string",
"$ref": "../../../../general/sound_event.json",
"description": "The sound event to play when admiring the item."
},
"on_admire_item_start": {

View File

@@ -44,9 +44,9 @@
"items": { "title": "Block ID", "$ref": "../../../../general/item/descriptor.json" }
},
"avoid_block_sound": {
"type": "string",
"title": "Avoid Block Sound",
"description": "The sound event to play when the mob is avoiding a block."
"description": "The sound event to play when the mob is avoiding a block.",
"$ref": "../../../../general/sound_event.json"
},
"walk_speed_modifier": {
"type": "number",

View File

@@ -11,9 +11,9 @@
},
"avoid_mob_sound": {
"title": "Avoid Mob Sound",
"type": "string",
"default": "",
"description": "The sound event to play when the mob is avoiding another mob."
"description": "The sound event to play when the mob is avoiding another mob.",
"$ref": "../../../../general/sound_event.json"
},
"avoid_target_xz": {
"title": "Avoid Target XZ",

View File

@@ -7,10 +7,10 @@
"properties": {
"priority": { "$ref": "types/priority.json" },
"celebration_sound": {
"type": "string",
"default": "",
"description": "The sound event to trigger during the celebration.",
"title": "Celebration Sound"
"title": "Celebration Sound",
"$ref": "../../../../general/sound_event.json"
},
"duration": {
"type": "number",

View File

@@ -10,7 +10,7 @@
},
"aggro_sound": {
"title": "Aggro Sound",
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "Sound to occasionally play while defending."
},

View File

@@ -152,7 +152,6 @@
"random_stop_interval": 0,
"reach_multiplier": 2,
"require_complete_path": true,
"sound_event": "example",
"track_target": false
}
]

View File

@@ -15,7 +15,7 @@
},
"eat_mob_sound": {
"title": "Eat Mob Sound",
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "Sets the sound that should play when eating a mob."
},

View File

@@ -45,7 +45,7 @@
},
"throw_sound": {
"title": "Throw Sound",
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "Sound to play when this mob throws an item."
},

View File

@@ -40,7 +40,7 @@
},
"throw_sound": {
"title": "Throw Sound",
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "item_thrown",
"description": "Sound to play when this mob throws an item."
},

View File

@@ -29,7 +29,7 @@
},
"lay_egg_sound": {
"title": "Lay Egg Sound",
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "lay_egg",
"description": "[EXPERIMENTAL] Sound event name for laying egg. Defaulted to lay_egg which is used for Turtles."
},

View File

@@ -41,7 +41,7 @@
},
"panic_sound": {
"title": "Panic Sound",
"type": "string",
"$ref": "../../../../general/sound_event.json",
"description": "The sound event to play when this mob is in panic."
},
"sound_interval": {

View File

@@ -46,7 +46,7 @@
},
"pre_ram_sound": {
"title": "Pre Ram Sound",
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "The sound to play when an entity is about to perform a ram attack."
},
@@ -58,7 +58,7 @@
},
"ram_impact_sound": {
"title": "Ram Impact Sound",
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "The sound to play when an entity is impacting on a ram attack."
},

View File

@@ -23,7 +23,7 @@
"description": "The event to send to the entity."
},
"sound_event": {
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "The sound event to play when this step happens."
}
@@ -101,7 +101,7 @@
"$comment": "UNDOCUMENTED"
},
"start_sound_event": {
"type": "string",
"$ref": "../../../../general/sound_event.json",
"title": "Start Sound Event",
"description": "The sound event to play when using this spell.",
"$comment": "UNDOCUMENTED"

View File

@@ -34,7 +34,7 @@
"pattern": "^loot_tables/.*.json$"
},
"prepare_sound": {
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "Sound to play when the sneeze is about to happen.",
"title": "Prepare Sound"
@@ -54,7 +54,7 @@
"title": "Probability"
},
"sound": {
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "Sound to play when the sneeze occurs.",
"title": "Sound"

View File

@@ -33,13 +33,13 @@
},
"attack_sound": {
"title": "Attack Sound",
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "Sound event for the attack."
},
"charge_sound": {
"title": "Charge Sound",
"type": "string",
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "Sound event for the charge up."
},

View File

@@ -153,7 +153,6 @@
"random_stop_interval": 0,
"reach_multiplier": 2,
"require_complete_path": false,
"sound": "example",
"track_target": false,
"stomp_range_multiplier": 0.0,
"no_damage_range_multiplier": 0.0

View File

@@ -121,7 +121,7 @@
"title": "Size"
},
"sound_event": {
"type": "string",
"$ref": "../../../../general/sound_event.json",
"description": "The sound event to play for this step.",
"title": "Sound Event"
},
@@ -147,7 +147,7 @@
}
},
"start_sound_event": {
"type": "string",
"$ref": "../../../../general/sound_event.json",
"description": "The sound event to play when using this spell.",
"title": "Start Sound Event"
},

View File

@@ -50,7 +50,7 @@
]
},
"tempt_sound": {
"type": "string",
"$ref": "../../../../general/sound_event.json",
"description": "Sound to play while the mob is being tempted.",
"title": "Tempt Sound"
},