Developers
Landing Page
Custom Bees
Custom Bees
  • Creating A Custom Bee
    • The Custom Bee JSON
    • Core Data
    • Render Data
      • Layer Data
      • Color Data
    • Breed Data
      • Bee Family
    • Combat Data
    • Mutation Data
      • Mutation Recipe
        • Mutation Type
    • Trait Data
      • Bee Aura
      • Potion Effect
      • Damage Effect
      • Damage Type
    • Trade Data
Powered by GitBook
On this page
  • Customization Options
  • color
  • texture
  • layerEffect
  • isPollen
  • pulseFrequency

Was this helpful?

Edit on GitHub
Export as PDF
  1. Creating A Custom Bee
  2. Render Data

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
    }
  ]
}
"resourcefulbees:rendering/v1": {
  "layers": [
    {
      "color": "blanchedalmond"
    }
  ]
}
"resourcefulbees:rendering/v1": {
  "layers": [
    {
      "color": "#442920"
    }
  ]
}

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

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

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.


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": {

}
"resourcefulbees:rendering/v1": {
  "layers": [
    {
      "layerEffect": "ENCHANTED"
    }
  ]
}
"resourcefulbees:rendering/v1": {
  "layers": [
    {
      "layerEffect": "GLOW"
    }
  ]
}

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
    }
  ]
}

PreviousRender DataNextColor Data

Last updated 1 year ago

Was this helpful?