mtr:adding_custom_resources
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mtr:adding_custom_resources [2023/10/20 13:23] – change Minecraft wiki link weryskok | mtr:adding_custom_resources [2024/12/15 16:24] (current) – Fixed broken link matej137 | ||
---|---|---|---|
Line 16: | Line 16: | ||
To add texture variants, the '' | To add texture variants, the '' | ||
+ | |||
< | < | ||
- | | Key | Data Type | Description | Notes | | + | |
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | | Key | Data Type | Description | ||
| --- | --- | --- | --- | | | --- | --- | --- | --- | | ||
- | | `name` | String | The name to be shown on [dashboards](https:// | + | | `name` | String | The name to be shown on [dashboards](https:// |
- | | `color` | String (colour hex code) | The colour to be shown on [dashboards](https:// | + | | `color` | String (colour hex code) | The colour to be shown on [dashboards](https:// |
- | | `base_train_type` | String (train ID) | The train model to apply the texture on | Required(If bbmodel is not used.), see [the trains page](https:// | + | | `base_train_type` | String (train ID) | The train model to apply the texture on | Required(If bbmodel is not used.) |
- | | `texture_id` | String (texture ID) | The [namespaced ID](https:// | + | | `texture_id` | String (texture ID) | The [namespaced ID](https:// |
- | | `description` | String | A brief description of this train can be added. Newline code (\n) available. | Optional | | + | | `description` | String | A brief description of this train can be added. Newline code (\n) available. | Optional |
- | | `wikipedia_article` | String | You can cite the English Wikipedia article. If it is too long, it will be omitted in the middle. | Optional | | + | | `wikipedia_article` | String | You can cite the English Wikipedia article. If it is too long, it will be omitted in the middle. | Optional |
- | | `train_barrier_id` | String | Train barriers will be installed at the end of the car. If not specified, it will not be displayed. | Optional | | + | | `train_barrier_id` | String | Train barriers will be installed at the end of the car. If not specified, it will not be displayed. | Optional |
- | | `gangway_connection_id` | String | Gangway will be placed at the end of the car. If not specified, a Gangway of SP1900 will be shown.| Optional | | + | | `gangway_connection_id` | String | Gangway will be placed at the end of the car. If not specified, a Gangway of SP1900 will be shown.| Optional |
- | | `has_gangway_connection` | Boolean |Selects whether the gangway can be passed through if false, the gangway will be transparent and the `gangway_connection_id` specification will be ignored.| Optional, Default is true (can pass through)| | + | | `has_gangway_connection` | Boolean |Selects whether the gangway can be passed through if false, the gangway will be transparent and the `gangway_connection_id` specification will be ignored.| Optional|`true`|| |
- | | `door_animation_type` | String | The following door animations can be specified. Must be written in CAPITAL LETTERS.< | + | | `door_animation_type` | String | The following door animations can be specified. Must be written in CAPITAL LETTERS.< |
- | | `model` | String | Specify BBmodel file by file path.| Required if BBmodel is used.| | + | | `model` | String | Specify BBmodel file by file path.| Required if BBmodel is used.|N/A|| |
- | | `model_properties` | String | Specify Model Properties file(.json) by file path.| Required if BBmodel is used.| | + | | `model_properties` | String | Specify Model Properties file(.json) by file path.| Required if BBmodel is used.|N/A|| |
- | | `speed_sound_base_id` | String | Specifies the ID of a conventional running sound, which can be either the default train ID or one defined in sounds.json.|Optional, If not specified, the sound will be silent.| | + | | `speed_sound_base_id` | String | Specifies the ID of a conventional running sound, which can be either the default train ID or one defined in sounds.json.|Optional|N/A|If not specified, the sound will be silent.| |
- | | `speed_sound_count` |Number|Specify the number of ogg files in the acceleration or deceleration folder within the folder specified in speed_sound_base_id above. If not specified correctly, files above a certain speed will be silent.|Optional, If not set, the number of sounds specified by Train ID is set.| | + | | `speed_sound_count` |Number|Specify the number of ogg files in the acceleration or deceleration folder within the folder specified in speed_sound_base_id above. If not specified correctly, files above a certain speed will be silent.|Optional|The number of sounds specified by Train ID (if any)|| |
- | | `door_sound_base_id` | String | Specifies the ID of a conventional door sound, which can be either the default train ID or one defined in sounds.json.|Optional, If not specified, the sound will be silent.| | + | | `door_sound_base_id` | String | Specifies the ID of a conventional door sound, which can be either the default train ID or one defined in sounds.json.|Optional|N/A|If not specified, the sound will be silent.| |
- | | `door_close_sound_time` |Number|Specifies the offset of the door sound; cannot be greater than 1 or less than 0 due to limitations on the MTR side.|Optional, Default is 0.5| | + | | `door_close_sound_time` |Number|Specifies the offset of the door sound; cannot be greater than 1 or less than 0 due to limitations on the MTR side.|Optional|`0.5`|| |
- | | `bve_sound_base_id` | String |Specifies the ID of a BVE sound, which can be either the default train ID or one defined in sounds.json. See here for how it is defined. [MTR: | + | | `bve_sound_base_id` | String |Specifies the ID of a BVE sound, which can be either the default train ID or one defined in sounds.json. See here for how it is defined. [MTR: |
An example is shown below. | An example is shown below. | ||
Line 54: | Line 61: | ||
## Adding New Railway Sign Textures or Text | ## Adding New Railway Sign Textures or Text | ||
- | To add new [railway signs](https:// | + | To add new [railway signs](https:// |
- | | Key | Data Type | Description | Notes | | + | | Key | Data Type | Description | Required? |
| --- | --- | --- | --- | | | --- | --- | --- | --- | | ||
| `texture_id` | String (texture ID) | The [namespaced ID](https:// | | `texture_id` | String (texture ID) | The [namespaced ID](https:// | ||
Line 82: | Line 89: | ||
``` | ``` | ||
## Model Properties file | ## Model Properties file | ||
+ | |||
</ | </ | ||
+ | |||
<WRAP center round todo 60%> | <WRAP center round todo 60%> | ||
+ | |||
This section is currently unwritten. | This section is currently unwritten. | ||
+ | |||
</ | </ | ||
+ | |||
< | < | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
The Model Properties file can be edited by the Resource Pack Creator or directly in a text editor, for example. | The Model Properties file can be edited by the Resource Pack Creator or directly in a text editor, for example. |
mtr/adding_custom_resources.1697808232.txt.gz · Last modified: 2023/10/20 13:23 by weryskok