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

