User Tools

Site Tools


zh:mtr_extra:resourcepack:make

This is an old revision of the document!


等待修复 此页面没有被翻译完全。请帮助翻译本页。
(当全文翻译完时请移除这个段落。)

制作一个自定义列车资源包

这个页面会教你如何去创建一个自定义的列车资源包。

资源包制作建议使用Windows 10 21H1及以上,以下版本建议使用第三方软件打包zip。

您可以观看视频来制作资源包(需要科学上网): https://www.youtube.com/watch?v=QH1O-y6kPSk

教程

  1. 进入你的“.minecraft”文件夹
  2. 找到“resourcepacks”文件夹并进入
  3. 新建一个文件夹,文件夹名称取决于你要给资源包取什么名
  4. 进入文件夹后,再新建一个文件夹,名称为 assets.
  5. 粘贴或新建制作一个名叫“pack.png”的图片文件,这是可选的,目的是为资源包制作图标。图片分辨率必须小于128×128。
  6. 下载一个示范“pack.mcmeta”,这个文件是必需的,否则Minecraft无法读取。你也可以新建一个文本文档取名为“pack.mcmeta”,输入以下代码:
pack.mcmeta
{
    "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 then.

then create a new folder named MTR in the assets folder. Create a text file inside the folder named mtr_custom_resources.json

copy, paste & edit some of the values. The main code is here:

for one train:

mtr_custom_resources.json
{
	"custom_trains": {
		"{Base_Train_Name_here}": {
			"name": "My Custom Train Name",
			"color": "#66CCFF",
			"base_train_type": "sp1900",
			"texture_id": "mtr:{FOLDERNAME}/{TEXTURENAME}.png"
 
		}
	}
}

for more than one (here for 2 trains)

mtr_custom_resources.json
{
	"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"
 
		}
	}
}

Json explanation:

  • “name”: The name that MTR shows in the train picker.*
  • “color”: The color that MTR shows in the train picker.
  • “base_train_type”: The type of the retextured train*
  • “texture_id”: The custom texture that will display when train has been spawned.*

*required

How to edit the textures?

  1. Download Paint 3D [Because it supports transparency]
  2. open Paint 3D and select Open
  3. go to you´r folder where you have saved the texture
  4. start editing
  5. after painting put the textures into you´r image folder in the RP
  6. and you´re done!

And you are done with the basics! you can now download the example resource pack!

zh/mtr_extra/resourcepack/make.1690426260.txt.gz · Last modified: 2023/07/27 02:51 by apg_doors