Minecraft Wiki
H1ka2 (トーク | 投稿記録)
(内容を「'''リソースパック'''({{en|Resource Pack}})は、テクスチャ翻訳文や言語フォントサウンドモデル、およびエンドポエムスプラッシュテキストなどを、ゲーム本体を書き換えることなくカスタマイズするための仕組みである。 * リソースパック (Java Edition) - {{el|je}}における…」で置換)
タグ: 置換
 
(20人の利用者による、間の107版が非表示)
1行目: 1行目:
  +
'''リソースパック'''({{en|Resource Pack}})は、[[テクスチャ]]、[[言語のカスタマイズ|翻訳文や言語]]、[[フォントのカスタマイズ|フォント]]、[[サウンド]]、[[モデル]]、および[[エンドポエム]]や[[スプラッシュテキスト]]などを、ゲーム本体を書き換えることなくカスタマイズするための仕組みである。
{{about|[[1.6.1]]以降のシステム|1.6.1以前のシステム|テクスチャーパック}}
 
   
  +
* [[リソースパック (Java Edition)]] - {{el|je}}におけるリソースパックの仕様。
[[ファイル:TexturesComparison.png|サムネイル|右|350px|デフォルトテクスチャとカスタムリソースパック(DokuCraft)の比較である。]]
 
  +
* [[リソースパック (Bedrock Edition)]] - {{el|be}}におけるリソースパックの仕様。
  +
* [[テクスチャーパック]] - [[1.6.1]]以前の同様のシステム。
   
  +
{{disambig}}
'''リソースパック''' ('''Resource pack''') は、プレイヤーが ''Minecraft'' のカスタマイズを可能にするための [[:wikipedia:ja:アプリケーションプログラミングインタフェース|API]] である。これにより、テクスチャ、モデル、[[音楽|BGM]]、効果音、[[言語]]ファイル、クレジットロール、スプラッシュテキスト、そしてフォントをゲーム本体を書き換えずに変更出来る。
 
 
== 振る舞い ==
 
[[ファイル:Resource pack selection.png|サムネイル|リソースパックの選択画面である。''Ninety-Six'' が一番上で、 ''Favorite Songs Pack'' が続き、デフォルトのアセットとなっている。]]
 
 
リソースパックは <code>[[.minecraft]]</code> 階層の <code>resourcepacks</code> フォルダに置く必要がある。その際のファイルフォーマットを [[:wikipedia:ja:ZIP (ファイルフォーマット)|<code>.zip</code>形式]]にするか、<code>resourcepacks</code> フォルダにフォルダを直置きする必要がある。フォルダに置いた後は、オプションの「使用可能なリソースパック」と「選択中のリソースパック」の間で移動ができる。「選択中のリソースパック」の側にはデフォルトのリソースが存在するが削除することは出来ない。
 
 
基本的にリソースパックはリストの上から順に読み込まれる。一番下の"デフォルト"のリソースパックが最初に読み込まれ、その後に読み込まれたアセットと対応するものが置き換わる仕組みになっている。
 
 
=== デフォルトのリソースパック ===
 
 
1.8以降はリソースパックは、<code>resources</code> という名前のフォルダに直接配置することで、マップにバンドルできる。その際に、リソースパックは <code>.zip</code>ファイル形式でなければならない。プレイ中には、そのリソースパックがワールドのデフォルトのリソースパックとして右側のリストに表示される。1.7.10以前は手動でしか変更できない。
 
 
サーバープロパティファイルの <code>resource-pack=</code> 行の後にある <code>.zip</code>ファイルのダウンロードへのリンクを変更することで、サーバー上に既定のリソースパックを設定することもできる。ユーザーはリソースパックの使用を拒否することも、ダウンロードしないことを選択することもできる。
 
 
== [[Legacy Console Edition]] ==
 
{{main|リソースパック/マッシュアップパック|title1=マッシュアップパック}}
 
 
[[Legacy Console Edition]] では、マッシュアップパック(これはリソースパックに相当する)がダウンロードコンテンツ (DLC) として、Xbox Game マーケットプレイスか PlayStation ストア、Nintendo eショップからダウンロード出来る。マッシュアップパックはリソースパック、[[スキンパック]]、ワールドを一つにしたコンテンツである。
 
 
== [[Bedrock Edition]] ==
 
