Minecraft Wiki
(内容を「'''リソースパック'''({{en|Resource Pack}})は、テクスチャ翻訳文や言語フォントサウンドモデル、およびエンドポエムスプラッシュテキストなどを、ゲーム本体を書き換えることなくカスタマイズするための仕組みである。 * リソースパック (Java Edition) - {{el|je}}における…」で置換)
タグ: 置換
 
(25人の利用者による、間の138版が非表示)
1行目: 1行目:
  +
'''リソースパック'''({{en|Resource Pack}})は、[[テクスチャ]]、[[言語のカスタマイズ|翻訳文や言語]]、[[フォントのカスタマイズ|フォント]]、[[サウンド]]、[[モデル]]、および[[エンドポエム]]や[[スプラッシュテキスト]]などを、ゲーム本体を書き換えることなくカスタマイズするための仕組みである。
{{要翻訳}}
 
{{about|[[1.6.1]]以降のシステム|1.6.1以前のシステム|テクスチャーパック}}
 
   
  +
* [[リソースパック (Java Edition)]] - {{el|je}}におけるリソースパックの仕様。
[[ファイル:TexturesComparison.png|thumb|right|350px|デフォルトテクスチャとカスタムリソースパック(DokuCraft)の比較である。]]
 
  +
* [[リソースパック (Bedrock Edition)]] - {{el|be}}におけるリソースパックの仕様。
  +
* [[テクスチャーパック]] - [[1.6.1]]以前の同様のシステム。
   
  +
{{disambig}}
'''リソースパック(Resource pack)'''システムとはプレイヤーが ''Minecraft'' のカスタマイズを可能にする[https://ja.wikipedia.org/wiki/アプリケーションプログラミングインタフェース API]である。これにより、テクスチャ、モデル、[[Music|BGM]]、効果音、[[言語]]ファイル、クレジット・ロール、スプラッシュテキスト、フォントをゲーム本体を書き換えずに変更出来る。
 
   
 
{{デフォルトソートキー:りそおすはつく}}
== 振る舞い ==
 
[[ファイル:Resource pack selection.png|thumb|リソースパックの選択画面である。''Ninety-Six''が一番上で、 ''Favorite Songs Pack''が続き、デフォルトのアセットとなっている。]]
 
 
リソースパックは<code>[[.minecraft]]</code>階層のの<code>resourcepacks</code>フォルダに置く必要がある。その際のファイルフォーマットを[[wikipedia:Zip (file format)|<code>.zip</code>形式]]にするか、<code>resourcepacks</code>フォルダにフォルダを直置きする必要がある。フォルダに置いた後は、オプションの「使用可能なリソースパック」と「選択中のリソースパック」の間で移動ができる。「選択中のリソースパック」の側にはデフォルトのリソースが存在するが削除することは出来ない。
 
 
基本的にリソースパックはリストの上から順に読み込まれる。一番下の"デフォルト"のリソースパックが最初に読み込まれ、その後に読み込まれたアセットと対応するものが置き換わる仕組みになっている。
 
 
=== デフォルトのリソースパック ===
 
 
リソースパックは、<code>resources</code>という名前のフォルダに直接配置することで、マップにバンドルできる。その際に、リソースパックは<code>.zip</code>ファイル形式でなければならない。プレイ中には、そのリソースパックがワールドのデフォルトのリソースパックとして右側のリストに表示される。
 
 
サーバープロパティファイルの<code>resource-pack=</code>行の後にある<code>.zip</code>ファイルのダウンロードへのリンクを変更することで、サーバー上に既定のリソースパックを設定することもできる。ユーザーはリソースパックの使用を拒否することも、ダウンロードしないことを選択することもできる。
 
 
== [[Console Edition]] ==
 
{{main|リソースパック/マッシュアップパック|title1=マッシュアップパック}}
 
 
[[Console Edition]]では、マッシュアップパック(これはリソースパックに相当する)がダウンロードコンテンツ(DLC)として、Xbox Game マーケットプレイス / PlayStation ストア / Nintendo eショップからダウンロード出来る。マッシュアップパックはリソースパック、[[スキンパック]]、ワールドを一つにしたコンテンツである。
 
 
== [[Pocket Edition]] ==
 
{{main|Add-on}}
 
 
[[Pocket Edition]]では[[スキンパック]]と同様にリソースパックは購入・作成出来る。
 
現在({{v|android=1}})はプラスチック、都会、ナチュラル([[Console Edition]]からの移植)、ファンタジー、カートゥーン、キャンディーテクスチャパックが購入・使用可能である。またマッシュアップパックではホリデーマッシュアップ 2016、中国神話マッシュアップ、Falloutマッシュアップが購入・使用可能である。カスタムリソースパックを導入するには、<code>com.mojang</code>フォルダに<code>resource_packs</code>フォルダを作り配置する必要がある。(フォルダの生成は自動でも行われる)
 
導入にはデバイスのOS毎に違いがある。
 
iOSでは内部ファイルをiOS単体で操作できないため、WindowsやMacからiExplorerやiFunBoxなどを使って導入する必要がある。これはiTunesのファイル共有ではフォルダへのナビゲートが出来ないためである。
 
Androidではファイル操作が出来るため、ファイルマネージャなどのアプリで可能である。
 
[[Pocket Edition Alpha 0.16.0|Alpha 0.16.0]]から、iOSデバイスではダウンロードしたリソースパックファイルの拡張子を<code>.mcpack</code>と<code>.mcworld</code>にリネームすることで導入出来る。
 
 
== コンテンツ ==
 
 
リソースパックは[[wikipedia:JSON|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]]では<code>3</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|thumb|テクスチャファイルが存在しない時に使用されるテクスチャ。]]
 
 
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.
 
 
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.
 
 
==== アニメーション ====
 
 
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}} The root tag
 
