詳細:Does not match the 1.10 format - there no longer seems to be a "category" field and the events list may be out of date
sounds.json(Bedrock Editionではsound_definitions.json)は、リソースパックのサウンドシステムで使用されるファイルであり、サウンドイベントが1つ以上のゲームイベントによってトリガーされた時に、どのサウンドファイルを再生するかをサウンドシステムに指示する。このファイルはリソースパックのassets/minecraftにあり、デフォルトのファイルは.minecraft/assets/objects(Bedrock Editionではassets/resoure_packs/vanilla/sounds)にある。ハッシュ化された名前については.minecraft/assets/indexes/<バージョン>.jsonで検索することで見つけられる。
ファイルの記述形式
このファイルはJSON形式で保存されるが、ここではNBTを使用して表している。
- ルートオブジェクト
- サウンドイベント: サウンドイベント。名前は通常カテゴリ(
entity.enderman.stareなど)で区切られている。全てのデフォルトのサウンドイベントを以下の表に示す(minecraftファイルとは異なる名前空間を取得するには、ここで定義するのではなく、べつの名前空間の下にする必要がある)。- replace: true/false。リソースパックでのみ使用される。このサウンドイベントのデフォルトのsounds.jsonにリストされているサウンドを、soundsにリストされているサウンドで置き換えるかどうかを指定する場合はtrue。デフォルトのサウンドリストにリストされているサウンドを追加する場合はfalseを指定する。省略可能。未定義の場合、デフォルトはfalseである。
- subtitle: ゲーム内で[字幕を表示]が有効になっている場合、サウンドの字幕として翻訳される。任意。
- sounds: このサウンドイベントが使用するサウンドファイル。リストされたサウンドの1つがランダムに選択され、このサウンドイベントがトリガーされた時に再生される。任意。
- 「名前空間/sounds」フォルダからのサウンドファイルのパス。スラッシュを使用する。名前空間のデフォルトは「minecraft」だが、名前空間を前に付けて「:」で区切ることで変更できる。
- サウンドファイル。このオブジェクトは、サウンドに追加の文字列が必要な場合にのみ使用される。
- name: 「名前空間/sounds」フォルダからのサウンドファイルのパス。名前空間のデフォルトは「minecraft」だが、名前空間を前に付けて「:」で区切ることで変更できる。バックスラッシュではなくスラッシュを使用する。別のサウンドイベントの名前の場合もある。
- volume: このサウンドが再生される音量。値は0.0から1.0の間の小数。未定義の場合、デフォルトは1.0。
- pitch: 指定された値のピッチで再生する。未定義の場合デフォルトは1.0だが、それより高い値や低い値を選択できる。
- weight: このサウンドイベントがトリガーされた際に、このサウンドが選択されて再生される可能性。デフォルトは1。例:値に2を入れると、名前が2つ入るようなものになる。整数のみを受け入れる。
- stream: true/false。このサウンドをファイルからストリーミングする場合はtrue。遅延を回避するため、ある程度長い継続時間を持つサウンドの場合は「true」に設定することを強くお勧めする。「music」カテゴリと「record」カテゴリに属する(ほぼ)すべてのサウンドが1分以上あるため、これらのカテゴリのすべてのサウンド(音符ブロックのサウンドを除く)に使用される。任意。未定義の場合、デフォルトはfalse。これをfalseに設定すると、サウンドの多くのインスタンスを同時に実行できるが、trueに設定すると、同時に実行できるのは(そのタイプの)4つのインスタンスのみとなる。
- attenuation_distance: 距離に基づいて音の低減率を変更する。ポータル、ビーコン、コンジットに使用される。
- preload: true/false。サウンドの再生時ではなく、パックの読込時にこのサウンドを読み込む必要がある場合はtrue。水中の環境音で使用される。デフォルトはfalse。
- type: 2つの値、「sound」と「event」を使用できる。「sound」はファイル名から再生され、「event」は定義済みのイベントから再生される。未定義の場合、デフォルトは「sound」。
- サウンドイベント: サウンドイベント。名前は通常カテゴリ(
1.10以前のsounds.jsonの例:こちら。
Dinnerboneの1.10より前の仕様についてはこちらをご覧ください。
サウンドイベント
サウンドイベントは、1つ以上のゲーム内イベントにリンクされている。2つのサウンドイベントは同じサウンドファイルを共有できるが、異なるゲーム内イベントに対応するか、異なるサウンドカテゴリに属す。一部の有効なサウンドイベントはsounds.jsonに含まれていないが、ゲーム内イベントに関連付けられていないものもある。ゲーム内イベントがないサウンドイベントは、/playsoundでのみ再生できる。全てのデフォルトのサウンドイベント、それらが使用するサウンド、属するカテゴリ、そのイベントで再生される字幕、およびそれらによってトリガーされるゲーム内イベントを次の表に示す。
Java Editionの値
Bedrock Editionの値
Block sound categories
The sound system divides all blocks into categories to determine which sounds play when a block is placed, destroyed, or walked on. Slime Blocks are not included in the following table because they have unique digging and step sounds.
| Category | Blocks | Notes |
|---|---|---|
| cloth | Wool Cactus Cake Carpet Fire |
Fire's destruction sound is random.fizz instead of dig.cloth. |
| grass | Grass Block Sponge Wet Sponge Leaves Tall Grass Fern Dead Bush Flowers Brown Mushroom Red Mushroom TNT Wheat Sugar Canes Vines Mycelium Lily Pad Carrots Potatoes Hay Bale |
Wheat, Lily Pads, Carrots, and Potatoes do not make a sound when placed. |
| gravel | Dirt Coarse Dirt Podzol Gravel Farmland Clay |
|
| sand | Sand Red Sand Soul Sand |
|
| snow | Snow (cover) Snow Block |
|
| stone | Stone Granite Polished Granite Diorite Polished Diorite Andesite Polished Andesite Cobblestone Bedrock Gold Ore Iron Ore Coal Ore Lapis Lazuli Ore Lapis Lazuli Block Dispenser Sandstone Note Block Powered Rail Detector Rail Sticky Piston Cobweb Piston Block of Gold Block of Iron Stone Slab Bricks Mossy Cobblestone Obsidian Monster Spawner Redstone Wire Diamond Ore Block of Diamond Furnace Rail Cobblestone Stairs Stone Pressure Plate Iron Door Redstone Ore Stone Button Jukebox Netherrack Monster Egg Stone Bricks Iron Bars Brick Stairs Stone Brick Stairs Nether Bricks Nether Brick Fence Nether Brick Stairs Nether Wart Enchantment Table Brewing Stand Cauldron End Portal End Stone Dragon Egg Redstone Lamp Sandstone Stairs Emerald Ore Ender Chest Tripwire Hook Tripwire Block of Emerald Command Block Beacon Cobblestone Wall Flower Pot Head Anvil Block of Redstone Nether Quartz Ore Hopper Block of Quartz Quartz Stairs Activator Rail Dropper Stained Clay Barrier Iron Trapdoor Prismarine Prismarine Bricks Dark Prismarine Hardened Clay Block of Coal Red Sandstone Red Sandstone Stairs Red Sandstone Slab |
Note Blocks and Jukeboxes are the only blocks in this category that are mined with an Axe instead of a Pickaxe. Redstone Wire, Iron Doors, and Nether Wart do not make a sound when placed. |
| wood | Oak Wood Planks Spruce Wood Planks Birch Wood Planks Jungle Wood Planks Acacia Wood Planks Dark Oak Wood Planks Oak Wood Spruce Wood Birch Wood Jungle Wood Bed Bookshelf Torch Oak Wood Stairs Chest Crafting Table Ladder Sign Lever Wooden Pressure Plate Redstone Torch Oak Fence Pumpkin Jack-o'-Lantern Redstone Repeater Wooden Trapdoor Huge Mushroom Block Melon Pumpkin Stem Melon Stem Oak Fence Gate Oak Wood Slab Spruce Wood Slab Birch Wood Slab Jungle Wood Slab Acacia Wood Slab Dark Oak Wood Slab Cocoa Pod Spruce Wood Stairs Birch Wood Stairs Jungle Wood Stairs Wooden Button Trapped Chest Light Weighted Pressure Plate Heavy Weighted Pressure Plate Redstone Comparator Daylight Sensor Acacia Wood Dark Oak Wood Acacia Wood Stairs Dark Oak Wood Stairs Banner Spruce Fence Gate Birch Fence Gate Jungle Fence Gate Dark Oak Fence Gate Acacia Fence Gate Spruce Fence Birch Fence Jungle Fence Dark Oak Fence Acacia Fence Spruce Door Birch Door Jungle Door Acacia Door Dark Oak Door |
Weighted Pressure Plates are the only blocks in this category that are mined with a Pickaxe instead of an Axe. Beds, Pumpkin Stems, Melon Stems, Cocoa Pods, Banners, and Doors do not make a sound when placed. |
| glass | Glass Ice Glowstone Nether Portal Stained Glass Glass Pane End Portal Frame Stained Glass Pane Sea Lantern Packed Ice |
These blocks use the walking and cracking sounds of "stone" blocks, but their placement sound is step.stone and their destruction sound is dig.glass. |
History
| Java Edition | |||||
|---|---|---|---|---|---|
| 1.7.2 | 13w42a | Added sounds.json | |||
| 1.9 | 16w02a | Added "voice" sound event category | |||
| ヘルプ | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| メニュー画面 |
| ||||||||||||||||
| 開発元 | |||||||||||||||||
| ゲームのカスタマイズ | |||||||||||||||||
| エディション |
| ||||||||||||||||
| ゲーム |
| ||||||||||||||||
| 映画 |
| ||||||||||||||||
| 書籍 |
| ||||||||||||||||
| その他メディア |
| ||||||||||||||||
| イベント |
| ||||||||||||||||
| 公式商品 |
| ||||||||||||||||
| その他 | |||||||||||||||||