0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

襲撃イベントの角笛の音量を下げるリソースパック

Last updated at Posted at 2025-12-04

襲撃トラップを試作をしていたら、近隣住民から騒音の苦情が来た時のためのリソースパックです。
音の設定変更例としてもご利用ください。

本記事は統合版マイクラ1.21.121で動作確認を行っています。

Minecraft for Windows 2025_11_09 16_03_28.png

襲撃イベントでは各ウェーブ発生時に大音量で角笛の音が響き渡ります。角笛の音量をリソースパックで変更し、静かに襲撃トラップを稼働させることを目的とします。

クラフターズコロニーにて配布しています。

ファイル構成

small-raid-horn/  リソースパックのフォルダ
├ manifest.json  
├ pack_icon.png  
└ sounds/    
  └ sound_definitions.json

サンプルファイルから必要な部分のみ抽出して作成しました。

manifest.json

リソースパックの定義です。

manifest.json
{
    "format_version": 2,
    "header": {
        "description": "作成 sumiso_c0db8c",
        "name": "襲撃イベントの角笛の音量を下げるリソースパック",
        "uuid": "d1c8ec5d-6151-4403-9e0d-9db6de851742",
        "version": [1, 0, 0],
        "min_engine_version": [ 1, 21, 120 ]
    },
    "modules": [
        {
            "type": "resources",
            "uuid": "8ad8b380-d64b-4408-b84d-0488f31721f2",
            "version": [1, 0, 0]
        }
    ],
    "metadata": {
        "authors": [
            "sumiso_c0db8c"
        ],
        "url": "https://www.youtube.com/@sumiso_craft"
    }
}

pack_icon.png

リソースパックのアイコン画像です。角笛のミュートをイメージしました。

pack_icon.png

sound_definitions.json

本リソースパックの本体です。

sound_definitions.jsonは音の定義ファイルで、元のファイルは 25450行 あります。
襲撃イベントの角笛の音を定義している部分のみを抽出しました。

sound_definitions.json
{
    "format_version": "1.20.20",
    "sound_definitions": {
        "raid.horn": {
            "__use_legacy_max_distance": "true",
            "category": "hostile",
            "max_distance": 128.0,
            "min_distance": null,
            "sounds": [
                {
                    "load_on_low_memory": true,
                    "name": "sounds/event/raid/raidhorn_01",
                    "volume": 0.1
                },
                {
                    "name": "sounds/event/raid/raidhorn_02",
                    "volume": 0.1
                },
                {
                    "name": "sounds/event/raid/raidhorn_03",
                    "volume": 0.1
                },
                {
                    "name": "sounds/event/raid/raidhorn_04",
                    "volume": 0.1
                }
            ]
        }
    }
}

元々音量が 10.0であったところを0.1に変更し、わずかに音が聞こえるようにしました。

変更点
"sounds": [
    {
        "load_on_low_memory": true,
        "name": "sounds/event/raid/raidhorn_01",
-       "volume": 10.0
+       "volume": 0.1
    },
    {
        "name": "sounds/event/raid/raidhorn_02",
-       "volume": 10.0
+       "volume": 0.1
    },
    {
        "name": "sounds/event/raid/raidhorn_03",
-       "volume": 10.0
+       "volume": 0.1
    },
    {
        "name": "sounds/event/raid/raidhorn_04",
-       "volume": 10.0
+       "volume": 0.1
    }
]

パッケージ化

作成したファイル群をzipに圧縮し、拡張子をmcpackに書き換えるとマイクラのファイルとして認識されます。

ファイルを選択してzipファイルに圧縮します。
image.png

zipファイルの拡張子をmcpackに変更します。
image.png

mcpackをクリックすると、マイクラが起動してインストールされます。
ワールドの編集画面から、リソースパックを適用できます。

注釈

本リソースパックは約5年前の記事のリメイク版です。記事執筆時最新版(1.21.121)に対応し、アイコン画像がフラットデザイン風になりました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?