Hex Banners
允许在旗帜颜色中使用 RGB 代码。
这不会改变任何游戏机制,仅允许渲染更多颜色。
ID 为 0 到 15 之间的任意图案颜色(除非加载了 Dye Depot,此时可达 32)仍将提供原版颜色。否则,将旗帜数据中的图案颜色替换为十六进制字符串或一个更大的数字(匹配其十六进制值),即可渲染更丰富的色彩。
接受的值为:
- 16* 至 16777215 之间的任意整数(含边界)
- 长度不超过六位字符的任意十六进制字符串
- 以
# 开头且包含最多六个十六进制字符的任意十六进制字符串(例如 #ABC123)
*:指原版范围。像 Dye Depot 这样的模组会调整染料颜色的数量,为了不破坏它们与旗帜的兼容性,解析数值时也会动态接受这些自定义数值。
旗帜渲染完全在客户端进行,因此该模组可仅在客户端使用。不过,数据处理逻辑也会在服务器上加载,以供依赖此功能的其他模组使用。
然而,本模组并未添加制作具有更丰富颜色旗帜的新合成方式。因此,你需要手动使用命令创建它们。不妨查阅 wiki 了解更多关于如何操作的详细信息。
另外请注意,在 1.20.1 版本中,旗帜图案颜色的数据键不是 color,而是 Color(首字母大写)。
Hex Banners
Adds the ability to use RGB codes for banner colors.
This does not change any gameplay feature, but allows only to render more colors.
Any pattern color ID between 0 and 15 (unless Dye Depot is loaded, in which case up to 32) will still provide the vanilla colors.
Otherwise, replacing the banner data's pattern color for either a hex string or a number bigger (matching the hexadecimal value) will allow to render more detailed colors.
Accepted values are:
- Any number between 16* and 16777215 included
- Any hexadecimal string up to six characters long
- Any hexadecimal string starting with a
# with up to six hexadecimal characters (e.g. #ABC123
*: in vanilla. Mods such as Dye Depot tweak the numbers of dye colors, and in order to not break using them on banners, these are dynamically accepted as well when parsing number values.
The banner rendering is purely client-side, and thus, this mod can be used solely on the clients. However, the data handling logic also is loaded on the server, for mods that do rely on it for additional features.
However, there is no added way to craft banners with more detailed colors. As such, you need to manually create them using commands. Don't hesitate to look up the wiki for more info about how to do that.
Additionally, please note that on 1.20.1, the banner pattern color data key is not color, but Color, with an uppercase C.
评论 0
登录后参与评分
还没有评论,来抢沙发吧