改进地图颜色
Improved Map Colors 是一款为 Gneiss Name 的视频制作的 Minecraft 模组,它改进了 Minecraft 默认的地图颜色,包括允许用户或服务器/单人世界的数据包进行自定义配置。由于具备服务器端功能,此模组必须同时安装在专用服务器和客户端上。
此外,该模组还提供了多种预配置的 Minecraft 地图颜色选项,包括棕褐色调、灰度和反色效果。
Gneiss Name 的频道:
制作此模组所针对的视频
使用方法
该模组允许你配置 Minecraft 使用的调色板以及哪些方块和方块状态在地图上显示为何种颜色。这主要通过两种方式实现:模组配置文件和数据包。
配置文件
配置文件提供了两个字段,可用于直接修改调色板和状态列表:colorlist(颜色列表)和 state_list(状态列表)。
正如名称和描述所示,colorlist 允许你修改 Minecraft 使用的调色板。默认设置为原版颜色,以展示模组期望的格式,即一个包含最多 63 种颜色的列表,这些颜色通过其十六进制颜色代码指定。
state_list 允许你修改某个方块状态(BlockState)或方块在地图上显示的颜色 ID。模组期望的格式也由默认条目说明,由 Gneiss 慷慨提供,格式为:blockid[方块状态信息]:colorID。方块状态信息的指定方式与原版方块状态数据相同,即 [name=value,name1=value1]。模组会尽力猜测你对指定状态的意图,但有时可能会略显挑剔。
此外,还包含一种类似调试功能的方法,可以通过 CSV 文件的形式覆盖所有设置。这需要在提供的配置字段 color_file 和 blockstate_file 中进行指定。每种格式的说明和示例如下所示。
CSV 格式
颜色 CSV 的格式应为:|十六进制颜色|[可选 ID]|,例如:
"#000000","0"
"#00ff00","3"
"#ff00ff"
区块状态 CSV 的格式应为:
|区块ID[状态数据]|颜色ID<必填>| 或 |区块ID|[状态数据]|颜色ID<必填>|,例如:
"minecraft:grass_block","1"
"minecraft:black_bed[part=foot]","3"
"minecraft:grass_block","[snowy=true]","2"
数据包
这些数据包允许针对每个世界设置地图颜色,并且也是内置预设的工作方式。其格式在预设文件中提供,简而言之,该模组会扫描任何数据包中的 mapcolors/colors 和 mapcolors/states 子目录。
颜色:颜色列表文件的格式是一个 "colorlist" JSON 对象,用于 /colors 目录中的颜色,将数值颜色 ID 字符串映射到十六进制颜色代码,例如 "id":"hex color",其中 id 的范围为 0 到 63(包含两端)。
状态:方块状态文件的格式是一个名为 "stateColorIDList" 的数组,其中包含以下格式的 JSON 对象。
状态持有者格式
{
"state": {
"Name": "<minecraft block id>",
"Properties": {
"name": "value",
"name1": "value1",
"name2": "value2"
}
},
"colorID": <id>,
[optional] "trackedProperties": [
"name",
"name1"
]
}
非常感谢 Gneiss 启发了这个项目,以及 Grassy 将其翻译成俄语!
Improved Map Colors
Improved Map Colors is a Minecraft mod made for Gneiss Name's video that improves Minecraft's default map colors, including making them configurable by the user or by datapacks on a server or singleplayer world. Because of that server functionality, this mod must be installed on both the dedicated server and the client distributions.
There are also several pre-configured options for Minecraft map colors, including sepia tones, grayscale, and inverted colors.
Gneiss Name's channel:
Video this mod was made for
Usage
The mod allows you to configure both the color palette Minecraft uses as well as which blocks and blockstates show up as which colors. This is achieved through two main ways: Mod config files and datapacks.
Config
The config file provides two fields that can be used to directly modify the palette and state list: colorlist and state_list.
colorlist, as the name and description suggest, allows you to modify the color palette Minecraft uses. This is set to vanilla by default, to illustrate the format that the mod expects, which is a list containing up to 63 colors specified by their hexadecimal color code.
state_list allows you to modify the color ID that a BlockState or a Block shows up as on a map. The format the mod expects is also illustrated by the default entries, graciously provided by Gneiss: blockid[blockstate information]:colorID. The blockstate information is specified in the same way as vanilla blockstate data, [name=value,name1=value1]. The mod will do its best to guess what you intend with a specified state, but it can be a bit finicky.
Also included is something like a debug method of overriding everything in the form of a CSV file. This must be specified in the provided config fields, color_file and blockstate_file. The format for each is described and shown below.
CSV format
Color CSV should be in the format: |hex color|[optional id]|, like:
"#000000","0"
"#00ff00","3"
"#ff00ff"
Block State CSV should be in the format:
|BlockID[statedata]|colorID<required>| OR |BlockID|[statedata]|colorID<required>|, like:
"minecraft:grass_block","1"
"minecraft:black_bed[part=foot]","3"
"minecraft:grass_block","[snowy=true]","2"
Datapacks
These allow per-world map settings and are how the included presets work. The format for them is provided in the presets, but in short the mod will scan the mapcolors/colors and mapcolors/states subdirectories in any datapack.
Colors: The format for the color list files is a "colorlist" JSON object for colors in the /colors directory, mapping from a numerical colorID string to a hex color code, like "id":"hex color", where id is in a range from 0 to 63 inclusive.
States: The format for the blockstate file is an array called "stateColorIDList", which contains JSON objects in the format below.
State Holder Format
{
"state": {
"Name": "<minecraft block id>",
"Properties": {
"name": "value",
"name1": "value1",
"name2": "value2"
}
},
"colorID": <id>,
[optional] "trackedProperties": [
"name",
"name1"
]
}
Big thanks to Gneiss for inspiring the project and Grassy for translating it into Russian!
评论 0
登录后参与评分
还没有评论,来抢沙发吧