** {{nbt|compound|animation:}} Contains data for the animation
 
*** {{nbt|byte|interpolate:}} 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:}} 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:}} 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:}} 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}} 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:}} A number corresponding to position of a frame from the top, with the top frame being 0
 
***** {{nbt|int|time:}} The time in ticks to show this frame, overriding "frametime" above.
 
</div>
 
 
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.
 
 
==== カラーマップ ====
 
 
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.
 
 
==== フォント ====
 
 
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.
 
 
==== プロパティ ====
 
 
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}} The root tag
 
** {{nbt|compound|texture:}} Contains data for the texture
 
*** {{nbt|byte|blur:}} Causes the texture to blur when viewed from close up. Defaults to <code>false</code>
 
*** {{nbt|byte|clamp:}} Causes the texture to stretch instead of tiling in cases where it otherwise would, such as on the shadow. Defaults to <code>false</code>
 
*** {{nbt|int-array|mipmaps:}} Custom mipmap values for the texture
 
</div>
 
 
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.
 
 
=== テキスト ===
 
 
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.
 
 
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.
 
 
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}}
 
 
== 動画 ==
 
{{Video note|この動画の情報は以前のものです。現在ではサーバー上でもリソースパックを読み込むようになっています。}}
 
 
{{/video}}
 
 
== 歴史 ==
 
 
{{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|カスタムアイテムモデルが適用出来るようになった
 
|テクスチャをブロックとアイテムに指定できるようになった
 
|Added the <code>interpolate</code> tag for animations.}}
 
{{history||1.8.8|snap=pre|Resource packs now display an error if the pack version number is wrong. At this time, it requires a pack version number of <code>1</code>.}}
 
{{history||1.9|snap=15w31a|Resource packs version number was changed to <code>2</code>, due to changes in the [[model]] system, such as [[Model#Item tags|item tags]], [[Model#Block states|multipart]], and changes to display tags.
 
|Using resource packs with outdated display tags will cause the models to seem abnormally up-scaled and the wielded block will not be rotated in the hand, along with blocks in the inventory replaced with a 2D texture. This is similar to what happens when a model has no display tags. See [http://i.imgur.com/7wilQfO.png here for an example].}}
 
{{History||1.11|snap=16w32a|リソースパックのバージョンが<code>3</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}}
 
 
== 関連項目 ==
 
 
* [[Tutorials/Creating a resource pack]]
 
* [[Programs and editors/Resource Pack Creators]]
 
 
== 脚注 ==
 
{{reflist|2}}
 
 
{{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 このページは曖昧さ回避のためのページです。同じ名前で連想されうるページを一覧にしています。このページへリンクしているページを見つけたら、リンクを適切な項目に張り替えて下さい。