User Tools

Site Tools


ja:mtr:adding_custom_resources

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ja:mtr:adding_custom_resources [2024/10/13 05:41] – 作成 asama_tk85ja:mtr:adding_custom_resources [2024/10/14 07:28] (current) – 「Model Properties file」以降の翻訳を実施。 asama_tk85
Line 17: Line 17:
 ==== 既存の列車のテクスチャバリエーションを追加する ==== ==== 既存の列車のテクスチャバリエーションを追加する ====
  
-テクスチャのバリエーション(リテクスチャ)を追加するには、''mtr_custom_resouces.json'' に''custom_trains'' JSONオブジェクトを追加する必要がある。''custom_trains'' の下にある各JSONオブジェクトは、列車のテクスチャバリエーションを表し、固有のキーといくつかの必須項目を持たなければなりません+テクスチャのバリエーション(リテクスチャ)を追加するには、''mtr_custom_resouces.json'' に''custom_trains'' JSONオブジェクトを追加する必要がある。''custom_trains'' の下にある各JSONオブジェクトは、列車のテクスチャバリエーションを表し、固有のキーといくつかの必須項目を持たなければならない
  
 <markdown> <markdown>
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
  
  
Line 46: Line 64:
 | `bve_sound_base_id` | 文字列 | BVEサウンドのIDを指定する。デフォルトの列車IDか、sounds.jsonで定義されたものを指定する。BVEサウンドの定義方法については [こちら](https://wiki.minecrafttransitrailway.com/mtr:dev:custom_bve_sound) を参照。 | 任意 |N/A|If specified, conventional format sound will not be available.| | `bve_sound_base_id` | 文字列 | BVEサウンドのIDを指定する。デフォルトの列車IDか、sounds.jsonで定義されたものを指定する。BVEサウンドの定義方法については [こちら](https://wiki.minecrafttransitrailway.com/mtr:dev:custom_bve_sound) を参照。 | 任意 |N/A|If specified, conventional format sound will not be available.|
  
-An example is shown below.+以下に例を示す。
  
 ``` ```
Line 61: Line 79:
 ``` ```
  
-## Adding New Railway Sign Textures or Text+## 鉄道標識の新しいテクスチャやテキストの追加
  
-To add new [railway signs](https://github.com/jonafanho/Minecraft-Transit-Railway/wiki/Railway-Sign) textures or text, the `custom_signs` JSON object should be added to `mtr_custom_resouces.json`. Each JSON object under `custom_signs`, representing a new sign, should have a unique key and serveral required entries.+[鉄道標識](https://github.com/jonafanho/Minecraft-Transit-Railway/wiki/Railway-Sign) の新しいテクスチャやテキストを追加するには、`mtr_custom_resouces.json` に`custom_trains` JSONオブジェクトを追加する必要がある。`custom_trainsの下にある各JSONオブジェクトは、標識のテクスチャバリエーションを表し、固有のキーといくつかの必須項目を持たなければならない。
  
-Key Data Type Description Required? |+キー データ型 説明 要否 |
 | --- | --- | --- | --- | | --- | --- | --- | --- |
-| `texture_id` | String (texture ID) | The [namespaced ID](https://minecraft.wiki/wiki/Namespaced_ID) of the texture file Required +| `texture_id` | 文字列 (texture ID) | テクスチャファイルの [名前空間付きID]([[https://minecraft.wiki/wiki/Namespaced_ID]]) | 必須 
-| `flip_texture` | Boolean If `true`, the texture will be flipped horizontally Optional +| `flip_texture` | ブーリアン型 | `Trueを指定することで、テクスチャが水平方向に反転する。 任意 
-| `custom_text` | String If set, the text will be shown to the right of the image; the pipe character `\|` is supported, for example `客務中心\|Customer Service Centre` | Optional +| `custom_text` | 文字列 設定されている場合、画像の右側にテキストが表示される。パイプ文字`\` や`|` が使用可能である。`例:客務中心 | Customer Service Centre` | 任意 
-| `flip_custom_text` | Boolean If `custom_text` is set and `flip_custom_text` is `true`, the text will be shown to the left of the image Optional +| `flip_custom_text` | ブーリアン型 | `custom_text` が設定されており、`flip_custom_text` `true` の場合、画像の左側にテキストが表示される 任意 
-| `small` | Boolean If `true`, the image will be rendered with a margin around it Optional +| `small` | ブーリアン型 | `Trueを指定することで、画像が余白付きで表示される。 任意 
-| `background_color` | String (colour hex code) | The colour for the backgound Optional, defaults to the colour black if none specified |+| `background_color` | 文字列 (HEXカラーコード) | 背景色を指定する。 任意。指定がない場合には、黒色となる。 |
  
-An example is shown below.+以下に例を示す。
  
-```+``` 
 { {
   "custom_signs": {   "custom_signs": {
Line 88: Line 106:
     }     }
   }   }
-+}  
-```+``` 
 ## Model Properties file ## Model Properties file
  
Line 108: Line 126:
  
  
-The Model Properties file can be edited by the Resource Pack Creator or directly in a text editor, for example. 
  
-### basis + 
-Key Data Type Description Notes |+ 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 +モデルプロパティファイルは、リソースパックエディタを使用して自動生成させる方法と、テキストエディタ等で直接編集する方法があります。 
 + 
 +### 基本情報 
 +キー データ型 説明 要否 |
 | --- | --- | --- | --- | | --- | --- | --- | --- |
-| `transport_mode` | String  The following transport type can be specified. Must be written in CAPITAL LETTERS.<br><br>TRAIN<br>AIRPLAIN<br>CABLECAR<br>FERRY | Required +| `transport_mode` | 文字列 交通機関の種類を指定する。大文字で記述する必要がある。<br><br>TRAIN<br>AIRPLAIN<br>CABLECAR<br>FERRY | 必須 
-| `length` | Number  Specifies the length of the car body. |Required+| `length` | 数列 車体の長さを指定する。 必須 
-| `width` | Number  Specifies the width of the car body. |Required+| `width` | 数列 車体の幅を指定する。 必須 
-| `door_max` | String Specifies the door opening/closing width. If it is set to CONSTANT, the description is ignored. Required |+| `door_max` | 文字列 ドアの開閉幅を指定する。CONSTANT(固定)に指定されている場合、この設定は無視される。 必須 |
  
-### `part+### `パーツ(部品)
-Key Data Type Description Notes |+キー データ型 説明 要否 |
 | --- | --- | --- | --- | | --- | --- | --- | --- |
-| `name` | String Specify the parts folder of BBmodel. Specifying a folder without a single cube may cause Minecraft to crash.Required +| `name` | 文字列 | BBmodelの部品フォルダを指定する。空のフォルダを指定した場合、Minecraftがクラッシュする可能性がある。 必須 
-| `stage` | String The following model attributes can be specified. Must be written in CAPITAL LETTERS.<br><br>EXTERIOR<br>INTERIOR<br>LIGHTS<br>ALWAYS_ON_LIGHTS<br>INTERIOR_TRANSLUCENT | Required+| `stage` | 文字列 以下のモデル属性を指定する。大文字で記述する必要がある。<br><br>EXTERIOR<br>INTERIOR<br>LIGHTS<br>ALWAYS_ON_LIGHTS<br>INTERIOR_TRANSLUCENT | 必須 
-| `mirror` | Boolean Flip the model 180 degrees on the y-axis. Optional, default is true | +| `mirror` | ブーリアン型 モデルをY軸で180度反転させる。 任意。デフォルト値はtrue。 
-| `skip_rendering_if_too_far` | Boolean If set to true, models more than chunks apart will not be displayed. Optional, default is false |+| `skip_rendering_if_too_far` | ブーリアン型 | trueに設定した場合、2チャンク以上離れたモデルは表示されない。 任意。デフォルト値はtrue。 |
  
  
  
-## Verifying the Resource Pack+## リソースパックの確認
  
-Use a [JSON validator](https://jsonlint.com/to check for any syntax errors of the JSON files.+JSONファイルの構文エラー等のチェックは、[JSON validator](https://jsonlint.com/を使用することで、確認することが可能である。
  
-The resource pack (zip file) can be installed either clientside or as a server resource pack. If installed as a server resource pack, all players joining the server will be able to see the new additions after accepting the server resource pack.+リソースパック(zipファイル)は、クライアントまたはサーバーリソースパックとしてインストールする。サーバーリソースパックとしてインストールした場合、サーバーに参加する全プレイヤーがリソースパックを導入することで、リソースパック内の要素が表示されるようになる。
  
-[Download the example resource pack](https://github.com/jonafanho/Minecraft-Transit-Railway/blob/master/examples/MTR%20Custom%20Resources.zip?raw=true) to see a full example and to test out the functionality.+[リソースパックの例](https://github.com/jonafanho/Minecraft-Transit-Railway/blob/master/examples/MTR%20Custom%20Resources.zip?raw=true) では、ファイル構成があっているかなど、自らへのリソースパックに関するチェックにぜひ活用いただきたい。
  
 </markdown> </markdown>
  
  
ja/mtr/adding_custom_resources.1728798115.txt.gz · Last modified: 2024/10/13 05:41 by asama_tk85