{{main|Add-on}}
 
 
[[スキン]]と同様に、[[Bedrock Edition]] でリソースパックは購入・作成できる。 [[Pocket Edition Alpha 0.16.0|Alpha 0.16.0]] の時点で、iOS ユーザーは <code>.mcpack</code> および <code>.mcworld</code> の拡張子のファイルをダウンロードできる。 これらのファイルを開くと、ファイルシステムへのアクセスを必要とせずに自動的に Bedrock Edition にインポートされる。
 
 
== コンテンツ ==
 
 
リソースパックは [[:wikipedia:ja:JavaScript Object Notation|JSON]]形式で記述されたルートディレクトリにある <code>pack.mcmeta</code> ファイルによって識別される。
 
 
<div class="treeview">
 
* {{nbt|compound}} ルートタグ。
 
** {{nbt|compound|pack:}} リソースパックの持つ情報。
 
*** {{nbt|int|pack_format:}} パックのバージョン。この番号が [[Minecraft]] の要求するものと合わない場合、パック読みこみ時にエラーとして表示される。[[1.8.7]]以前のバージョンは <code>0</code>。[[1.8.8]]では <code>1</code>。[[1.9]]と[[1.10]]では <code>2</code>。[[1.11]]と[[1.12]]では <code>3</code>。[[1.13]]では <code>4</code>となっている。
 
*** {{nbt|string|description:}} リソースパックメニューのパック名の下に表示されるパックの説明となるテキスト。テキストは2行に表示され、長すぎるテキストは切り捨てられる。
 
** {{nbt|compound|language:}} 新たな言語を追加する場合記述する。
 
*** {{nbt|compound|A language}} <code>.lang</code> ファイルに対応する言語コード。<code>assets/minecraft/lang</code>に入っているファイル名と同じ名前にする。
 
**** {{nbt|string|name:}} 言語の名称。
 
**** {{nbt|string|region:}} 地域を設定する。
 
**** {{nbt|byte|bidirectional:}} <code>true</code> の場合、文字は右から左に読まれる。
 
</div>
 
 
ルートディレクトリには、<code>pack.png</code> という画像ファイルと含まれている。これはリソースパックメニューでのアイコンとして表示される。
 
 
=== 言語 ===
 
 
新たな言語や修正した翻訳はリソースパックの <code>assets/minecraft/lang</code> ディレクトリに <code>.lang</code> ファイルを作成することで追加することができる。 方法は2つあり、1つ目は元から存在する言語ファイルを書き換える方法。2つ目は言語ファイルを新たに追加する方法である。後者の場合、 <code>pack.mcmeta</code> ファイルに記述する必要がある(記述方法は上の通り)。
 
 
言語ファイル内での記述方法は、<code>''identifier''=''name''</code> のようになっている。<code>''identifier''</code> はゲーム内部でブロックやアイテムなどに紐付けられている ID のようなものであり、ブロックやアイテム毎に付けられている。変更することは出来ない。<code>''name''</code> は実際にゲーム上で表示されるブロックやアイテムの名前である。[[石]]を例にすると、<code>tile.stone.stone.name=Stone</code>のようになっている。<code>tile.stone.stone.name</code> が石のゲーム内部での名前となっており、<code>Stone</code> がゲーム上で表示される名前となっている。これらは <code>#</code> でコメントアウトすることも可能である。
 
 
これらは追加・変更したものだけが、ゲームで適用される。何も手が加わっていないもの、欠如しているものは読み込まれずデフォルトのものが使用される。
 
 
=== モデル ===
 
