promotional bannermobile promotional banner

Custom Colorful Enchantment

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]

The Custom Colorful Enchantment Team

profile avatar
Owner
  • 8
    Followers
  • 15
    Projects
  • 3.3M
    Downloads

More from HilebView all