User Tools

Site Tools


mtr_extra:resourcepack:make:others

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mtr_extra:resourcepack:make:others [2025/11/19 23:26] Navimtr_extra:resourcepack:make:others [2025/11/29 11:01] (current) Navi
Line 3: Line 3:
 This guide will tell you how to add signs, sounds, etc. to your resource pack. This guide will tell you how to add signs, sounds, etc. to your resource pack.
  
-<WRAP center round important 90%>+<WRAP center round important 70%>
  
 **MTR4 format** is used in this tutorial. **MTR4 format** is used in this tutorial.
Line 9: Line 9:
 </WRAP> </WRAP>
  
-===== Adding a sign ===== +<WRAP center round info 70%> 
-==== Adding your icon to the pack ====+ 
 +It is recommended to read [[mtr:adding_custom_resources|adding_custom_resources]] first, as it contains information about the structure of an MTR resource pack. 
 + 
 +</WRAP> 
 + 
 +In the MTR mod, it is possible to add your own custom signs, rails, objects and lift retextures by editing the ''mtr_custom_resources.json''
 + 
 +==== Adding new custom content to the pack ====
  
   * Create a folder under ''mtr'' with a name that you want (for example: ''custom_signs'').   * Create a folder under ''mtr'' with a name that you want (for example: ''custom_signs'').
Line 20: Line 27:
 </WRAP> </WRAP>
  
-  * Add in the custom icon that you wanted to use.+  * Drop in the custom content that you will use.
  
-<WRAP center round info 90%>+===== Registering custom content =====
  
-Typically, an icon for signs is 128 x 128 in size.+Return to ''mtr_custom_resources.json''.
  
-</WRAP> +<tabbox Custom signs>
- +
-==== Registering the sign data ==== +
- +
-=== Compulsory components ===+
  
-  Return to the ''mtr_custom_resources.json''. Inside the square brackets of ''"signs"'', add the following code.+**Compulsory components**
  
 <code json mtr_custom_resources.json> <code json mtr_custom_resources.json>
Line 44: Line 47:
 </code> </code>
  
-  * Replace the ''id'' to an ID that you like. Only a-z, 0-9, -, _ and ! are accepted. +  * Replace the value of ''id'' with an ID that you like. Only a-z, 0-9, -, _ and ! are accepted. 
-  * Replace the ''textureResource'' with the path to the icon.+  * Replace the value of ''textureResource'' with the path to the icon.
  
-=== Optional components ===+**Optional components**
  
-  * Replace the ''customText'' with any text that you want to render. Use a vertical bar (|) to separate between two languages.+  * Replace the value of ''customText'' with any text that you want to render. Use a vertical bar (|) to separate between two languages.
   * Set ''small'' to ''true'' if you want the icon to be rendered with a small padding around.   * Set ''small'' to ''true'' if you want the icon to be rendered with a small padding around.
   * Set ''flipCustomText'' to ''true'' if you want the text to be rendered to the right.   * Set ''flipCustomText'' to ''true'' if you want the text to be rendered to the right.
  
