More Canvases
概述
允许通过配置文件注册新的画作变体,并兼容原版变体系统。
本模组仅负责画作的注册部分以及将其添加至 placeable 标签。所有其他方面(纹理、名称和作者)必须通过资源包提供,使用与原版画作相同的格式。
只要所有人使用的画作集合与服务器一致,此功能应在多人游戏中正常工作。
建议同时安装 No Kebab。如果你不小心从配置中移除了某个变体,No-Kebab 将防止它从世界中被移除。
配置文件
画作集
为了便于管理来自不同来源的多个画作集,本模组支持任意数量的配置文件,每个文件可包含多幅画作。
这些文件位于 .minecraft/config/more-canvases/*.json,你可以随意命名;文件名不影响功能。
根对象中的每个键都是画作的 ID。它应包含命名空间和路径,并用分号分隔。
每个值具有以下属性:
size:一个包含两个整数的数组,表示以方块为单位的画作尺寸。先宽度,后高度。placeable(可选;默认为true):是否将此画作包含在“可放置”标签中。被排除的画作只能通过命令获取。
例如,以下配置文件将重现该模组 v1.0 的行为:
{
"mocan:blank2x3": { "size":[2,3] },
"mocan:blank2x4": { "size":[2,4] },
"mocan:blank3x2": { "size":[3,2] },
"mocan:blank3x3": { "size":[3,3] },
"mocan:blank3x4": { "size":[3,4] },
"mocan:blank1x3": { "size":[1,3], "placeable":false },
"mocan:blank1x4": { "size":[1,4], "placeable":false },
"mocan:blank3x1": { "size":[3,1], "placeable":false },
"mocan:blank4x1": { "size":[4,1], "placeable":false }
}
(画作的 ID 不需要包含其尺寸;这仅仅是我当时使用的命名约定。)
如果你熟悉命令行界面,这里有一个小型脚本,能够从解压后的纹理包生成配置文件。
错误处理
默认情况下,画作集中的任何错误都会导致游戏崩溃。Minecraft 会在不发出警告的情况下从世界中移除缺失的画作,因此这是为了防止意外丢失。
如果你清楚自己在做什么,可以在单独的配置文件中放宽这些限制:.minecraft/config/more-canvases.properties。
所有属性的默认值均为 true:
failHard.onPaintings:如果无法创建画作(因为其定义无效或无法读取配置文件),则会导致崩溃。failHard.onDuplicata:如果存在同一 ID 的多个定义,则会导致崩溃。这仅适用于 More-Canvases 范围内定义的画作或原版画作。即使将此选项设置为 false,重新定义来自其他模组的画作仍可能导致崩溃,具体取决于模组加载顺序。failHard.onPlaceable:如果模组未能用生成的画作填充 placeable 标签,则会导致崩溃。
相关模组
No Kebab
防止已卸载的自定义画作从世界中被移除。
Invariable Paintings
将画作变为可收集物品。
额外致谢
Client Paintings
V1 是作为 Client-Paintings 的配套模组设计的。V2 仍可与其共存,并可用于为其提供更多可用的画作尺寸。然而,除非你真的很喜欢其基于 ETF 风格的变体系统原理,否则 V2 会使 Client-Paintings 变得多余。
V1 的自述文件仍可在仓库的相应标签页中找到。
Dataified paintings
对于大多数用途而言,Mo-Can 实现了与我另一个模组 Dataified Paintings 相同的结果,区别在于它是基于配置而非数据包驱动的。Mo-Can 易于维护且更加稳定,而 Dataified 仍处于实验阶段,功能尚未完全完善。
More Canvases
Overview
Lets you register new painting variants via a configuration file, in compliance with the vanilla variant system.
This mod only handles the registration part of the paintings and their addition to the placeable tag. All other aspects (textures, names and authors) must be provided via a resource pack, using the same format as for vanilla paintings.
This should work in multiplayer, so long as everyone uses the same set of paintings as the server.
I recommend also installing No Kebab. If you accidentally remove a variant from the config, No-Kebab will prevent it from being removed from the world.
Configuration files
Painting sets
In order to easily manage multiple painting sets from different sources, this mod can accomodate for any number of configuration files, each containing multiple paintings.
The files are located in .minecraft/config/more-canvases/*.json, and may use any name you want; the filename has no bearing on the functionality.
Each key in the root object is the ID of a painting. It should contain both the namespace and the path, separated by a semicolon.
Each value has the following properties:
size: An array of two integers, the dimensions of the painting measured in blocks. Width first, then height.placeable(Optional; defaults totrue) : Whether this painting should be included in the "placeable" tag. Paintings that are excluded can only be obtained through commands.
For example, here's a config file that would reproduce the behaviour of v1.0 of the mod:
{
"mocan:blank2x3": { "size":[2,3] },
"mocan:blank2x4": { "size":[2,4] },
"mocan:blank3x2": { "size":[3,2] },
"mocan:blank3x3": { "size":[3,3] },
"mocan:blank3x4": { "size":[3,4] },
"mocan:blank1x3": { "size":[1,3], "placeable":false },
"mocan:blank1x4": { "size":[1,4], "placeable":false },
"mocan:blank3x1": { "size":[3,1], "placeable":false },
"mocan:blank4x1": { "size":[4,1], "placeable":false }
}
(The painting's ID does not need to contain its size; this is just the naming convention I was using back then.)
If you're familar with CLI, here is a tiny script capable of generating a config file from an unzipped texture pack.
Error handling
By default, any error in the painting sets will cause the game to crash. Minecraft removes missing paintings from the world with no warning, so this is to prevent any accidental loss.
If you know what you're doing, those restrictions can be laxed in a separate configuration file: .minecraft/config/more-canvases.properties.
All the properties are true by default
failHard.onPaintingscrashes if a painting couldn't be created, either because it has an invalid definition, or because a configuration file could not be read.failHard.onDuplicatacrashes if multiple definitions exist for the same id. This only applies to the paintings defined within the scope of More-Canvases, or vanilla paintings. Redefining a painting from another mod may still lead to a crash even with this option set to false, depending on the mod-loading order.failHard.onPlaceablecrashes if the mod fails to populate the placeable tag with the generated paintings.
Related mods
No Kebab
Prevents uninstalled custom paintings from being removed from the world.
Invariable Paintings
Turns paintings into collectibles.
Extra credits
Client Paintings
V1 was designed as a companion mod for Client-Paintings. V2 can still coexist with it, and can still be used to make more painting sizes available to it. However v2 makes Client-Paintings redundant, unless you really like the principle behind its ETF-like variant system.
The readme for v1 can still be found on the corresponding tag of the repository.
Dataified paintings
For most means and purpose, Mo-Can achieves the same results as my other mod Dataified Paintings, with the exception of being config-driven instead of datapack-driven. Mo-Can is infinitely easier to maintain and more stable, whereas Dataified is still experimental and not fully functional.
下载 More Canvases
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 More Canvases
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 More Canvases
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 More Canvases
下载 More Canvases
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 More Canvases
下载 More Canvases
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 More Canvases
下载 More Canvases
- 标记为与 MC 1.21 不兼容
- 正在归档该项目,以支持 Minecraft 基于数据驱动的画作功能。感谢你的陪伴。?
如果你熟悉命令行界面(CLI),我可能仍会对 这个小型脚本 感兴趣,它可以从一个资源包生成数据包。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