跳到正文

Custom Colorful Enchantment

作者:Hileb

a mod that enable modder and player adjust the color of enchantment.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

For modder, use API.For player, use config/colorful_enchantment_cfg.json.
to adjust the color of enchantment.

This module allows players to use Json or create accessory modules to adjust enchanted light effects.

Json

Config

{
Colors: []
}

Colors is an array of lighting effects.

light efficiency term

custom_colorful_encumber: enhancement

Example:

{
"Type": "custom_colorful_enhancement: enhancement",
"_comment_type": "But has accept_all means accept all items -- always true",
'_accept_all': true,
"Enhancement": "minecraft: fire_protection",
Color: 16711680,
_comment_color ":" 16777215 is # FFFFFF "
}

The type specifies that the lighting item type is custom_ Colorful_ Enhancement: Enhancement.
If there is an accept_ All, regardless of its value, applies to all enchantments. Otherwise, it only applies to the enhancement, and the color is RGB color code.

custom_colorful_enchange: ingredient

Example:

{
"Type": "custom_colorful_enchantment: ingredient",
"_comment_type": "But has accept_all means accept all items -- always true",
'_accept_all': true,
Color: 3928840,
"_comment_color": "65535 is # 3BD308",
'ingredient':{
"Item": "minecraft: wool",
Data: 0
},
_comment_ingredient ":" a ngredient used at recipe JSON "
}

If there is an accept_ All, regardless of its value, applies to all items. Otherwise, it only applies to ingredients, and the color is RGB color code. Ingredient is the original formula JSON used to determine whether an item can be synthesized.

API

Json loader

Listen to com.Hileb.custom_ Colorful_ Enrollment. api. registry. ColorFactoryRegistry $RegistryEvent to register.
This module comes with 2 loaders, which load Json to generate a color generator.
Custom_ Colorful_ Enhancement: enhancement
Custom_ Colorful_ Enhancement: ingredient

color generator

Listen to com.Hileb.custom_ Colorful_ Enrollment. api. registry. ColorInstancesRegistry $RegistryEvent to register.
It can be registered or generated by the loader.
This module comes with two color generators:
Minecraft: enhancement generates original enchanted light effect # 8040CB
Custom_ Colorful_ Enhancement: nbt If there is an enhancement in the item nbt_ Color adds this value as the lighting effect.

rendering

Canceled the original enchanted light rendering.
Obtain all lighting effects, average the Mod and render (merge).

Gallery

[Texture]

常见问题

Custom Colorful Enchantment 支持哪些 Minecraft 版本?

Custom Colorful Enchantment 支持 Minecraft Java 版 1.12.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Custom Colorful Enchantment 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Hileb 的其他作品

查看全部 →