-  * Save the JSON file.+<tabbox Custom rails> 
 + 
 +**Compulsory components** 
 + 
 +<code json mtr_custom_resources.json> 
 +
 +    "id": "my_custom_rail", 
 +    "name": "My custom Rail", 
 +    "color": "E5E533", 
 +    "modelResource": "mtr:custom_rails/my_custom_rail.obj", 
 +    "repeatInterval": 0.5 
 +
 +</code> 
 + 
 +  * Replace the value of ''id'' with an ID that you like. Only a-z, 0-9, -, _ and ! are accepted. 
 +  * Replace the value of ''name'' with a name that you like. 
 +  * Replace the value of ''modelResource'' with a path to the model. 
 +  * Replace the value of ''repeatInterval'' with the length of your model in metres. 
 + 
 +**Optional components** 
 + 
 +  * Replace the value of ''color'' with a HEX colour value that you like. This will change the colour of the small square next to the object to that value. 
 + 
 +<tabbox Custom objects> 
 + 
 +**Compulsory components** Inside the square brackets of ''"objects"'', add the following code. 
 + 
 +<code json mtr_custom_resources.json> 
 +
 + "id": "my_custom_object", 
 +        "name": "My custom object", 
 +        "modelResource": "mtr:custom_objects/my_custom_object.obj", 
 +        "textureResource": "mtr:custom_objects/my_custom_object.mtl", 
 +        "color": "000000", 
 +        "flipTextureV": true, 
 +        "translation": [0,0,0], 
 +        "rotation": [0,0,0], 
 +        "scale": [1,1,1], 
 +        "mirror": [false,false,false] 
 +
 +</code> 
 + 
 +  * Replace the value of ''id'' with an ID that you like. Only a-z, 0-9, -, _ and ! are accepted. 
 +  * Replace the value of ''name'' with a name that you like. 
 +  * Replace the value of ''modelResource'' with a path to the model. 
 +  * Replace the value of ''textureResource'' with a path to the model's texture. 
 +  * Set ''flipTextureV'' to ''false'' if your texture is flipped. 
 + 
 +**Optional components** 
 + 
 +  * Replace the value of ''color'' with a HEX colour value that you like. This will change the colour of the small square next to the object to that value. 
 +  * Modify the values of ''translation'', ''rotation'' and/or ''scale'' ([x,y,z]) if you want the model to be rendered by default to have that value of translation/rotation/scale. 
 +  * Set ''mirror'' to ''true'' if you want the icon to be rendered with a small padding around. 
 + 
 +<tabbox Custom lifts> 
 + 
 +**Compulsory components** 
 + 
 +<code json mtr_custom_resources.json> 
 +
 + "id": "my_custom_lift", 
 +        "name": "My custom lift", 
 +        "color": "CCCCCC", 
 +        "textureResource": "mtr:custom_lifts/my_custom_lift.png" 
 +
 +</code> 
 + 
 +  * Replace the value of ''id'' with an ID that you like. Only a-z, 0-9, -, _ and ! are accepted. 
 +  * Replace the value of ''name'' with a name that you like. 
 +  * Replace the ''textureResource'' with the path to the lift texture. 
 + 
 +**Optional components** 
 + 
 +  * Replace the value of ''color'' with a HEX colour value that you like. This will change the colour of the small square next to the object to that value. 
 + 
 +</tabbox> 
 + 
 +Save the JSON file when you're done.
  
 <WRAP center round important 90%> <WRAP center round important 90%>
Line 61: Line 141:
 </WRAP> </WRAP>
  
-==== Adding it to the game ====+===== Adding it to the game =====
  
   * Open Minecraft, and go to {{:mtr_extra:resourcepack:make:options.png?100}} > {{:mtr_extra:resourcepack:make:rp.png?160}} from either the Game Menu or the title page.   * Open Minecraft, and go to {{:mtr_extra:resourcepack:make:options.png?100}} > {{:mtr_extra:resourcepack:make:rp.png?160}} from either the Game Menu or the title page.
   * Apply the resource pack, and press {{:mtr_extra:resourcepack:make:done.png?160}}.   * Apply the resource pack, and press {{:mtr_extra:resourcepack:make:done.png?160}}.
-  * Your sign should now show in the game. 
  
-{{:mtr_extra:resourcepack:make:2025-07-01_10.29.41.png?400}}+===== Checking your custom content ===== 
 + 
 +To check whether your custom content has been added to the game, follow the instructions below. 
 + 
 +==== Signs ==== 
 + 
 +Place down a sign, and scroll to the last pageYour custom sign should show. 
 + 
 +==== Rails ==== 
 + 
 +Place down a rail, and use (right click) one of the rail node. Press ''Edit...'' and you should see your rail model. 
 + 
 +==== Objects ====
  
-====== TODO ======+Place down a decoration object, and use (right click) it. Press ''Edit...'' and you should see your custom object.
  
-===== Adding custom rails ===== +==== Lifts ====
-===== Adding custom objects ===== +
-===== Adding custom lifts =====+
  
 +Create a lift structure, and use (right click) the lift track with a Lift Refresher. Press ''Style: ...'' and you should see your lift retexture.
  
  
mtr_extra/resourcepack/make/others.1763594762.txt.gz · Last modified: 2025/11/19 23:26 by Navi