Render Data

The render customization component is responsible for defining how the bee looks. The data is only used on the client. There are several visual aspects of a bee that can be modified:

  • Size

  • Model

  • Animations

  • Textures/Layers

  • UI Colors

Template:
"resourcefulbees:rendering/v1": {
  "layers": [
    {
      "pulseFrequency": 5.0,
      "color": 52020
    },
    {
      "layerEffect": "GLOW",
      "pulseFrequency": 5.0,
      "color": 65535
    }
  ],
  "model": "resourcefulbees:geo/base.geo.json"
  "texture": "/oreo/oreo_bee",
  "animation": "resourcefulbees:animations/bee.animation.json"
  "ColorData": {
    "spawnEggPrimaryColor": "#442920",
    "spawnEggSecondaryColor": "#e1d9b8",
    "jarColor": "#442920"
  },
  "sizeModifier": 1.25
}

Identifier


The root JSON of the rendering customization component looks like this:

"resourcefulbees:rendering/v1": {
    ...
}

The identifier of the component is as such:

resourcefulbees:rendering/v1

Customization Options


layers

Layers are used to add custom textures on top of the base texture and allow them to have special effects or be enabled by special means.

Warning: Increasing the number of textures rendered on a bee will impact performance. It is recommended to use the least number of layers necessary!


Name: Layers

Key: layers

Type: LayerData[]

Default: Empty List

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

ColorData

Color data is used to set the colors for things like jars and spawn eggs.


Name: Color Data

Key: ColorData

Type: ColorData

Default: No Colors

Example
"resourcefulbees:rendering/v1": {
  "ColorData": {
    "spawnEggPrimaryColor": "#442920",
    "spawnEggSecondaryColor": "#e1d9b8",
    "jarColor": "#442920"
  }
}

model

The location where the GeckoLib geo file is stored.

Beware: The more complex the model is, the more impact it will have on performance. It is highly recommended to keep custom models as simple as possible!


Name: Model

Key: model

Type: ResourceLocation

Default: resourcefulbees:geo/base.geo.json

Example
"resourcefulbees:rendering/v1": {
  "model": "resourcefulbees:geo/base.geo.json"
}

texture

The base texture for the bee. 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": {
  "texture": "/oreo/oreo_bee"
}

animation

The location where the GeckoLib animation file is stored.


Name: Texture

Key: texture

Type: ResourceLocation

Default: resourcefulbees:animations/bee.animation.json

Example
"resourcefulbees:rendering/v1": {
  "animation": "resourcefulbees:animations/bee.animation.json"
}

Note: Only vanilla bee animations are currently supported!

sizeModifier

The scale of the bee when rendered in-game.

Note: A value of 2.0 would double the size of the bee, while a value of 0.5 would shrink the bee to half its normal size.


Name: Size Modifier

Key: sizeModifier

Type: Float

Range: 0.5 - 2.0

Default: 1.0

Example
"resourcefulbees:rendering/v1": {
  "sizeModifier": 1.25
}

Last updated