{{main|モデル}}
 
 
モデルは JSON形式で記述されており、<code>.json</code> ファイルとなっている。これらのファイルでブロックやアイテムのモデルを形作っている。
 
 
ブロックは <code>assets/minecraft/blockstates</code> のファイルのブロック状態を使用し、<code>assets/minecraft/models/block</code> からブロックモデルを読み込むことでブロックのモデルを決定している。アイテムは <code>assets/minecraft/models/item</code> からアイテムのモデルを読み込む。ここではブロックのモデル(チェストや盾などの一部のブロックやアイテムはエンティティモデル)や平面状のモデルを使用する他、カスタムモデルを使用することができる。
 
 
モデルファイルは上のリソースパックから読み込まれる。よって下にあるリソースパックのモデルファイルは、上書きされて読み込まれない。
 
 
=== サウンド ===
 
 
リソースパックは追加のサウンドファイルを <code>.ogg</code> 形式で読み込む。下位のパックに同様の名前のファイルが存在すると上のものが読み込まれ、パックには <code>assets/minecraft</code> ディレクトリに <code>[[sounds.json]]</code> ファイルが含まれている。他のリソースパック関連のファイルとは異なり、このファイルはパックの位置に関係なく読み込まれる。このファイルにはパック内のサウンドファイルが記述されている。
 
 
=== テクスチャ ===
 
 
[[ファイル:Missing Texture.png|サムネイル|テクスチャファイルが存在しない時に使用されるテクスチャ。]]
 
 
ブロックまたはアイテムのテクスチャが機能するには、幅と高さを揃えなければならない([[#アニメーション|アニメーション]]させる場合は高さは幅の倍数)。そうでないと、紫と黒のチェック柄で表示されてしまう。他の多くのテクスチャは、必要なサイズに合わせて引き伸ばされるだけである。<!--For block or item textures to function, they must have equal width and height (or height that is a multiple of the width if [[#Animation|animated]]); otherwise it will display as a purple and black checkerboard. For most other textures, the file will simply be stretched to fit the required dimensions.-->
 
 
ほとんどの固体ブロックは透過部分を完全に不透明にする。一部のブロックは切り抜きの透明度を持ち、不透明度が10%未満のピクセルをすべて完全に透明にする。それ以外は完全に不透明にする。他の透過ブロックは半透明部分をそのまま描画する。アイテムまたはエンティティはデフォルトで半透明テクスチャがサポートされている。<!--Most solid blocks will turn any transparent area fully opaque. Some other blocks, which have "cutout" transparency (like glass) will turn all pixels that are less than 10% opaque fully transparent and all other pixels completely opaque. Every other block renders textures with semi-transparency as-is. All items and any blocks or entities which are semi-transparent by default support semi-transparency.-->
 
 
リソースパックにもデフォルトにもファイルが存在しない場合、紫と黒のチェック柄で表示される。<!--If a file does not exist in any resource pack, including the default, it will display as a purple and black checkerboard.-->
 
 
==== アニメーション ====
 
 
ブロックとアイテムはそのテクスチャを幅を揃えて縦に並べることによってアニメーションさせることができる。アニメーションはアニメーションさせたいテクスチャと同じ名前の <code>.mcmeta</code> ファイル(JSON形式で記述)を同じディレクトリに入れることで制御できる。例えば、<code>stone.png</code> をアニメーションさせたい場合、<code>mcmeta</code> ファイルは <code>stone.png.mcmeta</code> になる。<!--Block and item textures support animation by placing each additional frame below the last. The animation is then controlled using a <code>.mcmeta</code> file in JSON format with the same name in the same directory. For example, the <code>.mcmeta</code> file for <code>stone.png</code> would be <code>stone.png.mcmeta</code>.-->
 
 
<div class="treeview">
 
* {{nbt|compound}} ルートタグ。
 
** {{nbt|compound|animation:}} アニメーションのデータ。<!--Contains data for the animation-->
 
*** {{nbt|byte|interpolate:}} true のとき、フレーム間の変化が滑らかになる。デフォルトでは <code>false</code> である。<!--If true, ''Minecraft'' will generate additional frames between frames with a frame time greater than 1 between them. Defaults to <code>false</code>.-->
 
*** {{nbt|byte|width:}} テクスチャの幅。ピクセルではなく、比率である。これはバニラでは使用されていないが Mod で使用することができる。<!--The width of the tile, as a direct ratio rather than in pixels.--><!--Dinnerbone originally stated it was in pixels, but later corrected himself on IRC--> <!--This is unused in vanilla but can be used by mods to have frames that are not perfect squares.-->
 
*** {{nbt|byte|height:}} テクスチャの高さ。ピクセルではなく、比率で表す。これはバニラでは使われていないが Mod によって使用することができる。<!--The height of the tile in direct pixels, as a ratio rather than in pixels. This is unused in vanilla but can be used by mods to have frames that are not perfect squares.-->
 
*** {{nbt|int|frametime:}} 通常のフレームの変わる時間。1ティック単位で設定でき、デフォルトでは <code>1</code> である。<!--Sets the default time for each frame in increments of one game tick. Defaults to <code>1</code>.-->
 
*** {{nbt|list|frames:}} アニメーションフレームのリスト。デフォルトでは上から下に表示される。<!--Contains a list of frames. Defaults to displaying all the frames from top to bottom.-->
 
**** {{nbt|int}} 番号は一番上からのフレームの位置に対応しており、一番上のフレームは0である。<!--A number corresponding to position of a frame from the top, with the top frame being 0-->
 
**** {{nbt|compound|A frame}} 追加データを持つフレーム。<!--Specifies a frame with additional data-->
 
***** {{nbt|int|index:}} 一番上のフレームからの位置。一番上のフレームは0である。<!--A number corresponding to position of a frame from the top, with the top frame being 0-->
 
***** {{nbt|int|time:}} 次のフレームに変わるまでの時間。上記の frametime を無視する。<!--The time in ticks to show this frame, overriding "frametime" above.-->
 
</div>
 
 
もし <code>.mcmeta</code> ファイルとテクスチャがパックに存在しない場合、アニメーションされない。また、テクスチャに対応する <code>.mcmeta</code> がない場合、紫と黒のチェック柄で表示される。<!--If the <code>.mcmeta</code> file does not exist in the pack and the texture does, the game will assume the texture is not animated, rather than loading a <code>.mcmeta</code> file from a pack below that pack. If no <code>.mcmeta</code> file exists for a texture with unequal dimensions, the texture will appear as a purple and black checkerboard.-->
 
 
==== カラーマップ ====
 
 
カラーマップは256×256ピクセルの画像であり、バイオームごとにどの色を使用するかを決める。カラーマップは、<code>foliage.png</code> と <code>grass</code> の2つがあり、<code>assets/minecraft/textures/colormap</code> に位置する。<code>foliage.png</code> はシラカバとマツを除く、[[葉]]や[[ツタ]]のような植物に適用され、<code>grass.png</code> は[[草]]や[[草ブロック]]に適用される。カラーマップが適用されるブロックは <code>tintindex</code> タグを除くことによって無効にすることができる。<!--Colormaps are 256×256 pixel images which tell the game which color to use in each biome. They are located in <code>assets/minecraft/textures/colormap</code>. The game contains two colormaps, <code>foliage.png</code> which colors plants such as [[leaves]] (except birch and spruce) and [[vines]], and <code>grass.png</code> which colors [[grass]] and [[grass blocks]]. Colormaps can be disabled on individual blocks by removing the <code>tintindex</code> tag.-->
 
 
==== フォント ====
 
 
フォントファイルには白文字のグリッドが含まれ、ゲーム内で必要に応じて色がつけられる。文字サイズはアルファ値を含む最後をもとに自動的に決められる。フォントを検出する方法として、文字の背景を1%のアルファの背景を含む色で塗りつぶすと文字の背景が見えることなく全幅が描画される。<!--Font files contain a grid of white characters, which are automatically colored by ''Minecraft'' as needed in game. The character sizes are automatically determined based on the last line of pixels containing any alpha value. Due to the way fonts are detected, filling the background of a character with a color containing a 1% alpha background will cause the full width to render without having a visible background to the character.-->
 
 
==== プロパティ ====
 
 
<code>assets/minecraft/textures/misc</code> にあるテクスチャは JSON形式の <code>.mcmeta</code> ファイルによって追加エフェクトを適用することができる。ファイルはテクスチャと同じディレクトリにあり、同じ名前の後ろに <code>.mcmeta</code> が付く。例えば、<code>pumpkinblur.png</code> のプロパティファイルは <code>pumpkinblur.png.mcmeta</code> である。<!--Textures from <code>assets/minecraft/textures/misc</code> support a <code>.mcmeta</code> file in JSON format containing additional effects to apply to the texture. The file is contained in the same directory as the texture, and have the same name as the texture, except appended with <code>.mcmeta</code>. For example, the file <code>pumpkinblur.png</code> can have a properties file call <code>pumpkinblur.png.mcmeta</code>-->
 
 
<div class="treeview">
 
* {{nbt|compound}} ルートタグ。
 
** {{nbt|compound|texture:}} テクスチャのデータ。
 
*** {{nbt|byte|blur:}} テクスチャをぼかす。デフォルトでは <code>false</code> である。
 
*** {{nbt|byte|clamp:}} <code>shadow.png</code> で使用される。<code>false</code> にするとエンティティの存在しているブロック一面にタイル状に敷き詰められる。<code>true</code> と <code>false</code> の違いは下図を参照。
 
*** {{nbt|int-array|mipmaps:}} カスタムミップマップ値。<!--Custom mipmap values for the texture-->
 
</div>
 
 
{| class="wikitable" data-description="clamp example"
 
|-
 
| <code>"clamp": true</code>
 
| <code>"clamp": false</code>
 
|-
 
| [[ファイル:Clamp true.png|400px]]
 
| [[ファイル:Clamp false.png|400px]]
 
|}
 
 
もしリソースパックに基になるテクスチャがあって、<code>.mcmeta</code> ファイルが存在しない場合、デフォルトの設定で読み込まれる。<!--If the <code>.mcmeta</code> file does not exist in the pack and the texture does, the game will load the default settings, rather than loading a <code>.mcmeta</code> file from a pack below that pack.-->
 
 
=== テキスト ===
 
 
<code>.txt</code> ファイルは3つ存在し、UTF-8 形式で記述される。これらのファイルは <code>assets/minecraft/texts</code> に存在し、表示するテキストを決めるために使用される。<!--Three <code>.txt</code> files in UTF-8 format exist in <code>assets/minecraft/texts</code> which are used by the game to determine the text to display.-->
 
 
<code>end.txt</code> には[[エンドポエム]]の内容が含まれている。[[装飾コード]]を使って2人の語り手を表し、<code>PLAYERNAME</code> はプレイヤーの名前に置き換えられる。その後、<code>credits.txt</code> の内容が表示される。<!--The file <code>end.txt</code> contains the text of the [[end poem]], using [[formatting codes]] to apply the colors to the two speakers, and with the text <code>PLAYERNAME</code> being replaced with the player's name. After that file is shown, the contents of <code>credits.txt</code> will be shown.-->
 
 
<code>splashes.txt</code> には[[スプラッシュ]]の内容が改行を用いて記述されている。どのスプラッシュも異なる内容に置き換えることができ、ゲーム内で元のテキストの代わりに表示される。<!--The file <code>splashes.txt</code> contains lines of text separated using line breaks to determine the [[splashes]] to display in game. Any of the splashes can be replaced with different text, which will then be used in place of that splash in game.-->
 
 
== フォルダの構造 ==
 
 
{{/Folders}}
 
 
== 歴史 ==
 
 
{{History|release}}
 
{{History||1.6.1|snap=13w24a|テクスチャパックに置き換わる機能としてリソースパックが追加された。1.5までのテクスチャーパックは Mojang の変換ツール ([http://s3.amazonaws.com/Minecraft.Download/utilities/TextureEnder.jar Minecraft Texture Ender]) で変換出来る。}}
 
{{History||1.6.2|HDフォントを使用した際にフォントが歪むバグが修正された<ref>{{bug|MC-17673}}</ref>。}}
 
{{History||1.7.2|snap=13w36a|一度に複数のリソースパックを適用出来るようになった。}}
 
{{History||1.7.2|snap=13w42a|<code>assets/minecraft/music</code> のファイルが <code>assets/minecraft/sounds/music</code> へ、<code>assets/minecraft/sound</code> のファイルが <code>assets/minecraft/sounds</code> へ移動された。}}
 
{{History||1.7.4|snap=13w48a|Mojang のロゴを変更する機能が削除された}}
 
{{History||1.8|snap=14w06a|[[ブロックモデル]]を変更できるようになった。}}
 
{{History|||snap=14w07a|リソースパックをマップにバンドルできるようになった。}}
 
{{History|||snap=14w25a|カスタムアイテムのモデルを適用出来るようになった。|テクスチャをブロックとアイテムに指定できるようになった。|アニメーションに <code>interpolate</code> が追加された。}}
 
{{history||1.8.8|snap=pre|パックのバージョン番号が合っていないとエラーが表示されるようになった。このときバージョン番号が <code>1</code> でなければならなくなった。}}
 
{{history||1.9|snap=15w31a|[[モデル#Item tags|アイテムタグ]]や [[モデル#Block States|multipart]]、ディスプレイタグの追加などが行われ、[[モデル]]のシステムが変更された。それに伴い、リソースパックのバージョン番号が <code>2</code> に変更された。|古いディスプレイタグを持つリソースパックを使用すると異常にスケールアップされて見えた。また、2Dテクスチャで置き換えられたブロックはインベントリや手に持っているときに回転しなかった。これはモデルにディスプレイタグがないときと同様である([http://i.imgur.com/7wilQfO.png 画像]を参照)。}}
 
{{History||1.11|snap=16w32a|リソースパックのバージョンが <code>3</code> になった。|リソースパック内のファイル名が全て小文字になった。}}
 
{{History||1.13|snap=17w48a|リソースパックのバージョンが <code>4</code> になった。|デフォルトのリソースパックがを上下に移動できるようになった。|<code>textures</code>フォルダ内の、<code>Blocks<code/>フォルダのうち不透明なブロックのテクスチャーが<code>Block<code/>フォルダに移動された。}}
 
{{history|pocket alpha}}
 
{{history||0.15.0|プラスチック・都会テクスチャパックが追加された。}}
 
{{history||0.15.7|ナチュラルテクスチャパックが追加された。}}
 
{{History||0.15.8|ファンタジーテクスチャパックが追加された。}}
 
{{History||0.16.2|カートゥーンテクスチャパックが追加された。}}
 
{{history|pocket}}
 
{{History||1.0.3|キャンディテクスチャパックが追加された。}}
 
{{History|foot}}
 
 
== 関連項目 ==
 
 
* [[チュートリアル/リソースパックの作成]]
 
* [[Programs and editors/Resource Pack Creators]]
 
 
== 脚注 ==
 
 
{{reflist}}
 
 
{{Minecraft}}
 
   
 
{{デフォルトソートキー:りそおすはつく}}
 
{{デフォルトソートキー:りそおすはつく}}
   
  +
[[cs:Balíček modifikací]]
 
[[de:Ressourcenpaket]]
 
[[de:Ressourcenpaket]]
[[en:Resource pack]]
+
[[en:Resource Pack]]
 
[[es:Paquete de recursos]]
 
[[es:Paquete de recursos]]
 
[[fr:Pack de ressources]]
 
[[fr:Pack de ressources]]
  +
[[it:Pacchetto di risorse]]
  +
[[ko:리소스 팩]]
 
[[nl:Bronpakket]]
 
[[nl:Bronpakket]]
 
[[pl:Paczki zasobów]]
 
[[pl:Paczki zasobów]]
  +
[[pt:Pacote de recursos]]
 
[[ru:Пакет ресурсов]]
 
[[ru:Пакет ресурсов]]
  +
[[th:รีซอร์ซแพ็ก]]
  +
[[uk:Пакет ресурсів]]
 
[[zh:资源包]]
 
[[zh:资源包]]

2023年12月17日 (日) 05:30時点における最新版

リソースパック(英:Resource Pack)は、テクスチャ翻訳文や言語フォントサウンドモデル、およびエンドポエムスプラッシュテキストなどを、ゲーム本体を書き換えることなくカスタマイズするための仕組みである。

Disambig color このページは曖昧さ回避のためのページです。同じ名前で連想されうるページを一覧にしています。このページへリンクしているページを見つけたら、リンクを適切な項目に張り替えて下さい。