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

Template:
"resourcefulbees:rendering/v1": {
  "layers": [
    {
      "layerEffect": "GLOW",
      "pulseFrequency": 5.0,
      "color": 65535,
      "texture": "/example/pollen",
      "isPollen": false
    }
  ]
}

Customization Options


color

The color that will be applied to the layers texture, this should not be set if your texture is not made to be colored.


Name: Color

Key: color

Type: Color

Default: Optional

"resourcefulbees:rendering/v1": {
  "layers": [
    {
      "color": 52020
    }
  ]
}

texture

The 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


Name: Texture

Key: texture

Type: String

Default: Missing Texture

Example:
"resourcefulbees:rendering/v1": {
  "layers": [
    {
      "texture": "/example/pollen"
    }
  ]
}

layerEffect

The 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.


Name: Layer Effect

Key: layerEffect

Type: Enum | LayerEffect

Default: NONE

This does not have to be set explicitly. The two examples below do the same thing:

Explicit:
"resourcefulbees:rendering/v1": {
  "layers": [
    {
      "layerEffect": "NONE"
    }
  ]
}
Implicit:
"resourcefulbees:rendering/v1": {

}

isPollen

When true, this layer will only be visible if the bee is carrying pollen.


Name: Pollen Layer

Key: isPollen

Type: Boolean

Default: false

Example:
"resourcefulbees:rendering/v1": {
  "layers": [
    {
      "isPollen": true
    }
  ]
}

pulseFrequency

Used with the GLOW layerEffect to create a flashing effect.


Name: Pulse Frequency

Key: pulsefrequency

Type: Float

Range: 5.0 - 100.0

Default: 0

Example:
"resourcefulbees:rendering/v1": {
  "layers": [
    {
      "layerEffect": "GLOW",
      "pulseFrequency": 5.0
    }
  ]
}

Last updated