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"
},

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"

View File

@@ -79,7 +79,7 @@
"description": "This is the name of the module that this pack depends on.",
"title": "Module Name",
"enum": [
"mojang-gamtest",
"mojang-gametest",
"mojang-minecraft",
"mojang-minecraft-server-admin",
"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"
]
}