Layer Data
The layer customization component is responsible for defining key aspects of a specific render layer. There are several aspects of a layer that can be modified:
Effect
Pulse Frequency
Color
Texture
Visibility when carrying pollen
"resourcefulbees:rendering/v1": {
"layers": [
{
"layerEffect": "GLOW",
"pulseFrequency": 5.0,
"color": 65535,
"texture": "/example/pollen",
"isPollen": false
}
]
}Customization Options
color
colorThe color that will be applied to the layers texture, this should not be set if your texture is not made to be colored.
"resourcefulbees:rendering/v1": {
"layers": [
{
"color": 52020
}
]
}"resourcefulbees:rendering/v1": {
"layers": [
{
"color": "blanchedalmond"
}
]
}"resourcefulbees:rendering/v1": {
"layers": [
{
"color": "#442920"
}
]
}texture
textureThe texture for the layer. Each texture requires two versions to exist: normal and angry. The angry texture should use the same name as the normal texture with the suffix _angry appended to it.
creeper.png
creeper_angry.png
layerEffect
layerEffectThe effect the layer will have. There are 3 options available:
This effect does nothing. It is the default option and does not need to be set explicitly.
This effect applies the enchantment glint effect to the layer.
This is used to apply a fullbright glow to the texture similar to the flash a creeper makes.
This combined with the pulseFrequency field will allow for the same effect as a creeper.
This does not have to be set explicitly. The two examples below do the same thing:
"resourcefulbees:rendering/v1": {
"layers": [
{
"layerEffect": "NONE"
}
]
}"resourcefulbees:rendering/v1": {
}"resourcefulbees:rendering/v1": {
"layers": [
{
"layerEffect": "ENCHANTED"
}
]
}"resourcefulbees:rendering/v1": {
"layers": [
{
"layerEffect": "GLOW"
}
]
}isPollen
isPollenWhen true, this layer will only be visible if the bee is carrying pollen.
pulseFrequency
pulseFrequencyUsed with the GLOW layerEffect to create a flashing effect.
Last updated
Was this helpful?