Dataified Paintings
(Superceded by "More-Canvases v2") Create data-driven paintings, in compliance with the vanilla variant system.
介绍
Note of archival:
Although not datapack-driven, More Canvases v2 achieves similar results, and is infinitely easier to maintain. The “placeholder” feature has a more stable equivalent in No Kebab
Dataified Paintings
Vanilla compliant, datapack-driven custom paintings.
Unlike other data-driven mods, this one does not implement its own variant system, but fully re-use the vanilla one. This was made with the intent to be compatible with Invariable Paintings, but neither is required to work with the other.
Multiplayer is not supported at the moment.
Word of caution
The mod is sufficiently stable for long play sessions, but touches a lot of delicate mechanics. I’m releasing it as an Alpha until I’m confident I have ironed out all the fatal edge cases.
Most of the heavy lifting is done during datapack reloads. They happen when using the /reload command, but also when joining a world, or creating a new one. If something ever goes wrong, it will probably be at one of these moments.
Joining worlds should be safe enough, but manually reloading in an already loaded world is a lot more sensitive.
Features
Pack format
New variants are defined in separate json files, which simply contains a width and height properties, measured in block. The variant id is automatically derived from the file’s basename and namespace.
{
"width": 3,
"height": 2
}
Variant files are located in /data/<namespace>/paintings/. Textures and title/author are provided the same way as for the vanilla paintings. Don’t forget to add your paintings to the “placeable” tag, otherwise they will only be obtainable through commands.
In principle, textures and language files would need to be provided separately in a resource pack. But you can use Embedded Assets to merge the resource pack into the datapack.
(The official mod page has yet to port it to a compatible version of minecraft, but I have an up-to-date fork here on github, waiting to be merged.)
The combined pack structure would look something like this:
./
├─ pack.mcmeta
├─ assets
│ └─ <namespace>
│ ├─ lang
│ │ └─ en_us.json
│ └─ textures
│ └─ painting
│ ├─ <title1>.png
│ └─ <title2>.png
└─ data
├─ minecraft
│ └─ tags
│ └─ painting_variant
│ └─ placeable.json
└─ <namespace>
└─ paintings
├─ <title1>.json
└─ <title2>.json
Missing Variants
In vanilla minecraft, a painting bearing an unknown variant id is reversed to the “Kebab” variant.
With Dataified Paintings, a placeholder 1×1 variant will be created, and the paintings will never loose its variant id. This gives you the leisure to make mistakes while developping datapacks, so a broken one will not result in your already existing paintings to transformed.
This applies to both placed paintings, and painting items.
Be mindful however that increasing an existing variant’s size may still result in already placed paintings to be dropped from their wall, should they no longer fit.
常见问题
Dataified Paintings 支持哪些 Minecraft 版本?
Dataified Paintings 支持 Minecraft Java 版 1.19.4–1.20.1,共 3 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Dataified Paintings 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
Estecka 的其他作品
查看全部 →Spyglass Astronomy
在交互性更强、经过改良的夜空中绘制属于你自己的星座。 沉浸式重制太空天空盒,加入行星和更加绚丽的星空。
Variants-CIT
用于大量重复模式变体集合的替代CIT格式。
Preferred Gamerules
用于更改游戏规则默认值的轻量级模组。
Shifting Wares
Villagers will occasionally reroll their trade offers
评论
登录后评论和评分