This guide will tell you how to set up your file structure to make a resource pack.
Requirements: Windows 10 21H1 or later.
It is recommended to watch Jonathan's tutorial video for this topic: https://www.youtube.com/watch?v=QH1O-y6kPSk
assets
. { "pack": { "description": "put your pack description here", "pack_format": 9, } }
The pack format is what version of Minecraft the pack is for. If you are only adding MTR models or textures, this is not important.
However, if you feel the need to add a number, it is recommended to use 8 or 9, as they correspond to versions 1.18 and 1.19 respectively.
If a pack tells you it's “not compatible”, just remember that the only thing that changes that is this number, so it really doesn't say much.
mtr_custom_resources.json
To format your JSON file, simply copy, paste & edit some of the values. The main code is here:
If you have just one train:
{ "custom_trains": { "{Base_Train_Name_here}": { "name": "My Custom Train Name", "color": "#66CCFF", "base_train_type": "sp1900", "texture_id": "mtr:{FOLDERNAME}/{TEXTURENAME}.png" } } }
If you have more than one (you cannot simply duplicate the piece above, as this messes with the json format):
{ "custom_trains": { "{Base_Train_Name_here}": { "name": "Another train name here", "color": "66CCFF", "base_train_type": "sp1900", "texture_id": "mtr:{FOLDERNAME}/{TEXTURENAME}.png" }, "{Base_Train_Name_here}": { "name": "Another train name here", "color": "66CCFF", "base_train_type": "sp1900", "texture_id": "mtr:{FOLDERNAME}/{TEXTURENAME}.png" } } }
Make sure to never include uppercase letters in your filenames or the ids inside the resourcepack. Using them usually causes minecraft to ignore it and revert to the default texture.
Also for more help check out the MTR Github Wiki https://github.com/jonafanho/Minecraft-Transit-Railway/wiki/Trains, https://github.com/jonafanho/Minecraft-Transit-Railway/wiki/Adding-Custom-Resources
JSON explanation:
What it should look like:
You can also use blockbench to retexture trains! To do so however, you must first also download the train bbmodel file from the following link:
https://github.com/Minecraft-Transit-Railway/Minecraft-Transit-Railway/tree/master/fabric/src/main/resources/assets/mtr/models/vehicle
And you are done with the basics!
The example resource pack can be downloaded below:
You are going to want the sound to originate from the source that plays the sound, so make sure your sound file is mono. This can be changed easily by importing the sound file into Audacity and exporting it as a mono ogg file.
mtr
folder inside your resourcepack and create a new folder within that called sounds
, create another new folder inside that called whatever you want, then paste the sound files in a folder called acceleration
or deceleration
. That second-to-last folder will be your “sound id” that you will have to specify later in the process.