From f1c85575e0d4db1f538fd76816e8cff13cc9a22c Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Fri, 14 Jun 2024 18:20:57 +0500 Subject: [PATCH] - Add block sounds enum --- source/resource/blocks.json | 107 +++++++++++++++++++++++++++++++++++- 1 file changed, 105 insertions(+), 2 deletions(-) diff --git a/source/resource/blocks.json b/source/resource/blocks.json index 3aabb8f3..35298ed0 100644 --- a/source/resource/blocks.json +++ b/source/resource/blocks.json @@ -87,8 +87,111 @@ } ] }, - "sound": { "type": "string", "title": "Sound", "description": "The sound definition of this block." }, - "textures": { "$ref": "#/definitions/texture", "title": "Sound", "description": "Textures." } + "sound": { + "type": "string", + "title": "Sound", + "description": "The sound definition of this block.", + "enum": [ + "amethyst_block", + "amethyst_cluster", + "ancient_debris", + "anvil", + "azalea", + "azalea_leaves", + "bamboo", + "bamboo_sapling", + "bamboo_wood", + "bamboo_wood_hanging_sign", + "basalt", + "big_dripleaf", + "bone_block", + "calcite", + "candle", + "cave_vines", + "chain", + "cherry_leaves", + "cherry_wood", + "cherry_wood_hanging_sign", + "chiseled_bookshelf", + "cloth", + "comparator", + "copper", + "copper_bulb", + "copper_grate", + "coral", + "decorated_pot", + "deepslate", + "deepslate_bricks", + "dirt_with_roots", + "dripstone_block", + "frog_spawn", + "froglight", + "fungus", + "glass", + "grass", + "gravel", + "hanging_roots", + "hanging_sign", + "heavy_core", + "honey_block", + "itemframe", + "ladder", + "lantern", + "large_amethyst_bud", + "lever", + "lodestone", + "mangrove_roots", + "medium_amethyst_bud", + "metal", + "moss_block", + "moss_carpet", + "mud", + "mud_bricks", + "muddy_mangrove_roots", + "nether_brick", + "nether_gold_ore", + "nether_sprouts", + "nether_wart", + "nether_wood", + "nether_wood_hanging_sign", + "netherite", + "netherrack", + "nylium", + "packed_mud", + "pink_petals", + "pointed_dripstone", + "polished_tuff", + "powder_snow", + "roots", + "sand", + "scaffolding", + "sculk", + "sculk_catalyst", + "sculk_sensor", + "sculk_shrieker", + "sculk_vein", + "shroomlight", + "slime", + "small_amethyst_bud", + "snow", + "soul_sand", + "soul_soil", + "spore_blossom", + "stem", + "stone", + "suspicious_gravel", + "suspicious_sand", + "sweet_berry_bush", + "trial_spawner", + "tuff", + "tuff_bricks", + "vault", + "vines", + "web", + "wood" + ] + }, + "textures": { "$ref": "#/definitions/texture", "title": "Textures", "description": "Textures." } } } }