客户端侧画作变体
使用资源包在仅客户端的情况下添加新的画作类型,而不会移除任何现有画作!

此模组需要 Fabric API,请确保已安装该模组。
等等,这与 1.21 的画作变体有何不同?
Minecraft 1.21 引入了依赖数据包来指定新变体的画作变体功能。不幸的是,这意味着这些画作必须在每个世界中定义,或由服务器管理员进行设置。此模组在此基础上进一步扩展,允许资源包为使用该模组的客户端玩家定义更多的画作变体。未安装此模组的客户端将仅看到普通的画作。
这也导致了此模组的一个限制:它无法添加新尺寸的画作,只能为现有尺寸(无论是由 Minecraft 还是数据包定义的)增加更多变体。
在多人游戏中如何运作?
- 未安装此模组的玩家将看到服务器发送的原始画作。
- 安装此模组的玩家将看到自定义画作以及原始画作。
- 如果两个安装了此模组的玩家安装了相同的资源包,他们将看到相同的画作。
- 此模组永远不会用另一个原版画作覆盖原版画作,因此如果你看到的是原版画作,那么未安装此模组的玩家也将看到同样的画作。

针对资源包/数据包开发者
安装此模组的玩家可以在他们携带资源包前往的任何地方,将你的画作添加到可用画作的池中,而不仅仅局限于拥有数据包的服务器。由于此模组不会移除 Minecraft 的任何默认画作,这是一种让你的艺术作品整合进游戏的无破坏性友好方式。
此模组正常工作仅有两项要求:
- 确保你的画作纹理位于资源包的
assets/<namespace>/textures/painting/文件夹中(即游戏默认画作所在的位置,希望你也把画作纹理放在了这里)。 - 将画作变体 JSON 文件添加到资源包的
assets/<namespace>/painting_variant/(注意:没有尾随的s)文件夹中。- 这些文件的格式与在数据包中添加画作变体相同。
width: 画作的宽度(以方块为单位)。必须在 1-16 范围内。height: 画作的高度(以方块为单位)。必须在 1-16 范围内。asset_id:paintings贴图中的纹理标识符。格式为<namespace>/<filename-without-ext>
- 参考:24w18a 更新日志。
- 这些文件的格式与在数据包中添加画作变体相同。
示例资源包结构
resourcepack.zip
├─pack.mcmeta
├─pack.png
└─assets/
└─<namespace>/
├─painting_variant/
│ ├─<id1>.json
│ └─<id2>.json
└ textures/
└─painting/
├─<id1>.png
└─<id2>.png
这尽可能接近由数据包驱动的 1.21 画作变体系统。此模组将来自两种不同类型包的这两个文件夹合并在一起。
Vanilla 中等效的数据包和资源包
datapack.zip
├─pack.mcmeta
└─data/
└─<namespace>/
└─painting_variant/
├─<id1>.json
└─<id2>.json
resourcepack.zip
├─pack.mcmeta
├─pack.png
└─assets/
└─<namespace>/
└ textures/
└─painting/
├─<id1>.png
└─<id2>.png
我希望能为包开发者做到完全无需费力(这也能实现开箱即用),但不幸的是,资源包和数据包的分隔使得这个项目的理想形态成为不可能。相反,我认为这是次优的最佳方案。希望这是一件你可以轻松完成而不必过多思考的小事。
许可证
本模组采用 Mozilla Public License 2.0 许可。你可以在你的整合包中使用此模组。源代码包含在与每次发布版本一起提供的独立 sources.jar 文件中。
Client side painting variants
Use resource packs to add new types of painting without removing any existing paintings, entirely on the client side!

This mod requires Fabric API, so make sure it's installed with this mod.
Wait, how is this different from 1.21's painting variants?
Minecraft 1.21 adds painting variants that rely on data packs to specify new variants. Unfortunately this means that these paintings must be defined per world, or set up by the server's admin. What this mod does is extend that idea further, allowing resource packs to define more painting variants for any players using the mod on their clients. Clients without the mod just see the regular paintings.
This does lead to the one limitation of this mod: it can't add new sizes of paintings, just add more variants to existing sizes (whether they're defined by Minecraft or a data pack).
How does this work on multiplayer?
- Players without the mod will see the original paintings as sent by the server.
- Players with the mod will see custom paintings in addition to the original paintings.
- If two players with the mod installed have the same resource packs installed, then they will see the same paintings.
- This mod will never override a vanilla painting with another vanilla painting, so if you see a vanilla painting then players without the mod will see that same painting.

For resource/data pack developers
Players with this mod installed can have your paintings added into the pool of available paintings wherever they go with your resource pack, and not just on servers with the data pack. Since this mod doesn't remove any of Minecraft's default paintings, it's a nice non-destructive way to have your artwork integrated into the game.
There are only two requirements for this mod to work.
- Ensure your painting textures are in your resource pack's
assets/<namespace>/textures/painting/folder (where the game's default paintings are, so hopefully this is where you've put your painting textures too). - Add the painting variant JSON files to your resource pack's
assets/<namespace>/painting_variant/(note: no trailings) folder.- These are the same format as adding painting variants in a data pack.
width: Width of the painting in blocks. Must be in the range of 1-16.height: Height of the painting in blocks. Must be in the range of 1-16.asset_id: Identifier of the texture in thepaintingsatlas.<namespace>/<filename-without-ext>
- Ref: 24w18a changelog.
- These are the same format as adding painting variants in a data pack.
Example resource pack structure
resourcepack.zip
├─pack.mcmeta
├─pack.png
└─assets/
└─<namespace>/
├─painting_variant/
│ ├─<id1>.json
│ └─<id2>.json
└ textures/
└─painting/
├─<id1>.png
└─<id2>.png
This as similar as possible to 1.21's painting variant system, which is driven by data packs. This mod takes the two folders from the two different types of pack and puts them together.
Equivalent data and resource pack in Vanilla
datapack.zip
├─pack.mcmeta
└─data/
└─<namespace>/
└─painting_variant/
├─<id1>.json
└─<id2>.json
resourcepack.zip
├─pack.mcmeta
├─pack.png
└─assets/
└─<namespace>/
└ textures/
└─painting/
├─<id1>.png
└─<id2>.png
I'd love to make this a no-effort thing for pack developers (which would also have the benefit of working out-of-the-box), but unfortunately the resource/data pack split makes the ideal version of this project impossible. Instead, I think this is the next best thing. I hope that it's a small thing you can just do without having to think about it too much.
License
This mod is licensed under the Mozilla Public License 2.0. You may use this mod in your mod packs. Source code is included in a separate sources.jar file alongside every release.
下载 Client side painting variants
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Client side painting variants
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Client side painting variants
下载 Client side painting variants
下载 Client side painting variants
下载 Client side painting variants
下载 Client side painting variants
下载 Client side painting variants
Minecraft 1.21.9
更新
- 已更新至 Minecraft 1.21.9
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
添加睡袋和吊床,分别用于便携性和昼夜转换,同时不会设置新的出生点。共有16种颜色可选!
模组
为你的终界增添新生物群系、神秘仪式和全新生物
评论 0
登录后参与评分
还没有评论,来抢沙发吧