mtr_extra:making_a_resourcepack
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mtr_extra:making_a_resourcepack [2024/01/27 17:17] – slettet - ekstern redigering (Unknown date) 127.0.0.1 | mtr_extra:making_a_resourcepack [2025/04/04 19:37] (current) – almost done with sound section lol szandorthe13th | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Making a Resource Pack ====== | ||
+ | This guide will tell you how to set up your file structure to make a resource pack. | ||
+ | |||
+ | Requirements: | ||
+ | |||
+ | <WRAP center round important 90%> | ||
+ | **It is recommended to watch Jonathan' | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Guide ===== | ||
+ | ==== Folder structure ==== | ||
+ | - Go to your // | ||
+ | - Then find the // | ||
+ | - Create a folder with a name that you want (for example: My custom M-Train) {{: | ||
+ | - Create a new folder inside of the existing folder called '' | ||
+ | - Upload a pack.png to your folder, this image will show in the resourcepack selection screen and should be 128x128. | ||
+ | - Download this template pack.mcmeta and put it into your resourcepack folder: | ||
+ | <file json pack.mcmeta> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | <WRAP center round info 90%> | ||
+ | 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", | ||
+ | </ | ||
+ | |||
+ | |||
+ | * Create a new folder named MTR in the assets folder. | ||
+ | * Create a text file inside the folder named '' | ||
+ | |||
+ | ==== JSON files ==== | ||
+ | To format your JSON file, simply copy, paste & edit some of the values. The main code is here: | ||
+ | |||
+ | If you have just one train: | ||
+ | <file json mtr_custom_resources.json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | |||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | If you have more than one (you cannot simply duplicate the piece above, as this messes with the json format): | ||
+ | <file json mtr_custom_resources.json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | |||
+ | }, | ||
+ | |||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | |||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | <WRAP center round important 90%> | ||
+ | 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. | ||
+ | </ | ||
+ | <WRAP center round tip 90%> | ||
+ | Also for more help check out the MTR Github Wiki [[https:// | ||
+ | </ | ||
+ | |||
+ | <WRAP center round box 60%> | ||
+ | **JSON explanation: | ||
+ | |||
+ | * ** " | ||
+ | * **" | ||
+ | * **" | ||
+ | * **" | ||
+ | |||
+ | **What it should look like:** | ||
+ | {{ : | ||
+ | {{ : | ||
+ | {{ : | ||
+ | {{ : | ||
+ | </ | ||
+ | |||
+ | ==== Train textures ==== | ||
+ | - Download an image editing software of your choice, that supports transparency. Recommended are Paint 3D and GIMP, as they are both free and relatively easy to use. **Do not** use MS Paint, because it **does not** support transparency and will cause all transparent parts of your texture to turn white | ||
+ | - Go to [[https:// | ||
+ | - Open your image editing software, find the texture you want to edit, then open it and start making your edits | ||
+ | - When you're done, export the texture file as a PNG to your resourcepack, | ||
+ | - Follow all the correct steps to create the resourcepack, | ||
+ | - Make sure you use the correct base train type. These types can for now be found on the github itself, as the model files have the same names, but in the future, there will be a page for it on this very wiki. | ||
+ | - All that is left is to put it in your resourcepacks folder and start your MTR installation! | ||
+ | |||
+ | <WRAP center round tip 90%> | ||
+ | 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:// | ||
+ | </ | ||
+ | |||
+ | And you are done with the basics! | ||
+ | <WRAP center round box 60%> | ||
+ | The example resource pack can be downloaded below: | ||
+ | <WRAP center round download 60%> | ||
+ | https:// | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== Sound files ==== | ||
+ | * Download Audacity, you're going to need it. | ||
+ | * Record any sound file, or perhaps download one from an external source. Make sure its in .ogg format and the filename doesnt contain any uppercase letters. | ||
+ | <WRAP center round info 90%> | ||
+ | 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. | ||
+ | </ | ||
+ | * Make sure you have two long sound files that sound approximately like your train accelerating from 0 to about 160-200 or so, and decelerating the other way (since sometimes the sound may vary between the two, such as brake whine or motors only making sound when accelerating) you may also use a single file if acceleration and braking is identical. | ||
+ | * Open this sound file in Audacity, select the sound in the timeline and then find " | ||
+ | * Choose the amount of sounds you want to end up with. More is not necessarily better, but does give better precision if sounds change drastically over a small time frame. Try to make the files approximately half a second to a second long. | ||
+ | * Now click export, and select " | ||
+ | * Now comes the fun part! You have to manually rename EVERY. SINGLE. SOUND FILE. Follow a pattern that goes speed_0a, speed_0b, speed_0c, speed_1a, speed_1b, etc. | ||
+ | * Go back to the '' | ||
+ | * bla bla sounds.json stuff |