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": { "admire_item_sound": {
"title": "Admire Item Sound", "title": "Admire Item Sound",
"type": "string", "$ref": "../../../../general/sound_event.json",
"description": "The sound event to play when admiring the item." "description": "The sound event to play when admiring the item."
}, },
"on_admire_item_start": { "on_admire_item_start": {

View File

@@ -44,9 +44,9 @@
"items": { "title": "Block ID", "$ref": "../../../../general/item/descriptor.json" } "items": { "title": "Block ID", "$ref": "../../../../general/item/descriptor.json" }
}, },
"avoid_block_sound": { "avoid_block_sound": {
"type": "string",
"title": "Avoid Block Sound", "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": { "walk_speed_modifier": {
"type": "number", "type": "number",

View File

@@ -11,9 +11,9 @@
}, },
"avoid_mob_sound": { "avoid_mob_sound": {
"title": "Avoid Mob Sound", "title": "Avoid Mob Sound",
"type": "string",
"default": "", "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": { "avoid_target_xz": {
"title": "Avoid Target XZ", "title": "Avoid Target XZ",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -29,7 +29,7 @@
}, },
"lay_egg_sound": { "lay_egg_sound": {
"title": "Lay Egg Sound", "title": "Lay Egg Sound",
"type": "string", "$ref": "../../../../general/sound_event.json",
"default": "lay_egg", "default": "lay_egg",
"description": "[EXPERIMENTAL] Sound event name for laying egg. Defaulted to lay_egg which is used for Turtles." "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": { "panic_sound": {
"title": "Panic Sound", "title": "Panic Sound",
"type": "string", "$ref": "../../../../general/sound_event.json",
"description": "The sound event to play when this mob is in panic." "description": "The sound event to play when this mob is in panic."
}, },
"sound_interval": { "sound_interval": {

View File

@@ -46,7 +46,7 @@
}, },
"pre_ram_sound": { "pre_ram_sound": {
"title": "Pre Ram Sound", "title": "Pre Ram Sound",
"type": "string", "$ref": "../../../../general/sound_event.json",
"default": "", "default": "",
"description": "The sound to play when an entity is about to perform a ram attack." "description": "The sound to play when an entity is about to perform a ram attack."
}, },
@@ -58,7 +58,7 @@
}, },
"ram_impact_sound": { "ram_impact_sound": {
"title": "Ram Impact Sound", "title": "Ram Impact Sound",
"type": "string", "$ref": "../../../../general/sound_event.json",
"default": "", "default": "",
"description": "The sound to play when an entity is impacting on a ram attack." "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." "description": "The event to send to the entity."
}, },
"sound_event": { "sound_event": {
"type": "string", "$ref": "../../../../general/sound_event.json",
"default": "", "default": "",
"description": "The sound event to play when this step happens." "description": "The sound event to play when this step happens."
} }
@@ -101,7 +101,7 @@
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"start_sound_event": { "start_sound_event": {
"type": "string", "$ref": "../../../../general/sound_event.json",
"title": "Start Sound Event", "title": "Start Sound Event",
"description": "The sound event to play when using this spell.", "description": "The sound event to play when using this spell.",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -61,7 +61,7 @@
"$ref": "../types/trigger.json" "$ref": "../types/trigger.json"
}, },
"on_damage_sound_event": { "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.", "description": "Defines what sound to play, if any, when the on_damage filters are met.",
"title": "On Damage Sound Event" "title": "On Damage Sound Event"
} }

View File

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

View File

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

View File

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

View File

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

View File

@@ -79,7 +79,7 @@
"description": "This is the name of the module that this pack depends on.", "description": "This is the name of the module that this pack depends on.",
"title": "Module Name", "title": "Module Name",
"enum": [ "enum": [
"mojang-gamtest", "mojang-gametest",
"mojang-minecraft", "mojang-minecraft",
"mojang-minecraft-server-admin", "mojang-minecraft-server-admin",
"mojang-minecraft-ui", "mojang-minecraft-ui",

View File

@@ -0,0 +1,408 @@
{
"$id": "blockception.minecraft.general.sound_event",
"type": "string",
"title": "Sound Event",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"enum": [
"add.chest",
"admire",
"agitated",
"ambient",
"ambient.aggressive",
"ambient.baby",
"ambient.basalt_deltas.additions",
"ambient.basalt_deltas.loop",
"ambient.candle",
"ambient.cave",
"ambient.crimson_forest.additions",
"ambient.crimson_forest.loop",
"ambient.crimson_forest.mood",
"ambient.in.raid",
"ambient.in.water",
"ambient.nether_wastes.additions",
"ambient.nether_wastes.loop",
"ambient.nether_wastes.mood",
"ambient.pollinate",
"ambient.screamer",
"ambient.soulsand_valley.additions",
"ambient.soulsand_valley.loop",
"ambient.soulsand_valley.mood",
"ambient.tame",
"ambient.warped_forest.additions",
"ambient.warped_forest.loop",
"ambient.warped_forest.mood",
"ambient.worried",
"angry",
"armor",
"armor.equip_chain",
"armor.equip_diamond",
"armor.equip_elytra",
"armor.equip_generic",
"armor.equip_gold",
"armor.equip_iron",
"armor.equip_leather",
"armor.equip_netherite",
"attach",
"attack",
"attack.nodamage",
"attack.strong",
"balloonpop",
"beacon.activate",
"beacon.ambient",
"beacon.deactivate",
"beacon.power",
"blast",
"block.bamboo_sapling.place",
"block.barrel.close",
"block.barrel.open",
"block.beehive.drip",
"block.beehive.enter",
"block.beehive.exit",
"block.beehive.shear",
"block.beehive.work",
"block.bell.hit",
"block.blastfurnace.fire_crackle",
"block.campfire.crackle",
"block.cartography_table.use",
"block.click",
"block.click.fail",
"block.composter.empty",
"block.composter.fill",
"block.composter.fill_success",
"block.composter.ready",
"block.enchanting_table.use",
"block.end_portal.spawn",
"block.end_portal_frame.fill",
"block.fletching_table.use",
"block.frog_spawn.break",
"block.frog_spawn.hatch",
"block.furnace.lit",
"block.grindstone.use",
"block.loom.use",
"block.scaffolding.climb",
"block.sculk.spread",
"block.sculk_catalyst.bloom",
"block.sculk_sensor.place",
"block.sculk_shrieker.place",
"block.sculk_shrieker.shriek",
"block.smithing_table.use",
"block.smoker.smoke",
"block.stonecutter.use",
"block.sweet_berry_bush.hurt",
"block.sweet_berry_bush.pick",
"block.turtle_egg.attack",
"block.turtle_egg.break",
"block.turtle_egg.crack",
"block.turtle_egg.hatch",
"boost",
"born",
"bottle.dragonbreath",
"bow",
"bow.hit",
"break",
"break.block",
"breathe",
"bubble.down",
"bubble.downinside",
"bubble.pop",
"bubble.up",
"bubble.upinside",
"bucket.empty.fish",
"bucket.empty.lava",
"bucket.empty.powder_snow",
"bucket.empty.water",
"bucket.fill.fish",
"bucket.fill.lava",
"bucket.fill.powder_snow",
"bucket.fill.water",
"bullet.hit",
"burp",
"cake.add_candle",
"camera.take_picture",
"cant_breed",
"cast.spell",
"cauldron_drip.lava.pointed_dripstone",
"cauldron_drip.water.pointed_dripstone",
"celebrate",
"charge",
"charge.sculk",
"chest.closed",
"chest.open",
"chime.amethyst_block",
"chorusdeath",
"chorusgrow",
"conduit.activate",
"conduit.ambient",
"conduit.attack",
"conduit.deactivate",
"conduit.short",
"convert_mooshroom",
"convert_to_drowned",
"convert_to_frog",
"convert_to_stray",
"converted_to_zombified",
"copper.wax.off",
"copper.wax.on",
"crossbow.loading.end",
"crossbow.loading.middle",
"crossbow.loading.start",
"crossbow.quick_charge.end",
"crossbow.quick_charge.middle",
"crossbow.quick_charge.start",
"crossbow.shoot",
"death",
"death.baby",
"death.in.water",
"death.mid.volume",
"death.min.volume",
"death.screamer",
"death.to.zombie",
"default",
"deny",
"detach",
"disappeared",
"drink",
"drink.honey",
"drink.milk",
"drip.lava.pointed_dripstone",
"drip.water.pointed_dripstone",
"drop.slot",
"eat",
"elderguardian.curse",
"elemconstruct.open",
"enderchest.closed",
"enderchest.open",
"explode",
"extinguish.candle",
"extinguish.fire",
"fall",
"fall.big",
"fall.small",
"fang",
"fire",
"fizz",
"flap",
"flop",
"fly",
"fuse",
"gallop",
"glass",
"glow_squid.ink_squirt",
"glowstick.use",
"growl",
"haggle",
"haggle.idle",
"haggle.no",
"haggle.yes",
"heartbeat",
"heavy.step",
"hit",
"horn_break",
"horn_call0",
"horn_call1",
"horn_call2",
"horn_call3",
"horn_call4",
"horn_call5",
"horn_call6",
"horn_call7",
"hurt",
"hurt.baby",
"hurt.in.water",
"hurt.screamer",
"icebomb.hit",
"ignite",
"imitate.blaze",
"imitate.cave_spider",
"imitate.creeper",
"imitate.elder_guardian",
"imitate.ender_dragon",
"imitate.enderman",
"imitate.evocation_illager",
"imitate.ghast",
"imitate.husk",
"imitate.illusion_illager",
"imitate.magma_cube",
"imitate.polar_bear",
"imitate.shulker",
"imitate.silverfish",
"imitate.skeleton",
"imitate.slime",
"imitate.spider",
"imitate.stray",
"imitate.vex",
"imitate.vindication_illager",
"imitate.warden",
"imitate.witch",
"imitate.wither",
"imitate.wither_skeleton",
"imitate.wolf",
"imitate.zombie",
"imitate.zombie_pigman",
"imitate.zombie_villager",
"irongolem.crack",
"irongolem.repair",
"item.book.put",
"item.fizz",
"item.shield.block",
"item.spyglass.stop_using",
"item.spyglass.use",
"item.trident.hit",
"item.trident.hit_ground",
"item.trident.return",
"item.trident.riptide_1",
"item.trident.riptide_2",
"item.trident.riptide_3",
"item.trident.throw",
"item.trident.thunder",
"item.use.on",
"item_given",
"item_taken",
"item_thrown",
"jump",
"jump.prevent",
"jump_to_block",
"land",
"large.blast",
"launch",
"lava",
"lava.pop",
"lay_egg",
"lay_spawn",
"leashknot.break",
"leashknot.place",
"levelup",
"listening",
"listening_angry",
"lodestone_compass.link_compass_to_lodestone",
"lt.reaction.bleach",
"lt.reaction.epaste",
"lt.reaction.epaste2",
"lt.reaction.fertilizer",
"lt.reaction.fire",
"lt.reaction.fireball",
"lt.reaction.icebomb",
"lt.reaction.mgsalt",
"lt.reaction.miscexplosion",
"lt.reaction.miscfire",
"lt.reaction.miscmystical",
"lt.reaction.miscmystical2",
"lt.reaction.product",
"mad",
"milk",
"milk.screamer",
"milk_suspiciously",
"mob.armor_stand.place",
"mob.player.hurt_drown",
"mob.player.hurt_freeze",
"mob.player.hurt_on_fire",
"mob.warning",
"mob.warning.baby",
"nearby_close",
"nearby_closer",
"nearby_closest",
"note",
"panic",
"pant",
"particle.soul_escape.loud",
"particle.soul_escape.quiet",
"pick_berries.cave_vines",
"piston.in",
"piston.out",
"place",
"plop",
"pop",
"portal",
"portal.travel",
"potion.brewed",
"power.off",
"power.off.sculk_sensor",
"power.on",
"power.on.sculk_sensor",
"pre_ram",
"pre_ram.screamer",
"prepare.attack",
"prepare.summon",
"prepare.wololo",
"presneeze",
"purr",
"purreow",
"raid.horn",
"ram_impact",
"ram_impact.screamer",
"random.anvil_use",
"reappeared",
"record.5",
"record.11",
"record.13",
"record.blocks",
"record.cat",
"record.chirp",
"record.far",
"record.mall",
"record.mellohi",
"record.otherside",
"record.pigstep",
"record.stal",
"record.strad",
"record.wait",
"record.ward",
"remedy",
"respawn_anchor.ambient",
"respawn_anchor.basalt_deltas.mood",
"respawn_anchor.charge",
"respawn_anchor.deplete",
"respawn_anchor.set_spawn",
"retreat",
"roar",
"saddle",
"scared",
"scrape",
"screech",
"shake",
"shear",
"shoot",
"shulker.close",
"shulker.open",
"shulkerbox.closed",
"shulkerbox.open",
"sleep",
"smithing_table.use",
"sneeze",
"sonic_boom",
"sonic_charge",
"sparkler.active",
"sparkler.use",
"spawn",
"splash",
"squid.ink_squirt",
"squish.big",
"squish.small",
"stare",
"step",
"step.baby",
"step_lava",
"stun",
"swim",
"swoop",
"takeoff",
"teleport",
"tempt",
"thorns",
"throw",
"thunder",
"tilt_down.big_dripleaf",
"tilt_up.big_dripleaf",
"tongue",
"tripod",
"twinkle",
"ui.cartography_table.take_result",
"ui.loom.take_result",
"ui.stonecutter.take_result",
"unfect",
"warn",
"water",
"whine"
]
}