跳到正文

Custom Paintings

作者:Fuegon

Adds some new paintings by using the CustomModelData feature added in 1.14.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

For 1.21 and up check the New Custom Paintings Resource Pack and Datapack using the new Painting variants feature

Custom paintings resource pack

This Minecraft resourcepack adds some new paintings by using the CustomModelData feature added in 1.14.

It is inspired by the custom paintings used on the Hermitcraft server, as seen in this video (14:53).

Installation

Install like any other minecraft resource pack.

Usage

The following image shows the paintings available in the resourcepack. You can also add your own.

Available paintings

To get the paintings you have two options: using the _give command_ or using _mukitanuki’s Custom Roleplay Data datapack_.

Give command

Use the following command to give the player the custom painting defined by the CustomModelData number.

/give @p painting{CustomModelData:<number>}

Where \ is the painting index as defined in painting.json

mukitanuki’s Custom Roleplay Data datapack

Alternatively, and more survival friendly, CurseForge user mukitanuki has created a datapack to change an items CustomModelData tag. You can download it from CurseForge.

Once installed you can run the command /trigger CustomModelData set <number> changing \ for the index of the painting.

Check the CurseForge page for complete instructions on this datapack

Adding custom paintings

Paintings in this resourcepack are composed of 16 by 16 pixels tiles, although the texture can be upscaled.

Textures

Place your textures (in png format) into assets\minecraft\textures\item\paintings directory inside the resource pack. They can also be placed inside their own subdirectory to keep them organized.

Models

Create a new .json file for each painting you want to add in assets\minecraft\models\item\paintings. You can also place this files inside of their own subdirectory.

Copy and paste the next code into the file you just created and change the text between quotes after the following properties:

{
“parent”: “item/paintings/master_painting”,
“credit”: “YOUR_NAME”,
“texture_size”: [16, 16],
“textures”: {
“0”: “item/paintings/YOUR_TEXTURE”,
“1”: “painting/back”,
“particle”: “item/paintings/YOUR_TEXTURE”
}
}

  • “credit”: Change _YOUR\_NAME_ for the message to credit you with this painging.
  • “texture_size”: Change this numbers if your painting is not 16 by 16 pixels.
  • “0” and “particle”: Change _YOUR\_TEXTURE_ for the name of your texture withouth the .png extensions. If you placed the textures inside of a directory you also have to include it.

Adding models to the painting

Edit assets\minecraft\models\item\painting.json and add a comma after the last _predicate_ line and paste the following code.

{“predicate”: {“custom_model_data”:MY_INDEX}, “model”: “item/paintings/MY_MODEL”}

Change:

  • _MY\_INDEX_: for the index of the new painting, make sure they are not repeated or it will override another painting.
  • _MY\_MODEL_: change my model for the name of the .json file you created in the previous step, without the file extensions. If you placed your file inside of a directory remember to include it as well.

Credits

First 4 sample paintings in the resource pack are created from art released under CC0 license by ansimuz. You can find the original images at the next links:

The rest of the paintings are created based on public domain images. You can find the originals in the next links:

常见问题

Custom Paintings 支持哪些 Minecraft 版本?

Custom Paintings 支持 Minecraft Java 版 1.14–1.20.2,共 27 个版本。下载时注意选择和你游戏版本一致的文件。

Custom Paintings 怎么安装?

把下载的 .zip 文件(不用解压)放进游戏目录的 resourcepacks 文件夹,进游戏后在「选项 → 资源包」里把它移到右边启用。

评论

登录后评论和评分

Fuegon 的其他作品

查看全部 →