# Getting Started

Resourceful Bees is designed around data-driven content. A custom bee is not one giant JSON object that must define everything at once; instead, the mod separates reusable content into several formats and lets those pieces work together.

This site documents those formats, the supporting recipes and biome modifiers, and the machine-readable schemas/templates you can use while authoring custom content.

## Start here

If you are creating your first custom bee, a good workflow is:

1. **Run Resourceful Bees once with default generation enabled.** This allows the mod to create its initial folders and default bee definitions.
2. **Set `generateDefaults = false` in the Resourceful Bees config after that initial run.** This is important when you intend to override or customize the default bee variants; leaving default generation enabled can cause the mod's generated defaults to take precedence over or replace your customized default definitions.
3. **Create or customize the bee definition.** Start small and rely on defaults where they fit your design.
4. **Add a honeycomb variation** if the bee should produce custom comb output.
5. **Add reusable traits** if the bee needs special effects, immunities, particles, auras, or other trait behavior.
6. **Add custom honey** if you want a reusable block, fluid, or bottled-honey definition.
7. **Add recipes** for machine processing or other datapack-driven integrations.
8. **Add biome modifiers** if the bee or its nest should participate in world generation or natural spawning.
9. **Validate against the schemas/templates** and then test the content in-game.

> **Important:** After the first mod run, set `generateDefaults = false` before editing or replacing any of the generated default bee variants. Treat the generated defaults as a starting point: once you begin overriding them, disabling default generation prevents the mod from regenerating its stock definitions over your changes.

Most customization is optional. The codecs provide defaults for many fields, so it is usually easier to begin with the smallest definition that expresses your idea and add complexity incrementally.

## How Resourceful Bees content is structured

The four primary top-level content formats are independent but designed to reference one another.

### Bees

Bee definitions control the bee itself: pollination targets, hive behavior, combat attributes, rendering, breeding, mutation behavior, attached traits, and trades.

Bee JSON is a flat map of versioned serializer sections such as:

* `resourcefulbees:core/v1`
* `resourcefulbees:combat/v1`
* `resourcefulbees:rendering/v1`
* `resourcefulbees:mutation/v1`
* `resourcefulbees:breeding/v1`
* `resourcefulbees:trait/v1`
* `resourcefulbees:trade/v1`

The bee identifier comes from the file/loader context rather than a root `id` field.

### Honeycombs

Honeycomb definitions describe registered honeycomb content and output variations. A variation can define hive-tier and apiary-tier outputs plus default comb/block fallbacks.

The important relationship for bee authors is that a bee's core serializer can reference a honeycomb variation through `honeycombVariation`.

### Traits

Standalone traits are reusable behavior definitions. They can contain potion or damage effects, immunities, custom damage entries, special abilities, particles, and auras.

A bee attaches these reusable definitions through its trait serializer, so the same trait can be shared by multiple bees.

### Honeys

Honey definitions configure reusable block, fluid, and bottled forms. Like bees, honey uses versioned serializer sections. The built-in serializers cover block behavior, fluid rendering/physical attributes, and bottled-honey behavior.

## Site map

The site is divided into four reference areas after this landing section:

* **Formats** — field-level documentation for Bees, Honeycombs, Honeys, and Traits.
* **Recipes** — mutation, solidification, hive, flow-hive, and honey-generator recipes, plus shared nested recipe types.
* **Biome Modifiers** — bee spawning, nest placement, holder sets, and spawn predicates.
* **JSON Schemas and Templates** — machine-readable Draft 2020-12 schemas and starter JSON templates.

Use the human-readable pages to understand intent and runtime behavior. Use the schema/template section when you need exact field names, types, required fields, ranges, and accepted JSON shapes.

## Authoring directory structure

For pack authors using the Resourceful Bees config-folder workflow, the custom-content layout is organized by content type:

```
<instance>/
└── config/
    └── resourcefulbees/
        ├── bees/
        │   └── <bee>.json
        ├── honeycombs/
        │   └── <honeycomb>.json
        ├── honey/
        │   └── <honey>.json
        ├── bee_traits/
        │   └── <trait>.json
        └── resources/
            └── assets/
                └── resourcefulbees/
                    └── lang/
                        └── en_us.json
```

The `resources` directory behaves like resource-pack content and is where supporting client assets such as language files can be placed. Textures, models, and animations can also be used to customize a bee's appearance when the corresponding rendering data references them.

Resourceful Bees content can also participate in datapacks. Recipes and biome modifiers are datapack-style integrations, while the primary bee/honey/honeycomb/trait definitions are documented separately because their loaders and registration behavior are distinct. Exact datapack directory conventions can depend on the Minecraft/NeoForge version, so this reference focuses on the JSON contracts rather than guessing version-specific pack paths.

## A practical custom-bee development loop

A reliable way to build custom bees is to treat each change as a small, testable layer:

### 1. Pick stable identifiers

Choose a short, consistent name for the bee and for related content. Keep those identifiers consistent across bee definitions, honeycomb variations, traits, recipes, textures, and translations.

### 2. Build the minimum bee

Start from the Bee template/schema and add only the serializer sections you actually need. Many fields have useful defaults; omitting a field is often better than copying a value you do not intend to customize.

If you are modifying one of Resourceful Bees' generated default variants, make sure `generateDefaults = false` before making your changes so the generated stock definition does not overwrite your customized version on a later launch.

### 3. Add production output

If the bee should produce a custom comb, define the honeycomb/variation and reference that variation from the bee's core serializer. Keep hive/apiary output mapping separate from the bee itself so it can be reused or changed independently.

### 4. Add appearance

Use the rendering serializer for layers, colors, textures, models, animations, and size. Add resource-pack assets only when you need something beyond the provided/default resources.

### 5. Add behavior in layers

Use the dedicated serializer for the concern you are changing:

* combat for aggression and attributes
* breeding for parents, feed items, and delays
* mutation for bee mutation configuration
* traits for reusable special behavior
* trade for beekeeper trade configuration

Keeping concerns in their own serializer sections makes definitions easier to debug and maintain.

### 6. Add integration content last

Once the bee itself works, add machine recipes, spawning rules, or nest placement. This makes it easier to tell whether a problem comes from the bee definition or from the integration layer.

### 7. Validate, reload, test

Before launching or reloading the pack, compare the JSON with the corresponding schema/template. Pay particular attention to:

* required fields inside serializer sections
* numeric ranges
* compact string forms versus expanded object forms
* registry identifiers and tags
* fields whose omitted value behaves differently from an explicitly empty object

Then test one behavior at a time in-game.

## Important authoring concepts

### Omitted fields are meaningful

Many codecs provide defaults. If the default is what you want, leaving a field out is usually clearer than specifying it redundantly. Some nested objects also have a meaningful distinction between being omitted and being explicitly present as `{}`; the detailed pages call these cases out.

### Reuse definitions instead of copying them

Honeycombs, honeys, and traits are intentionally reusable. If several bees share an effect or output, prefer one reusable definition referenced by multiple bees rather than duplicating the same data everywhere.

### Registry IDs and tags are different tools

Many fields accept registry identifiers, tags, holder sets, or other compact codec forms. A tag such as `#minecraft:is_overworld` represents a registry tag rather than one specific entry. Check the relevant field page before assuming a list accepts tags, IDs, or both.

### Codec-valid does not always mean gameplay-useful

The documentation distinguishes between what a codec can deserialize and what makes sense at runtime. For example, an empty list may sometimes be structurally valid even when it produces no useful gameplay behavior. Runtime caveats are documented separately from schema constraints where necessary.

## Where to go next

* Open **Formats** to begin defining Bees, Honeycombs, Honeys, or Traits.
* Open **Recipes** after the core content is working and you want machine/process integration.
* Open **Biome Modifiers** for natural bee spawning or nest world generation.
* Open **JSON Schemas and Templates** whenever you want a copyable starting point or machine-readable validation reference.

For a first custom bee, start with the **Bee** format and keep the initial definition small. Add honeycomb output, rendering, traits, recipes, and spawning only as your design needs them.


# Overview

Resourceful Bees uses several top-level JSON formats for defining reusable game content. The four primary formats documented here are **Bees**, **Honeys**, **Traits**, and **Honeycombs**. Each format has its own loader behavior and nested data structure, but they are designed to work together: bees can reference honeycomb variations and traits, while honey and honeycomb definitions provide reusable outputs and content shared across multiple bees.

## Bees

[Bee definitions](broken://pages/UPgxhxuxuaYGPc0sYtTe) describe the behavior, appearance, breeding, mutation, traits, and trade configuration of a custom bee.

Bee JSON is a flat map of versioned serializer IDs rather than a single monolithic object. Built-in sections include:

* `resourcefulbees:core/v1` for pollination targets, hive timing, lore, and honeycomb variation
* `resourcefulbees:combat/v1` for aggression and entity attributes
* `resourcefulbees:rendering/v1` for layers, colors, models, textures, animation, and size
* `resourcefulbees:mutation/v1` for mutation output configuration
* `resourcefulbees:breeding/v1` for breeding families, feed items, and delays
* `resourcefulbees:trait/v1` for attaching standalone traits and configuring aura range
* `resourcefulbees:trade/v1` for beekeeper trade configuration

The bee identifier itself is supplied by the loader/file context rather than by a root JSON `id` field. Serializer sections are largely optional unless the specific serializer codec requires a field when that section is present.

## Honeys

[Honey definitions](broken://pages/NS3aY1V29fW97npX9001) configure the block, fluid, and bottled forms associated with a custom honey.

Honey JSON is also a versioned serializer map. The built-in sections are:

* `resourcefulbees:block/v1` for honey-block properties such as color, movement factors, replacement block/item, and trade data
* `resourcefulbees:fluid/v1` for fluid rendering, physical attributes, sounds, rarity, and trade data
* `resourcefulbees:bottle/v1` for bottled-honey color, food behavior, potion effects, rarity, replacement item, and trade data

The bottle serializer is required by the current schema; block and fluid serializers are optional. The honey identifier/name comes from the file context rather than a root `name` field.

## Traits

[Standalone trait definitions](broken://pages/1m72I6uiDbtjoAI9fPro) describe reusable behavior that can be attached to bees through the bee trait serializer.

Trait JSON can configure:

* the display item
* potion-based damage effects
* damage immunities
* potion immunities
* custom damage-type entries
* special abilities
* particles
* one or more auras

Most top-level trait fields are optional and default to empty collections or codec-defined defaults. Trait files are reusable: multiple bees can reference the same trait identifier rather than duplicating the behavior in each bee definition.

## Honeycombs

[Honeycomb definitions](broken://pages/j5pbSwMFAE527D0biTjd) configure registered honeycomb content and the output variations used by bees and hive/apiary processing.

A honeycomb file can contain two major sections:

* `honeycomb` for registration properties such as name override, color, edible/block/enchanted flags, and trade data
* `variations` for reusable output mappings, including hive-tier outputs, apiary-tier outputs, a default comb, and a default comb block

Both sections are optional at the top-level codec, and `variations` defaults to an empty list. Honeycomb variation identifiers are what bee core data uses through `honeycombVariation`.

## How the formats relate

A typical custom-content setup may use all four formats together:

1. Define a **Honeycomb** and one or more output variations.
2. Optionally define a reusable **Honey** with block, fluid, and bottle behavior.
3. Define reusable **Traits** for special bee behavior.
4. Define the **Bee**, referencing the honeycomb variation and any traits it should use.

Recipes and biome modifiers are documented separately because they are datapack-style integration formats rather than primary content-registration files.

## Detailed reference

Use the child pages in this section for field-level documentation, including required/optional status, defaults, ranges, accepted compact forms, and runtime/codec caveats. Machine-readable templates and Draft 2020-12 schemas are available in the [JSON Schemas and Templates](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/README.md) section.


# Bees

Resourceful Bees bee definitions are flat maps keyed by versioned serializer IDs. The bee identifier itself is supplied externally by the registry/loader rather than by a root `id` property.

The schema-driven format is the authoritative reference for field names, defaults, ranges, and accepted JSON shapes. The older wiki also contained useful authoring guidance, which is preserved here where it remains compatible with the current codec-based format.

## Getting started

Creating a custom bee starts with a correctly structured JSON file. Most customization options are optional and have defaults, so authors can begin with a small definition and add behavior, rendering, breeding, mutations, traits, and trading as needed.

A bee definition alone may not provide every part of a finished pack experience. Depending on the bee, you may also want custom textures, translations, models or animations, traits, mutations, honey/honeycombs, recipes, and biome modifiers.

For config-based authoring, the legacy documentation used these Resourceful Bees folders:

* `config/resourcefulbees/bees` — custom bee JSON
* `config/resourcefulbees/bee_traits` — custom traits
* `config/resourcefulbees/honey` — custom honey
* `config/resourcefulbees/honeycombs` — custom honeycombs
* `config/resourcefulbees/resources` — resource-pack-style assets such as language files

These data types can also be provided through datapack/resource-pack mechanisms where supported by the mod and pack setup.

## Built-in serializer sections

| Section                        | Purpose                                                             |
| ------------------------------ | ------------------------------------------------------------------- |
| `resourcefulbees:core/v1`      | Core bee properties, flower predicates, hive timing, and lore.      |
| `resourcefulbees:combat/v1`    | Passive/aggressive behavior and entity attributes.                  |
| `resourcefulbees:rendering/v1` | Layers, colors, texture/model/animation, and render sizing.         |
| `resourcefulbees:mutation/v1`  | Mutation count and mutation identifier.                             |
| `resourcefulbees:breeding/v1`  | Parent families, feed items, feed return item, and breeding delays. |
| `resourcefulbees:trait/v1`     | Aura range and trait identifiers.                                   |
| `resourcefulbees:trade/v1`     | Trade amount, costs, reputation discount, limits, and XP.           |

The Draft 2020-12 schema models these known serializer keys while deliberately allowing additional root properties so third-party serializers remain possible.

## Core data

The core section controls the bee's honeycomb variation, pollination targets, hive timing, and lore.

```json
"resourcefulbees:core/v1": {
  "honeycombVariation": "diamond",
  "flower": "#minecraft:flowers",
  "entityFlower": [],
  "maxTimeInHive": 2400,
  "lore": []
}
```

`flower` and `entityFlower` accept registry-predicate forms: a single registry ID, a `#tag`, or a list of registry IDs. `maxTimeInHive` has a minimum of `600` and defaults to `2400`. Lore is a list of Minecraft text components and is useful for JEI/tooltips, hints, attribution, or flavor text.

## Language files

Custom content benefits from translations instead of exposing raw translation keys in-game. Under a config resource pack, language files can live under:

`config/resourcefulbees/resources/assets/resourcefulbees/lang`

For English (US), create `en_us.json`. A typical custom bee might use entries such as:

```json
{
  "block.resourcefulbees.blaze_honeycomb_block": "Blaze Honeycomb Block",
  "item.resourcefulbees.blaze_honeycomb": "Blaze Honeycomb",
  "item.resourcefulbees.blaze_spawn_egg": "Blaze Bee Spawn Egg",
  "entity.resourcefulbees.blaze_bee": "Blaze Bee"
}
```

Keep one language file per language and add new keys to it as more custom content is added. Asset reload (`F3+T`) or a restart can be used after changing resource-pack assets.

## Important codec behavior

`resourcefulbees:mutation/v1` requires a `mutation` identifier when that section is explicitly present, and its `count` uses a positive integer codec.

Rendering has a notable `pulseFrequency` behavior: omission produces the codec default `0`, while an explicitly supplied value must be within the codec's accepted `5` through `100` range.

Breeding family entries require `parent1` and `parent2`; the child bee is injected from the bee being loaded rather than encoded in each family entry.

## Machine-readable reference

The complete authoring template and JSON Schema live in the [`reference`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/README.md) directory. Use the schema as the authoritative field/type reference and this page for authoring and runtime behavior that JSON Schema cannot fully express.


# Core Serializer

Serializer ID: `resourcefulbees:core/v1`

The core serializer controls a bee's produced honeycomb variation, pollination targets, hive timing, and lore.

## Fields

| Field                | Type                               | Required | Default                | Range / accepted forms                                                     |
| -------------------- | ---------------------------------- | -------- | ---------------------- | -------------------------------------------------------------------------- |
| `honeycombVariation` | string                             | No       | `""`                   | Honeycomb variation identifier/name. Empty means no variation.             |
| `flower`             | registry predicate of blocks       | No       | `minecraft:poppy`      | A block ID, `#tag`, or list of block IDs.                                  |
| `entityFlower`       | registry predicate of entity types | No       | empty predicate (`[]`) | An entity ID, `#tag`, or list of entity IDs.                               |
| `maxTimeInHive`      | integer                            | No       | `2400`                 | `600` through `2147483647`.                                                |
| `lore`               | array of Minecraft Components      | No       | `[]`                   | Each entry may be a string, non-empty component list, or component object. |

## Example

```json
{
  "resourcefulbees:core/v1": {
    "honeycombVariation": "ruby",
    "flower": "#minecraft:flowers",
    "entityFlower": [],
    "maxTimeInHive": 2400,
    "lore": [
      "A warm, gem-like bee."
    ]
  }
}
```

## `honeycombVariation`

This value selects the output variation used when the bee produces honeycombs. The codec default is an empty string.

## `flower` and `entityFlower`

Both fields use Resourceful Bees' registry-predicate codec. Accepted compact forms are:

```json
"minecraft:poppy"
```

```json
"#minecraft:flowers"
```

```json
[
  "minecraft:poppy",
  "minecraft:dandelion"
]
```

`flower` targets blocks. `entityFlower` uses the same syntax for entity types.

## `maxTimeInHive`

This is the base hive residence time before tier modifiers are applied. Values lower than `600` are rejected by the codec.

## `lore`

Lore is a list of Minecraft chat components. Plain strings are valid, so simple lore does not need the expanded component-object syntax.

```json
"lore": [
  "First line",
  {
    "text": "Second line",
    "italic": false
  }
]
```

See [Common JSON Types](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/common-types.md) for shared identifier and compact-collection conventions.


# Combat Serializer

Serializer ID: `resourcefulbees:combat/v1`

The combat serializer controls passive/aggressive behavior and the base attributes assigned to the bee.

## Fields

| Field                   | Type       | Required | Default   | Range / accepted forms |
| ----------------------- | ---------- | -------- | --------- | ---------------------- |
| `isPassive`             | boolean    | No       | `false`   | `true` or `false`      |
| `removeStingerOnAttack` | boolean    | No       | `true`    | `true` or `false`      |
| `inflictsPoison`        | boolean    | No       | `true`    | `true` or `false`      |
| `isInvulnerable`        | boolean    | No       | `false`   | `true` or `false`      |
| `attributes`            | object map | No       | see below | Attribute ID → number  |

## Default attributes

```json
{
  "minecraft:max_health": 10.0,
  "minecraft:flying_speed": 0.6,
  "minecraft:movement_speed": 0.3,
  "minecraft:attack_damage": 1.0,
  "minecraft:follow_range": 48.0,
  "minecraft:armor": 0.0,
  "minecraft:armor_toughness": 0.0,
  "minecraft:attack_knockback": 0.0
}
```

The map is keyed by Minecraft attribute resource identifiers and accepts numeric values.

## Example

```json
{
  "resourcefulbees:combat/v1": {
    "isPassive": false,
    "removeStingerOnAttack": true,
    "inflictsPoison": true,
    "isInvulnerable": false,
    "attributes": {
      "minecraft:max_health": 20.0,
      "minecraft:attack_damage": 4.0
    }
  }
}
```

All fields are optional. Supplying a custom `attributes` map replaces the value decoded for that field; authors should include every attribute value they intend to customize explicitly.


# Rendering Serializer

Serializer ID: `resourcefulbees:rendering/v1`

The rendering serializer controls the bee's model, base texture, animation, size, layered textures, and colors.

## Fields

| Field          | Type                   | Required | Default                | Range / accepted forms                                                                                                      |
| -------------- | ---------------------- | -------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `layers`       | array of layer objects | No       | `[]`                   | Decoded as a linked set; each layer may define color, texture, effect, pollen behavior, pulse frequency, and a target bone. |
| `colors`       | color-data object      | No       | all white              | Spawn egg and jar colors.                                                                                                   |
| `model`        | resource identifier    | No       | `resourcefulbees:base` | Registered/model resource ID.                                                                                               |
| `texture`      | layer texture string   | No       | missing texture        | Short texture name expanded by Resourceful Bees.                                                                            |
| `animation`    | resource identifier    | No       | `resourcefulbees:bee`  | Animation resource ID.                                                                                                      |
| `sizeModifier` | float                  | No       | `1.0`                  | `0.5` through `2.0`, inclusive.                                                                                             |

## Example

```json
{
  "resourcefulbees:rendering/v1": {
    "layers": [
      {
        "color": "#ffffff",
        "texture": "ruby_bee",
        "layerEffect": "GLOW",
        "isPollen": false,
        "pulseFrequency": 20.0,
        "bone": "body"
      },
      {
        "texture": "ruby_crystals",
        "layerEffect": "ENCHANTED",
        "bone": "crystals"
      }
    ],
    "colors": {
      "spawnEgg": "#c62828",
      "jarColor": "#e53935"
    },
    "model": "resourcefulbees:base",
    "texture": "ruby_bee",
    "animation": "resourcefulbees:bee",
    "sizeModifier": 1.0
  }
}
```

## Layer objects

Each entry in `layers` uses the `LayerData` codec:

| Field            | Type                 | Required | Default         | Range / behavior                                                                               |
| ---------------- | -------------------- | -------- | --------------- | ---------------------------------------------------------------------------------------------- |
| `color`          | ResourcefulLib color | No       | white           | Tint applied to the layer.                                                                     |
| `texture`        | layer texture string | No       | missing texture | Texture used by the layer.                                                                     |
| `layerEffect`    | enum name or ordinal | No       | `NONE`          | `NONE`, `ENCHANTED`, or `GLOW`.                                                                |
| `isPollen`       | boolean              | No       | `false`         | Marks the layer as a pollen layer.                                                             |
| `pulseFrequency` | float                | No       | `0.0`           | Explicit values must be `5.0` through `100.0`, inclusive.                                      |
| `bone`           | string               | No       | `"body"`        | Bone targeted by effects that operate on a specific model bone. Currently used by `ENCHANTED`. |

`layerEffect` is backed by the `LayerEffect` enum. The current enum values are `NONE`, `ENCHANTED`, and `GLOW`. `EnumCodec` also accepts the enum's numeric representation.

### Enchanted bone targeting

For `ENCHANTED` layers, `bone` selects the model bone that receives the enchantment glint effect. It defaults to `"body"` when omitted.

This is useful when only part of a bee should glint. Crystal bees such as diamond, emerald, lapis, and redstone can target their `crystals` bone so the glint is applied to the crystals rather than the entire bee:

```json
{
  "texture": "diamond_crystals",
  "layerEffect": "ENCHANTED",
  "bone": "crystals"
}
```

The value is a model bone name, not a resource identifier. It therefore needs to match a bone defined by the selected model.

## Texture strings

A layer texture is not a full texture resource path. Resourceful Bees expands a short name under its bee entity texture directory and derives both normal and angry texture paths. For example:

```json
"texture": "ruby_bee"
```

or a nested short path such as:

```json
"texture": "bees/ruby_bee"
```

## Colors

ResourcefulLib colors accept numbers, strings such as `#ffffff`, registered special color names such as `rainbow`, or RGBA objects.

```json
{
  "r": 255,
  "g": 0,
  "b": 0,
  "a": 255
}
```

The `colors` object contains:

| Field      | Type                 | Required | Default |
| ---------- | -------------------- | -------- | ------- |
| `spawnEgg` | ResourcefulLib color | No       | white   |
| `jarColor` | ResourcefulLib color | No       | white   |

## `pulseFrequency` caveat

`pulseFrequency` belongs to each layer, not to the top-level rendering serializer. Omitting it resolves to `0.0`. Because an explicitly supplied value is decoded with `Codec.floatRange(5f, 100f)`, explicit values must be between `5.0` and `100.0`. Therefore `"pulseFrequency": 0` is rejected even though omission produces the default value `0.0`.


# Mutation Serializer

Serializer ID: `resourcefulbees:mutation/v1`

This serializer connects a bee to a registered mutation definition and controls how many mutation rolls/uses are associated with that bee data.

## Fields

| Field      | Type                | Required | Default | Range / accepted forms                             |
| ---------- | ------------------- | -------- | ------- | -------------------------------------------------- |
| `count`    | integer             | No       | `10`    | Positive integer (`>= 1`) when explicitly present. |
| `mutation` | resource identifier | **Yes**  | none    | Registered mutation identifier.                    |

## Example

```json
{
  "resourcefulbees:mutation/v1": {
    "count": 10,
    "mutation": "resourcefulbees:ruby_mutation"
  }
}
```

## Required-section behavior

The serializer itself has an internal default object used when the entire serializer section is absent, but that does **not** make `mutation` optional inside an explicitly written `resourcefulbees:mutation/v1` object. If you include the section, `mutation` must be present.

Likewise, the serializer-level default may contain zero-like values internally, while the explicit JSON codec for `count` is positive. Therefore `"count": 0` is invalid in an authored mutation section.


# Breeding Serializer

Serializer ID: `resourcefulbees:breeding/v1`

The breeding serializer controls valid parent combinations, breeding feed items, optional returned feed containers/items, and breeding/growth delays.

## Fields

| Field              | Type                        | Required | Default           | Range / accepted forms                        |
| ------------------ | --------------------------- | -------- | ----------------- | --------------------------------------------- |
| `families`         | array of family objects     | No       | `[]`              | Each family requires `parent1` and `parent2`. |
| `feedItems`        | registry predicate of items | No       | `minecraft:poppy` | Item ID, `#tag`, or list of item IDs.         |
| `feedReturnItem`   | item stack template         | No       | omitted           | Compact item ID or expanded item object.      |
| `feedAmount`       | integer                     | No       | `1`               | Positive integer (`>= 1`).                    |
| `childGrowthDelay` | integer                     | No       | `-24000`          | Must be `<= 0`.                               |
| `breedDelay`       | integer                     | No       | `6000`            | Must be `>= 0`.                               |

## Example

```json
{
  "resourcefulbees:breeding/v1": {
    "families": [
      {
        "weight": 10.0,
        "chance": 1.0,
        "parent1": "resourcefulbees:ruby_bee",
        "parent2": "minecraft:bee"
      }
    ],
    "feedItems": "minecraft:poppy",
    "feedReturnItem": {
      "id": "minecraft:bucket",
      "count": 1
    },
    "feedAmount": 1,
    "childGrowthDelay": -24000,
    "breedDelay": 6000
  }
}
```

## Family objects

| Field     | Type                | Required | Default | Range               |
| --------- | ------------------- | -------- | ------- | ------------------- |
| `weight`  | number              | No       | `10.0`  | `>= 0`              |
| `chance`  | number              | No       | `1.0`   | `0.0` through `1.0` |
| `parent1` | resource identifier | **Yes**  | none    | Bee identifier      |
| `parent2` | resource identifier | **Yes**  | none    | Bee identifier      |

The child is **not** encoded in each family object. Resourceful Bees injects the child identifier from the bee file currently being loaded.

## Feed predicates

`feedItems` uses the same compact registry-predicate forms as other Resourceful Bees fields:

```json
"minecraft:poppy"
```

```json
"#minecraft:flowers"
```

```json
[
  "minecraft:poppy",
  "minecraft:dandelion"
]
```

## Item stack templates

An item stack template can be a compact item identifier:

```json
"minecraft:bucket"
```

or an expanded object:

```json
{
  "id": "minecraft:bucket",
  "count": 1,
  "components": {}
}
```

Expanded objects require `id`. `count` defaults to `1` and must be from `1` through `99`. `components` defaults to an empty component patch and remains registry-extensible.


# Trait Serializer

Serializer ID: `resourcefulbees:trait/v1`

The bee trait serializer assigns reusable trait definitions to a bee and controls the range used by aura-style behavior.

## Fields

| Field       | Type             | Required | Default | Range / accepted forms  |
| ----------- | ---------------- | -------- | ------- | ----------------------- |
| `auraRange` | integer          | No       | `10`    | `3` through `20`        |
| `traits`    | array of strings | No       | `[]`    | Trait identifiers/names |

## Example

```json
{
  "resourcefulbees:trait/v1": {
    "auraRange": 10,
    "traits": [
      "resourcefulbees:fireproof"
    ]
  }
}
```

The standalone custom-trait JSON format is documented separately under [Traits](/formats/traits). This serializer only assigns those traits to a bee.


# Trade Serializer

Serializer ID: `resourcefulbees:trade/v1`

The trade serializer configures beekeeper trade quantities, optional secondary costs, reputation-based price discounts, trade limits, and XP.

## Fields

| Field                | Type              | Required | Default                  | Range / accepted forms                     |
| -------------------- | ----------------- | -------- | ------------------------ | ------------------------------------------ |
| `amount`             | uniform generator | No       | `{ "min": 1, "max": 1 }` | Both `min` and `max` are number providers. |
| `secondaryItem`      | item identifier   | No       | `minecraft:air`          | Registered item ID.                        |
| `secondaryItemCost`  | uniform generator | No       | `{ "min": 1, "max": 4 }` | Both `min` and `max` are number providers. |
| `reputationDiscount` | float             | No       | `0.05`                   | `0.0` through `1.0`, inclusive.            |
| `maxTrades`          | integer           | No       | `8`                      | `1` through `64`                           |
| `xp`                 | integer           | No       | `3`                      | `1` through `64`                           |

`reputationDiscount` is the vanilla villager-trade reputation discount multiplier. Resourceful Bees uses the vanilla-aligned name directly in trade data.

## Example

```json
{
  "resourcefulbees:trade/v1": {
    "amount": {
      "min": 1,
      "max": 4
    },
    "secondaryItem": "minecraft:emerald",
    "secondaryItemCost": {
      "min": 1,
      "max": 2
    },
    "reputationDiscount": 0.05,
    "maxTrades": 8,
    "xp": 3
  }
}
```

## Uniform generators

A uniform generator is an object with required `min` and `max` fields:

```json
{
  "min": 1,
  "max": 4
}
```

Each endpoint is a Minecraft number provider. Constant providers encode directly as numbers. Other registered providers encode as typed objects and are intentionally left extensible by the schema.

```json
{
  "type": "minecraft:uniform",
  "min": 1,
  "max": 3
}
```

The exact fields of non-constant number-provider objects depend on the registered provider type.

## Serializer-level default caveat

Resourceful Bees also has serializer-level default objects used internally when a whole trade section is absent. Those internal zero-like defaults are separate from the field defaults above. When an explicit `resourcefulbees:trade/v1` object is authored, omitted fields use the codec defaults in this table and explicit `reputationDiscount`, `maxTrades`, and `xp` values must satisfy their documented ranges.


# Honeycombs

Schema reconstructed from Resourceful Bees HoneycombSetup, HoneycombRegistry, OutputVariation, tier codecs, TradeData, and ItemStackTemplate usage.

## Example

```json
{
  "honeycomb": {
    "name": "example",
    "color": "#ffffff",
    "edible": true,
    "block": true,
    "enchanted": false,
    "tradeData": {
      "amount": {
        "min": 1,
        "max": 1
      },
      "secondaryItem": "minecraft:air",
      "secondaryItemCost": {
        "min": 1,
        "max": 4
      },
      "reputationDiscount": 0.05,
      "maxTrades": 8,
      "xp": 3
    }
  },
  "variations": [
    {
      "identifier": "example",
      "hiveCombs": {
        "resourcefulbees:t1": {"id": "resourcefulbees:example_honeycomb", "count": 1},
        "resourcefulbees:t2": {"id": "resourcefulbees:example_honeycomb", "count": 1},
        "resourcefulbees:t3": {"id": "resourcefulbees:example_honeycomb", "count": 1},
        "resourcefulbees:t4": {"id": "resourcefulbees:example_honeycomb", "count": 1}
      },
      "apiaryCombs": {
        "resourcefulbees:t1": {"id": "resourcefulbees:example_honeycomb", "count": 1},
        "resourcefulbees:t2": {"id": "resourcefulbees:example_honeycomb", "count": 1},
        "resourcefulbees:t3": {"id": "resourcefulbees:example_honeycomb", "count": 1},
        "resourcefulbees:t4": {"id": "resourcefulbees:example_honeycomb", "count": 1}
      },
      "defaultComb": {"id": "resourcefulbees:example_honeycomb", "count": 1},
      "defaultCombBlock": {"id": "resourcefulbees:example_honeycomb_block", "count": 1}
    }
  ]
}
```

## Fields

| Field        | Type                  | Required | Default | Description                                                                                                                                                                                           |
| ------------ | --------------------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `honeycomb`  | honeycombRegistryData | No       | ---     | Honeycomb item/block registration data. The name field is read separately by HoneycombSetup to override the filename-derived honeycomb name; RegistryData itself receives that name as a codec point. |
| `variations` | array                 | No       | `[]`    | Output variations registered from this honeycomb file.                                                                                                                                                |

## Runtime notes

`tradeData` has an important omitted-vs-explicit distinction: omitting the entire field uses the serializer's non-tradable zero-valued default, while an explicit empty object uses the `TradeData` codec's normal field defaults.

For output variations, `identifier` should be treated as required. Hive comb mappings are normalized at runtime, and some apiary defaults depend on configuration rather than JSON alone.

## Schema and template

The source files used for this page are included in the `reference/` directory:

* `resourcefulbees-honeycomb-template.json`
* `resourcefulbees-honeycomb.schema.json`

> The schema is the machine-readable reference. Runtime notes document codec or game behavior that JSON Schema cannot fully express.


# Registration Data

The optional `honeycomb` object controls the custom honeycomb item/block registration.

## Fields

| Field       | Type                 | Required | Default               | Range / notes                                                                          |
| ----------- | -------------------- | -------- | --------------------- | -------------------------------------------------------------------------------------- |
| `name`      | string               | No       | filename-derived name | Loader lowercases the name and replaces spaces with `_`.                               |
| `color`     | ResourcefulLib color | No       | `#ffffff`             | Number, string/special color, or RGBA object                                           |
| `edible`    | boolean              | No       | `true`                | Global config may still affect edible behavior.                                        |
| `block`     | boolean              | No       | `true`                | `true` registers block + block item + comb item; `false` registers only the comb item. |
| `enchanted` | boolean              | No       | `false`               | Enables enchanted glint behavior.                                                      |
| `tradeData` | trade object         | No       | `TradeData.DEFAULT`   | Explicit `{}` uses normal trade field defaults.                                        |

## Example

```json
{
  "honeycomb": {
    "name": "ruby",
    "color": "#c62828",
    "edible": true,
    "block": true,
    "enchanted": false
  }
}
```

## `name`

The file name normally supplies the honeycomb name. `name` is an optional override parsed separately by the loader before the registration codec is applied.

## `tradeData`

Omitting `tradeData` is **not** equivalent to writing an empty object. Omission uses the serializer's non-tradable `TradeData.DEFAULT`; explicit `{}` activates the trade codec defaults (`amount` 1..1, secondary item air, secondary cost 1..4, multiplier 0.05, max trades 8, XP 3).


# Output Variations

Each entry in the top-level `variations` array controls which comb items are produced by hive and apiary tiers.

## Fields

| Field              | Type                  | Required | Default | Notes                                                        |
| ------------------ | --------------------- | -------- | ------- | ------------------------------------------------------------ |
| `identifier`       | string                | **Yes**  | none    | Variation identifier. Runtime code assumes a non-null value. |
| `hiveCombs`        | tier → item stack map | No       | `{}`    | Keys are registered beehive tier IDs.                        |
| `apiaryCombs`      | tier → item stack map | No       | `{}`    | Keys are registered apiary tier IDs.                         |
| `defaultComb`      | item stack template   | No       | omitted | Fallback comb output.                                        |
| `defaultCombBlock` | item stack template   | No       | omitted | Fallback comb-block output used by apiary-related behavior.  |

## Example

```json
{
  "identifier": "ruby",
  "hiveCombs": {
    "resourcefulbees:t1": "resourcefulbees:ruby_honeycomb",
    "resourcefulbees:t2": {
      "id": "resourcefulbees:ruby_honeycomb",
      "count": 2
    }
  },
  "apiaryCombs": {
    "resourcefulbees:t1": "resourcefulbees:ruby_honeycomb"
  },
  "defaultComb": "resourcefulbees:ruby_honeycomb",
  "defaultCombBlock": "resourcefulbees:ruby_honeycomb_block"
}
```

## Built-in tier identifiers

Resourceful Bees registers built-in beehive and apiary tiers `resourcefulbees:t1` through `resourcefulbees:t4`. The tier registries are extensible, so add-ons may provide additional valid keys.

## Item stack values

Map values and the two default fields use item stack templates. They may be compact item IDs or expanded objects with required `id`, optional `count` (`1..99`, default `1`), and optional `components`.

## Hive fallback behavior

When `hiveCombs` is empty, runtime normalization uses `defaultComb` to populate missing hive tiers. If both `hiveCombs` and `defaultComb` are absent/empty, runtime code rejects the variation.

When some hive tiers are present, missing tiers are normalized by runtime code. Do not rely on JSON object ordering to express tier inheritance; tier iteration comes from the tier registry/runtime data rather than an ordered JSON contract.

## Apiary fallback behavior

Apiary output normalization is partly configuration-dependent. If `apiaryCombs` is empty, Resourceful Bees derives/validates defaults based on configured apiary output types. Because of that configuration dependency, JSON Schema cannot universally require either `defaultComb` or `defaultCombBlock`.


# Honey

JSON reference for Resourceful Bees.

## Example

```json
{
  "resourcefulbees:block/v1": {
    "color": "#ffffff",
    "jumpFactor": 0.5,
    "speedFactor": 0.4,
    "tradeData": {
      "amount": { "min": 1, "max": 1 },
      "secondaryItem": "minecraft:air",
      "secondaryItemCost": { "min": 1, "max": 4 },
      "reputationDiscount": 0.05,
      "maxTrades": 8,
      "xp": 3
    }
  },
  "resourcefulbees:fluid/v1": {
    "rendering": {
      "color": "#ffffff",
      "still": "resourcefulbees:block/honey/custom_honey_still",
      "flowing": "resourcefulbees:block/honey/custom_honey_flow",
      "face": "resourcefulbees:block/honey/custom_honey_flow",
      "overlay": "resourcefulbees:textures/block/honey/custom_honey_underwater.png"
    },
    "attributes": {
      "lightLevel": 1,
      "density": 1000,
      "temperature": 300,
      "viscosity": 1000,
      "fallDistanceModifier": 0.5,
      "motionScale": 0.014,
      "canPushEntities": true,
      "canSwimIn": true,
      "canDrownIn": true,
      "canExtinguish": false,
      "canConvertToSource": false,
      "supportsBoating": false,
      "canHydrate": false,
      "rarity": "common",
      "fillSound": "minecraft:item.bucket.fill",
      "emptySound": "minecraft:item.bucket.empty"
    },
    "tradeData": {
      "amount": { "min": 1, "max": 1 },
      "secondaryItem": "minecraft:air",
      "secondaryItemCost": { "min": 1, "max": 4 },
      "reputationDiscount": 0.05,
      "maxTrades": 8,
      "xp": 3
    }
  },
  "resourcefulbees:bottle/v1": {
    "color": "#ffffff",
    "food": {
      "hunger": 1,
      "saturation": 1.0,
      "canAlwaysEat": false,
      "consumeSeconds": 2.0,
      "effects": [
        {
          "effect": "minecraft:speed",
          "duration": 300,
          "strength": 0,
          "chance": 1.0
        }
      ]
    },
    "rarity": "COMMON",
    "tradeData": {
      "amount": { "min": 1, "max": 1 },
      "secondaryItem": "minecraft:air",
      "secondaryItemCost": { "min": 1, "max": 4 },
      "reputationDiscount": 0.05,
      "maxTrades": 8,
      "xp": 3
    }
  }
}
```

## Fields

| Field                       | Type       | Required | Default | Description             |
| --------------------------- | ---------- | -------- | ------- | ----------------------- |
| `resourcefulbees:block/v1`  | blockData  | No       | ---     | Block serializer data.  |
| `resourcefulbees:fluid/v1`  | fluidData  | No       | ---     | Fluid serializer data.  |
| `resourcefulbees:bottle/v1` | bottleData | Yes      | ---     | Bottle serializer data. |

## Runtime notes

Honey data is a flat serializer map. `resourcefulbees:bottle/v1` is required; the block and fluid serializers are optional. The honey name and registered honey content are derived from the filename rather than root or serializer-level item/block identifier fields. In particular, the bottle item and the honey block/block item do not need to be named in JSON.

An explicit empty rendering object is not valid because `rendering.color` is required when the rendering object is present.

## Schema and template

The source files used for this page are included in the `reference/` directory:

* `resourcefulbees-honey-template.json`
* `resourcefulbees-honey.schema.json`

> The schema is the machine-readable reference. Runtime notes document codec or game behavior that JSON Schema cannot fully express.


# Block Serializer

Serializer ID: `resourcefulbees:block/v1`

This optional serializer controls the custom honey block's appearance, movement behavior, and optional beekeeper trade data. The registered honey block and its block item are derived from the honey filename rather than configured by serializer fields.

## Fields

| Field         | Type                 | Required | Default                              | Range / notes                                     |
| ------------- | -------------------- | -------- | ------------------------------------ | ------------------------------------------------- |
| `color`       | ResourcefulLib color | No       | `#ffffff`                            | Number, color string/special name, or RGBA object |
| `jumpFactor`  | number               | No       | `0.5`                                | No additional codec range supplied                |
| `speedFactor` | number               | No       | `0.4`                                | No additional codec range supplied                |
| `tradeData`   | trade object         | No       | serializer-level `TradeData.DEFAULT` | See omitted-vs-explicit behavior below            |

## Example

```json
{
  "resourcefulbees:block/v1": {
    "color": "#f6b83f",
    "jumpFactor": 0.5,
    "speedFactor": 0.4
  }
}
```

The honey identifier, registered honey block, and its block item are derived from the filename. There are no block or block-item identifier fields in `resourcefulbees:block/v1`.

## Serializer default vs explicit object

The entire block serializer is optional. If it is absent, Resourceful Bees uses its serializer-level block default internally.

`tradeData` has a second important distinction: omitting `tradeData` uses `TradeData.DEFAULT` (the non-tradable/zero-valued serializer default), while explicitly writing an empty object causes the trade codec's own field defaults to apply.

```json
"tradeData": {}
```

is therefore not semantically identical to omitting `tradeData`.


# Fluid Serializer

Serializer ID: `resourcefulbees:fluid/v1`

This optional serializer controls custom honey fluid rendering, physical/gameplay attributes, and trade data.

## Fields

| Field        | Type                    | Required | Default             | Notes                                    |
| ------------ | ----------------------- | -------- | ------------------- | ---------------------------------------- |
| `rendering`  | rendering object        | No       | serializer default  | If present, `color` is required.         |
| `attributes` | fluid-attributes object | No       | codec defaults      | All nested fields optional.              |
| `tradeData`  | trade object            | No       | `TradeData.DEFAULT` | Explicit `{}` uses trade-field defaults. |

## Rendering object

| Field     | Type                 | Required                             | Default                                                            |
| --------- | -------------------- | ------------------------------------ | ------------------------------------------------------------------ |
| `color`   | ResourcefulLib color | **Yes, when `rendering` is present** | none                                                               |
| `still`   | resource identifier  | No                                   | `resourcefulbees:block/honey/custom_honey_still`                   |
| `flowing` | resource identifier  | No                                   | `resourcefulbees:block/honey/custom_honey_flow`                    |
| `face`    | resource identifier  | No                                   | `resourcefulbees:block/honey/custom_honey_flow`                    |
| `overlay` | resource identifier  | No                                   | `resourcefulbees:textures/block/honey/custom_honey_underwater.png` |

An explicit empty rendering object is invalid:

```json
"rendering": {}
```

If `rendering` is written, supply at least `color`.

## Fluid attributes

| Field                  | Type                | Required | Default                       | Range / accepted values              |
| ---------------------- | ------------------- | -------- | ----------------------------- | ------------------------------------ |
| `lightLevel`           | integer             | No       | `1`                           | `0` through `15`                     |
| `density`              | integer             | No       | `1000`                        | No extra codec range supplied        |
| `temperature`          | integer             | No       | `300`                         | No extra codec range supplied        |
| `viscosity`            | integer             | No       | `1000`                        | No extra codec range supplied        |
| `fallDistanceModifier` | number              | No       | `0.5`                         | No extra codec range supplied        |
| `motionScale`          | number              | No       | `0.014`                       | No extra codec range supplied        |
| `canPushEntities`      | boolean             | No       | `true`                        |                                      |
| `canSwimIn`            | boolean             | No       | `true`                        |                                      |
| `canDrownIn`           | boolean             | No       | `true`                        |                                      |
| `canExtinguish`        | boolean             | No       | `false`                       |                                      |
| `canConvertToSource`   | boolean             | No       | `false`                       |                                      |
| `supportsBoating`      | boolean             | No       | `false`                       |                                      |
| `canHydrate`           | boolean             | No       | `false`                       |                                      |
| `rarity`               | string              | No       | `common`                      | `common`, `uncommon`, `rare`, `epic` |
| `fillSound`            | resource identifier | No       | `minecraft:item.bucket.fill`  |                                      |
| `emptySound`           | resource identifier | No       | `minecraft:item.bucket.empty` |                                      |

## Example

```json
{
  "resourcefulbees:fluid/v1": {
    "rendering": {
      "color": "#f6b83f"
    },
    "attributes": {
      "lightLevel": 1,
      "density": 1000,
      "temperature": 300,
      "viscosity": 1000
    }
  }
}
```


# Bottle Serializer

Serializer ID: `resourcefulbees:bottle/v1`

This is the required built-in honey serializer. It controls bottle color, food behavior, rarity, and optional trade data. The registered honey bottle item is derived from the honey filename rather than configured by a serializer field.

## Fields

| Field       | Type                 | Required | Default             | Range / notes                                                                     |
| ----------- | -------------------- | -------- | ------------------- | --------------------------------------------------------------------------------- |
| `color`     | ResourcefulLib color | No       | `#ffffff`           | Number, color string/special name, or RGBA object                                 |
| `food`      | food object          | No       | codec defaults      | See below                                                                         |
| `rarity`    | enum name or ordinal | No       | `COMMON`            | `COMMON`, `UNCOMMON`, `RARE`, `EPIC` case-insensitively; ordinals `0..3` accepted |
| `tradeData` | trade object         | No       | `TradeData.DEFAULT` | Explicit `{}` uses trade-field defaults                                           |

## Food object

| Field            | Type    | Required | Default | Range / notes                      |
| ---------------- | ------- | -------- | ------- | ---------------------------------- |
| `hunger`         | integer | No       | `1`     | No additional codec range supplied |
| `saturation`     | number  | No       | `1.0`   | No additional codec range supplied |
| `canAlwaysEat`   | boolean | No       | `false` |                                    |
| `consumeSeconds` | number  | No       | `2.0`   |                                    |
| `effects`        | array   | No       | `[]`    | Potion-effect entries              |

## Potion-effect entries

| Field      | Type                  | Required | Default | Range / notes                              |
| ---------- | --------------------- | -------- | ------- | ------------------------------------------ |
| `effect`   | mob-effect identifier | **Yes**  | none    | Registered effect ID                       |
| `duration` | integer               | No       | `300`   | No extra codec range supplied              |
| `strength` | integer               | No       | `0`     | No extra codec range supplied              |
| `chance`   | number                | No       | `1.0`   | No range was imposed by the supplied codec |

## Example

```json
{
  "resourcefulbees:bottle/v1": {
    "color": "#f6b83f",
    "food": {
      "hunger": 2,
      "saturation": 1.0,
      "canAlwaysEat": false,
      "consumeSeconds": 2.0,
      "effects": [
        {
          "effect": "minecraft:speed",
          "duration": 300,
          "strength": 0,
          "chance": 1.0
        }
      ]
    },
    "rarity": "COMMON"
  }
}
```

The honey identifier and registered bottle item are derived from the filename. There is no bottle-item field in `resourcefulbees:bottle/v1`.

Although the serializer is required, its object may be `{}` because all of its nested fields have defaults.


# Traits

Schema reconstructed from TraitSetup, Trait, PotionEffect, TraitDamageType, DamageEffect, Aura, AuraType, and CodecExtras.set.

## Example

```json
{
  "name": "fiery",
  "displayItem": "minecraft:blaze_powder",
  "potionDamageEffects": [
    {
      "effect": "minecraft:poison",
      "strength": 1
    }
  ],
  "damageImmunities": [
    "inFire",
    "onFire",
    "lava"
  ],
  "potionImmunities": [
    "minecraft:poison"
  ],
  "damageTypes": [
    {
      "damageType": "setOnFire",
      "amplifier": 2
    }
  ],
  "specialAbilities": [
    "flammable"
  ],
  "particleType": [
    "minecraft:flame"
  ],
  "auras": [
    {
      "aura": "BURNING",
      "modifier": 0,
      "calmingDisabled": false
    },
    {
      "aura": "DAMAGING",
      "damageEffect": {
        "source": "minecraft:generic",
        "hasEntity": false,
        "strength": 3
      }
    }
  ]
}
```

## Fields

| Field                 | Type       | Required | Default                   | Description                                                                                                                                    |
| --------------------- | ---------- | -------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `name`                | string     | No       | ---                       | Optional trait name override. If omitted, the filename-derived name is used. Runtime lowercases the name and replaces spaces with underscores. |
| `displayItem`         | identifier | No       | `"minecraft:nether_star"` | ---                                                                                                                                            |
| `potionDamageEffects` | array      | No       | `[]`                      | ---                                                                                                                                            |
| `damageImmunities`    | array      | No       | `[]`                      | ---                                                                                                                                            |
| `potionImmunities`    | array      | No       | `[]`                      | ---                                                                                                                                            |
| `damageTypes`         | array      | No       | `[]`                      | ---                                                                                                                                            |
| `specialAbilities`    | array      | No       | `[]`                      | ---                                                                                                                                            |
| `particleType`        | array      | No       | `[]`                      | ---                                                                                                                                            |
| `auras`               | array      | No       | `[]`                      | ---                                                                                                                                            |

## Runtime notes

Trait set-like arrays are decoded through a list and converted to a `HashSet`. Duplicate entries are accepted by the codec and collapse at runtime; ordering is not semantically preserved.

## Schema and template

The source files used for this page are included in the `reference/` directory:

* `resourcefulbees-trait-template.json`
* `resourcefulbees-trait.schema.json`

> The schema is the machine-readable reference. Runtime notes document codec or game behavior that JSON Schema cannot fully express.


# Potion and Damage Entries

## Potion damage effects

Entries in `potionDamageEffects` use:

| Field      | Type                  | Required | Default          | Range                |
| ---------- | --------------------- | -------- | ---------------- | -------------------- |
| `effect`   | mob-effect identifier | No       | `minecraft:luck` | Registered effect ID |
| `strength` | integer               | No       | `1`              | `0` through `4`      |

Example:

```json
{
  "effect": "minecraft:poison",
  "strength": 1
}
```

## Damage types

Entries in `damageTypes` use:

| Field        | Type    | Required | Default | Range / notes                                      |
| ------------ | ------- | -------- | ------- | -------------------------------------------------- |
| `damageType` | string  | No       | `""`    | Codec does not restrict this to a documented enum. |
| `amplifier`  | integer | No       | `0`     | `>= 0`                                             |

Example:

```json
{
  "damageType": "setOnFire",
  "amplifier": 2
}
```

The codec accepts arbitrary strings for `damageType`; any semantic restrictions come from runtime handling rather than the JSON codec itself.


# Auras

Aura entries combine an aura type with optional damage/potion subobjects and modifiers.

## Aura fields

| Field             | Type                 | Required | Default               | Range / notes                               |
| ----------------- | -------------------- | -------- | --------------------- | ------------------------------------------- |
| `aura`            | enum name or ordinal | **Yes**  | none                  | See aura types below.                       |
| `damageEffect`    | damage-effect object | No       | default damage effect | Optional regardless of aura type.           |
| `potionEffect`    | potion-effect object | No       | default potion effect | Optional regardless of aura type.           |
| `modifier`        | integer              | No       | `0`                   | Unrestricted integer in the supplied codec. |
| `calmingDisabled` | boolean              | No       | `false`               |                                             |

## Aura types

The enum codec accepts case-insensitive names and numeric ordinals:

| Name               | Ordinal |
| ------------------ | ------: |
| `BURNING`          |       0 |
| `POTION`           |       1 |
| `HEALING`          |       2 |
| `EXPERIENCE`       |       3 |
| `DAMAGING`         |       4 |
| `EXPERIENCE_DRAIN` |       5 |

## Damage-effect object

| Field       | Type                   | Required | Default             | Range / notes             |
| ----------- | ---------------------- | -------- | ------------------- | ------------------------- |
| `source`    | damage-type identifier | No       | `minecraft:generic` | Registered damage type ID |
| `hasEntity` | boolean                | No       | `false`             |                           |
| `strength`  | integer                | No       | `0`                 | `0` through `20`          |

## Potion-effect object

| Field      | Type                  | Required | Default          | Range                |
| ---------- | --------------------- | -------- | ---------------- | -------------------- |
| `effect`   | mob-effect identifier | No       | `minecraft:luck` | Registered effect ID |
| `strength` | integer               | No       | `1`              | `0` through `4`      |

## Example

```json
{
  "aura": "DAMAGING",
  "damageEffect": {
    "source": "minecraft:generic",
    "hasEntity": false,
    "strength": 3
  },
  "modifier": 0,
  "calmingDisabled": false
}
```

The codec does not conditionally require `damageEffect` for damaging auras or `potionEffect` for potion auras. Those objects remain optional at the JSON level.


# Centrifuge

Schema reconstructed from `CentrifugeRecipe`, its item/fluid output codecs, ResourcefulLib `WeightedCollection`, Minecraft `Ingredient` and `ItemStackTemplate`, and NeoForge `FluidStackTemplate`.

## Example

```json
{
  "type": "resourcefulbees:centrifuge",
  "ingredient": "resourcefulbees:iron_honeycomb",
  "inputAmount": 1,
  "itemOutputs": [
    {
      "chance": 0.8,
      "pool": [
        {
          "item": {
            "id": "minecraft:raw_iron",
            "count": 3
          },
          "weight": 25
        },
        {
          "item": "minecraft:raw_iron",
          "weight": 50
        }
      ]
    }
  ],
  "fluidOutputs": [
    {
      "chance": 1.0,
      "pool": [
        {
          "fluid": {
            "id": "resourcefulbees:honey_fluid_source",
            "amount": 100
          },
          "weight": 1
        }
      ]
    }
  ],
  "time": 200,
  "energyPerTick": 10
}
```

## Fields

| Field           | Type                        | Required | Default                              | Description                                                                                                                                                                                            |
| --------------- | --------------------------- | -------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `type`          | string                      | Yes      | `resourcefulbees:centrifuge`         | Recipe serializer identifier.                                                                                                                                                                          |
| `ingredient`    | Minecraft Ingredient        | Yes      | —                                    | Item ingredient tested against the centrifuge input stack. Simple Resourceful Bees recipes use a direct item ID; Minecraft/NeoForge ingredient objects remain codec-driven.                            |
| `inputAmount`   | positive integer            | No       | `1`                                  | Required stack count for the recipe match and the number of input items consumed when the recipe completes. Must be at least `1`.                                                                      |
| `itemOutputs`   | array of item output rolls  | No       | `[]`                                 | Independent item-output rolls. Up to the first `3` entries are evaluated when producing recipe results; later entries are ignored. At least one of `itemOutputs` or `fluidOutputs` must be non-empty.  |
| `fluidOutputs`  | array of fluid output rolls | No       | `[]`                                 | Independent fluid-output rolls. Up to the first `3` entries are evaluated when producing recipe results; later entries are ignored. At least one of `itemOutputs` or `fluidOutputs` must be non-empty. |
| `time`          | positive integer            | No       | configured default (`200` initially) | Recipe processing time. Must be at least `1`; the default comes from `CentrifugeConfig.defaultCentrifugeRecipeTime`.                                                                                   |
| `energyPerTick` | positive integer            | No       | configured default (`10` initially)  | Energy consumed per processing tick. Must be at least `1`; the default comes from `CentrifugeConfig.centrifugeRfPerTick`.                                                                              |
| `rotations`     | positive integer            | No       | derived from `time`                  | Optional explicit rotation count. Must be at least `1` when supplied. If omitted, runtime computes `((time / 20) / 8) * 2` using integer division.                                                     |

## Output rolls

Each entry in `itemOutputs` or `fluidOutputs` is an independent roll:

| Field    | Type   | Required | Default | Description                                                                                                                      |
| -------- | ------ | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `chance` | number | No       | `1.0`   | Probability that this output roll occurs. Range `0.0` through `1.0`, inclusive.                                                  |
| `pool`   | array  | No       | `[]`    | Weighted collection from which one result is selected when the roll succeeds. In practical recipes, provide at least one result. |

`itemOutputs` and `fluidOutputs` are individually optional and each defaults to an empty list, but a centrifuge recipe cannot have both lists empty. The recipe validation safeguard throws an exception when both output lists are empty, so every recipe must define at least one item-output roll or at least one fluid-output roll.

The centrifuge evaluates **at most three item-output rolls and three fluid-output rolls** when producing a recipe result. Only the first three entries of each top-level output list are considered; entries after index `2` do not participate in result generation. This matches the three item and three fluid output slots represented by the JEI centrifuge category.

Within those evaluated entries, multiple output rolls can succeed during the same recipe completion. `chance` controls whether a roll occurs; `weight` only controls which member of that roll's `pool` is selected. The three-entry limit applies to the top-level `itemOutputs` and `fluidOutputs` lists, not to the number of weighted choices inside an individual `pool`.

### Item pool entries

| Field    | Type              | Required | Default | Description                                                                  |
| -------- | ----------------- | -------- | ------- | ---------------------------------------------------------------------------- |
| `item`   | ItemStackTemplate | Yes      | —       | Item result, using the compact item ID or expanded item-stack-template form. |
| `weight` | number            | No       | `1.0`   | Relative selection weight. Range `1.0` through `1000.0`, inclusive.          |

### Fluid pool entries

| Field    | Type               | Required | Default | Description                                                                                                                          |
| -------- | ------------------ | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| `fluid`  | FluidStackTemplate | Yes      | —       | Fluid result. A compact non-empty fluid ID or expanded `{id, amount, components}` form is accepted by the underlying template codec. |
| `weight` | number             | No       | `1.0`   | Relative selection weight. Minimum `1.0`; the codec's upper bound is `Double.MAX_VALUE`.                                             |

## Runtime notes

The recipe matches only when `ingredient.test(input)` succeeds **and** the input stack's count is exactly equal to `inputAmount`. When the recipe completes, the centrifuge consumes `inputAmount` items from the input stack.

Although the two output fields are optional at the field level, a recipe with no item outputs and no fluid outputs is invalid. If both lists resolve to empty, recipe validation throws an exception instead of accepting a recipe that can never produce an output.

When generating outputs, the item-output and fluid-output streams are each limited to their first three entries. Defining more than three entries in either list does not create additional results; the extra entries are ignored by result generation.

Each successful output roll calls into its weighted pool to choose one result. Although an omitted `pool` codec-decodes to an empty weighted collection, an empty pool cannot provide a random result at runtime. Treat a non-empty pool as practically required for every output roll that can succeed.

The current manual centrifuge uses `rotations` when supplied. Otherwise, rotations are derived from `time` with integer division. With the stock `time` default of `200`, the derived value is `2` rotations.

`inputAmount`, `time`, `energyPerTick`, and an explicitly supplied `rotations` value use `ExtraCodecs.POSITIVE_INT`, so values below `1` are rejected by the recipe codec. `rotations` remains optional; when omitted, its value is derived from `time` at runtime.

## Ingredient codec scope

`ingredient` is delegated directly to Minecraft's `Ingredient.CODEC`. The schema intentionally models the common direct item/tag forms and leaves custom ingredient objects extensible rather than guessing every Minecraft/NeoForge ingredient subtype. If stricter completion for the exact Minecraft version is desired, the external `Ingredient.CODEC` definitions can be incorporated separately.

## Schema and template

The source files used for this page are included in the `reference/` directory:

* `resourcefulbees-centrifuge-recipe-template.json`
* `resourcefulbees-centrifuge-recipe.schema.json`

> The schema is the machine-readable reference. Runtime notes document codec or game behavior that JSON Schema cannot fully express.


# Breeder

Breeder recipes use the `resourcefulbees:breeder` serializer to match two parent inputs, their feed items, an additional ingredient slot, and a weighted collection of possible child outputs.

## Example

```json
{
  "type": "resourcefulbees:breeder",
  "parent1": {
    "parent": {
      "id": "resourcefulbees:iron_bee",
      "neoforge:ingredient_type": "resourcefulbees:bee_jar"
    },
    "displayEntity": "resourcefulbees:iron_bee",
    "feedAmount": 1,
    "feedItems": "minecraft:poppy"
  },
  "parent2": {
    "parent": {
      "id": "resourcefulbees:iron_bee",
      "neoforge:ingredient_type": "resourcefulbees:bee_jar"
    },
    "displayEntity": "resourcefulbees:iron_bee",
    "feedAmount": 1,
    "feedItems": "minecraft:poppy"
  },
  "outputs": [
    {
      "child": {
        "id": "resourcefulbees:bee_jar",
        "components": {
          "resourcefulbees:jar_bee": {
            "entity_type": "resourcefulbees:iron_bee",
            "insertion_game_time": 0,
            "display_name": {
              "translate": "entity_type.resourcefulbees.iron_bee"
            },
            "color": -13159
          }
        }
      },
      "entity": "resourcefulbees:iron_bee",
      "weight": 10.0,
      "chance": 1.0
    }
  ],
  "time": 2400
}
```

## Fields

| Field      | Type                          | Required | Default                   | Description                                                                                                                  |
| ---------- | ----------------------------- | -------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `type`     | string                        | Yes      | `resourcefulbees:breeder` | Recipe serializer identifier.                                                                                                |
| `parent1`  | ParentInput                   | Yes      | —                         | First parent and its feed requirements.                                                                                      |
| `parent2`  | ParentInput                   | Yes      | —                         | Second parent and its feed requirements.                                                                                     |
| `optional` | Minecraft Ingredient          | No       | `resourcefulbees:bee_jar` | Ingredient matched against the breeder's additional input slot. When omitted, an empty Resourceful Bees bee jar is required. |
| `outputs`  | weighted array of ChildOutput | Yes      | —                         | Possible child results. Selection is weighted by each entry's `weight`.                                                      |
| `time`     | integer                       | No       | `2400`                    | Base processing time. Range `100` through `72000`, inclusive.                                                                |

## Parent inputs

Each parent uses the `ParentInput` codec.

| Field           | Type                 | Required | Default | Description                                                                                                                                                                                              |
| --------------- | -------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `parent`        | Minecraft Ingredient | Yes      | —       | Ingredient matched against the parent input slot. Generated custom-bee recipes use the [Bee Jar Ingredient](/recipes/breeder/bee-jar-ingredient) to require a jar containing a specific bee entity type. |
| `displayEntity` | identifier           | No       | absent  | Entity ID used for display/client presentation. It does not participate in `ParentInput.matches`.                                                                                                        |
| `feedAmount`    | integer              | No       | `1`     | Number of feed items consumed after a successful breed. The current codec uses unrestricted `Codec.INT`.                                                                                                 |
| `feedItems`     | Minecraft Ingredient | Yes      | —       | Ingredient matched against this parent's feed slot.                                                                                                                                                      |
| `returnItem`    | ItemStackTemplate    | No       | absent  | Item returned after feed consumption. When present, the breeder returns `feedAmount` copies.                                                                                                             |

Parent matching tests `parent` against the parent stack and `feedItems` against the feed stack. `displayEntity`, `feedAmount`, and `returnItem` do not change the ingredient match itself.

## Child outputs

`outputs` is a `WeightedCollection<ChildOutput>`. One entry is selected according to its relative `weight`, then that selected entry's independent `chance` determines whether breeding succeeds.

| Field    | Type              | Required | Default | Description                                                                                                                    |
| -------- | ----------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `child`  | ItemStackTemplate | Yes      | —       | Item produced on a successful breed. Generated recipes use a bee jar carrying the child's `resourcefulbees:jar_bee` component. |
| `entity` | identifier        | No       | absent  | Child entity ID used for display/client presentation.                                                                          |
| `weight` | number            | No       | `10.0`  | Relative weighted-selection value. Range `0.0` through `Double.MAX_VALUE`.                                                     |
| `chance` | number            | No       | `1.0`   | Success chance after this output is selected. Range `0.0` through `1.0`, inclusive.                                            |

A higher `weight` makes an output more likely relative to the other entries. `chance` is applied only after the weighted output has been selected. If that chance roll fails, no child is delivered and the successful-breed consumption transaction is not performed.

## Optional ingredient

`optional` is genuinely optional in the JSON. If it is omitted, the codec supplies `Ingredient.of(resourcefulbees:bee_jar)`, so the additional input slot must contain an empty Resourceful Bees bee jar. Authors only need to specify `optional` when the recipe should require a different ingredient.

The resolved ingredient always participates in recipe matching. On a successful breed, one item is consumed from the additional input slot.

## Runtime notes

The current `BreederRecipe.matches` implementation requires both parents, both feed ingredients, and the resolved `optional` ingredient to match their respective input slots.

On a successful output chance roll, the breeder consumes one item from the additional input slot, consumes `feedAmount` from each parent's feed slot, creates the selected `child`, and returns each parent's `returnItem` in a quantity equal to that parent's `feedAmount`.

The `outputs` field is required by the codec, but the weighted-collection codec itself does not establish a non-empty-list constraint here. Runtime processing calls `outputs.next()`, so recipes should provide at least one output.

The breeder's processing time can be modified by breeder upgrades at runtime; the recipe's `time` is the base value before that modifier.

## Ingredient codec scope

`parent`, `feedItems`, and `optional` delegate to Minecraft/NeoForge `Ingredient.CODEC`. The schema models common item/tag/list forms and the Resourceful Bees Bee Jar Ingredient explicitly, while leaving other custom NeoForge ingredient objects extensible rather than guessing their external codecs.

## Schema and template

* `resourcefulbees-breeder-recipe-template.json`
* `resourcefulbees-breeder-recipe.schema.json`

> The schema is the machine-readable reference. Runtime notes document behavior that JSON Schema or the field codecs alone cannot fully express.


# Bee Jar Ingredient

Resourceful Bees registers the custom NeoForge ingredient type `resourcefulbees:bee_jar`. The ingredient matches a bee jar by the entity type stored in its `resourcefulbees:jar_bee` data component rather than by the jar item ID alone.

## Format

```json
{
  "id": "resourcefulbees:iron_bee",
  "neoforge:ingredient_type": "resourcefulbees:bee_jar"
}
```

| Field                      | Type       | Required | Description                                                                |
| -------------------------- | ---------- | -------- | -------------------------------------------------------------------------- |
| `neoforge:ingredient_type` | string     | Yes      | NeoForge custom ingredient dispatch ID. Must be `resourcefulbees:bee_jar`. |
| `id`                       | identifier | Yes      | Entity type that must be stored in the jar.                                |

The Resourceful Bees `BeeJarIngredient` map codec itself contains the `id` field. NeoForge's ingredient dispatch supplies the `neoforge:ingredient_type` discriminator that selects that codec.

## Matching behavior

The ingredient reads the `resourcefulbees:jar_bee` component from the tested stack. It fails when the stack is null, when the component is absent, or when the stored occupant has no entity data. Otherwise, it resolves the occupant's entity type ID and compares it exactly with `id`.

This means the ingredient is **entity-specific**. For example, an ingredient with `"id": "resourcefulbees:iron_bee"` accepts a jar whose occupant is the Iron Bee but rejects a jar containing a different bee.

`BeeJarIngredient` is a non-simple custom ingredient and reports no fixed item stream. Consumers should rely on ingredient testing rather than treating it as a static list of acceptable item IDs.

## Usage in breeder recipes

Generated breeder recipes use Bee Jar Ingredients for `parent1.parent` and `parent2.parent`:

```json
{
  "parent1": {
    "parent": {
      "id": "resourcefulbees:iron_bee",
      "neoforge:ingredient_type": "resourcefulbees:bee_jar"
    },
    "feedItems": "minecraft:poppy"
  }
}
```

This allows the breeder recipe to distinguish two stacks of the same physical bee-jar item based on which bee is actually inside each jar. See [Breeder Recipe](/recipes/breeder) for the complete recipe format.

## Bee Jar Ingredient vs. bee jar item ingredient

A Bee Jar Ingredient is different from a normal ingredient that simply references `resourcefulbees:bee_jar`. The custom ingredient checks the stored occupant entity ID. A normal bee-jar item ingredient only identifies the jar item and does not use the `BeeJarIngredient` entity-specific test.


# Mutation

Draft 2020-12 schema reconstructed from MutationRecipe, MutationEntry, MutationCodec, built-in mutation serializers, and predicate codecs.

## Example

```json
{
  "type": "resourcefulbees:mutation",
  "pollenBaseColor": 12681264,
  "pollenTopColor": 13408304,
  "mutations": [
    {
      "input": {
        "type": "item",
        "item": {
          "id": "minecraft:diamond"
        },
        "chance": 1.0,
        "weight": 10.0
      },
      "outputs": [
        {
          "type": "block",
          "block": {
            "id": "minecraft:diamond_block"
          },
          "chance": 1.0,
          "weight": 10.0
        },
        {
          "type": "fluid",
          "fluid": "minecraft:water",
          "chance": 1.0,
          "weight": 10.0
        },
        {
          "type": "entity",
          "entity": {
            "type": "minecraft:cow"
          },
          "chance": 1.0,
          "weight": 10.0
        }
      ]
    }
  ]
}
```

## Fields

| Field             | Type   | Required | Default                    | Description                                                                                                   |
| ----------------- | ------ | -------- | -------------------------- | ------------------------------------------------------------------------------------------------------------- |
| `type`            | string | Yes      | `resourcefulbees:mutation` | Recipe serializer identifier.                                                                                 |
| `pollenBaseColor` | color  | No       | `12681264`                 | ResourcefulLib Color. Accepts numeric values, strings/special color names, or RGBA objects.                   |
| `pollenTopColor`  | color  | No       | `13408304`                 | ResourcefulLib Color. Accepts numeric values, strings/special color names, or RGBA objects.                   |
| `mutations`       | array  | Yes      | —                          | List of mutation entries. Each entry contains one required `input` mutation and a required list of `outputs`. |

## Runtime notes

`mutations` is required, but the codec permits an empty list. Mutation entries contain one required `input` mutation and a required plain list of `outputs`.

## Schema and template

The source files used for this page are included in the `reference/` directory:

* `resourcefulbees-mutation-recipe-template.json`
* `resourcefulbees-mutation-recipe.schema.json`

> The schema is the machine-readable reference. Runtime notes document codec or game behavior that JSON Schema cannot fully express.


# Mutation Entries and Types

Each entry in a `resourcefulbees:mutation` recipe maps one input mutation predicate to one or more possible output mutations.

## Fields

| Field     | Type                      | Required | Default | Notes                                                                    |
| --------- | ------------------------- | -------- | ------- | ------------------------------------------------------------------------ |
| `input`   | Mutation object           | Yes      | —       | Uses the built-in mutation dispatch described below.                     |
| `outputs` | array of Mutation objects | Yes      | —       | Plain list of output mutation objects; there is no outer weight wrapper. |

An empty `outputs` array is structurally possible if accepted by the list codec, but is not useful for gameplay.

## Mutation dispatch

Mutation objects are dispatched by their required `type` field. Built-in values are:

* `item`
* `block`
* `fluid`
* `entity`

All built-in mutation objects also support the common fields below.

| Field    | Type   | Required | Default | Range               |
| -------- | ------ | -------- | ------- | ------------------- |
| `chance` | number | No       | `1.0`   | `0.0` through `1.0` |
| `weight` | number | No       | `10.0`  | `>= 0`              |

`chance` determines whether the mutation succeeds when selected. `weight` participates in weighted selection where multiple candidates are available.

## Item mutation

```json
{
  "type": "item",
  "item": {
    "id": "minecraft:diamond"
  },
  "chance": 1.0,
  "weight": 10.0
}
```

| Field    | Type                      | Required | Default |
| -------- | ------------------------- | -------- | ------- |
| `type`   | string                    | Yes      | `item`  |
| `item`   | Restricted item predicate | Yes      | —       |
| `chance` | number                    | No       | `1.0`   |
| `weight` | number                    | No       | `10.0`  |

The item predicate requires `id` and may additionally contain `components`, `durability`, and `count` constraints.

## Block mutation

```json
{
  "type": "block",
  "block": {
    "id": "minecraft:diamond_block"
  }
}
```

| Field    | Type                       | Required | Default |
| -------- | -------------------------- | -------- | ------- |
| `type`   | string                     | Yes      | `block` |
| `block`  | Restricted block predicate | Yes      | —       |
| `chance` | number                     | No       | `1.0`   |
| `weight` | number                     | No       | `10.0`  |

The block predicate requires `id` and may additionally constrain `components`, `location`, or block `properties`.

## Fluid mutation

```json
{
  "type": "fluid",
  "fluid": "minecraft:water"
}
```

| Field    | Type             | Required | Default |
| -------- | ---------------- | -------- | ------- |
| `type`   | string           | Yes      | `fluid` |
| `fluid`  | fluid identifier | Yes      | —       |
| `chance` | number           | No       | `1.0`   |
| `weight` | number           | No       | `10.0`  |

## Entity mutation

```json
{
  "type": "entity",
  "entity": {
    "type": "minecraft:cow"
  }
}
```

| Field    | Type                        | Required | Default  |
| -------- | --------------------------- | -------- | -------- |
| `type`   | string                      | Yes      | `entity` |
| `entity` | Restricted entity predicate | Yes      | —        |
| `chance` | number                      | No       | `1.0`    |
| `weight` | number                      | No       | `10.0`   |

The entity predicate requires an entity `type` and may additionally include location, effects, NBT, flags, and target constraints.


# Solidification

Draft 2020-12 schema reconstructed from SolidificationRecipe, NeoForge SizedFluidIngredient, and NeoForge FluidIngredient dispatch codecs.

## Example

```json
{
  "type": "resourcefulbees:solidification",
  "fluid": {
    "ingredient": "minecraft:lava",
    "amount": 1000
  },
  "result": {
    "id": "minecraft:obsidian",
    "count": 1,
    "components": {}
  },
  "time": 200
}
```

## Fields

| Field    | Type                 | Required | Default                          | Description                                                         |
| -------- | -------------------- | -------- | -------------------------------- | ------------------------------------------------------------------- |
| `type`   | string               | Yes      | `resourcefulbees:solidification` | Recipe serializer identifier.                                       |
| `fluid`  | sizedFluidIngredient | Yes      | —                                | Sized fluid ingredient containing a fluid ingredient and amount.    |
| `result` | itemStackTemplate    | Yes      | —                                | Minecraft ItemStackTemplate compact string or expanded object form. |
| `time`   | integer              | No       | `200`                            | Processing time. Must be non-negative.                              |

## Runtime notes

The documented `time` field is non-negative and defaults to `200`. Fluid ingredients support direct fluid IDs, fluid tags, and extensible NeoForge custom ingredient objects.

## Schema and template

The source files used for this page are included in the `reference/` directory:

* `resourcefulbees-solidification-recipe-template.json`
* `resourcefulbees-solidification-recipe.schema.json`

> The schema is the machine-readable reference. Runtime notes document codec or game behavior that JSON Schema cannot fully express.


# Hive

Schema reconstructed from HiveRecipe, HolderSetCodec, tier codecs, and ItemStackTemplate.

## Example

```json
{
  "type": "resourcefulbees:hive",
  "bees": [
    "minecraft:bee",
    "resourcefulbees:ruby_bee"
  ],
  "hiveCombs": {
    "resourcefulbees:t1": "resourcefulbees:ruby_honeycomb",
    "resourcefulbees:t2": {
      "id": "resourcefulbees:ruby_honeycomb",
      "count": 2
    }
  },
  "apiaryCombs": {
    "resourcefulbees:t1": {
      "id": "resourcefulbees:ruby_honeycomb",
      "count": 2
    }
  }
}
```

## Fields

| Field         | Type            | Required | Default                | Description                                  |
| ------------- | --------------- | -------- | ---------------------- | -------------------------------------------- |
| `type`        | string          | Yes      | `resourcefulbees:hive` | Recipe serializer identifier.                |
| `bees`        | entityHolderSet | Yes      | —                      | Bee/entity holder set matched by the recipe. |
| `hiveCombs`   | tierCombMap     | No       | `{}`                   | Per-tier hive comb outputs.                  |
| `apiaryCombs` | tierCombMap     | No       | `{}`                   | Per-tier apiary comb outputs.                |

## Runtime notes

`bees` is a holder set. Tier maps are keyed by registered tier identifiers and are extensible beyond the built-in Resourceful Bees tiers.

## Schema and template

The source files used for this page are included in the `reference/` directory:

* `resourcefulbees-hive-recipe-template.json`
* `resourcefulbees-hive-recipe.schema.json`

> The schema is the machine-readable reference. Runtime notes document codec or game behavior that JSON Schema cannot fully express.


# Hive and Apiary Output Maps

Hive recipes and honeycomb output variations use maps keyed by registered hive or apiary tier identifiers.

## Tier keys

Built-in Resourceful Bees tiers use identifiers such as:

```
resourcefulbees:t1
resourcefulbees:t2
resourcefulbees:t3
resourcefulbees:t4
```

The tier registries are extensible, so add-ons may register additional identifiers. The JSON schemas therefore validate tier keys as resource identifiers rather than limiting them to the four built-ins.

## Map values

Each value is an Item Stack Template. Compact and expanded forms are accepted.

```json
{
  "resourcefulbees:t1": "resourcefulbees:ruby_honeycomb",
  "resourcefulbees:t2": {
    "id": "resourcefulbees:ruby_honeycomb",
    "count": 2
  }
}
```

## Hive recipe behavior

In `resourcefulbees:hive` recipes, both `hiveCombs` and `apiaryCombs` are optional and default to `{}`.

## Honeycomb variation behavior

Honeycomb output variations also use tier maps, but they additionally support `defaultComb` and `defaultCombBlock`. Runtime normalization can fill missing hive tiers from prior/default values. Apiary fallback behavior may depend on configuration, so the static schema intentionally does not claim a stronger requirement than the codec provides.


# Flow Hive

Draft 2020-12 schema reconstructed from FlowHiveRecipe, ResourcefulLib HolderSetCodec, and NeoForge FluidStackTemplate.

## Example

```json
{
  "type": "resourcefulbees:flow_hive",
  "bees": [
    "minecraft:bee",
    "resourcefulbees:ruby_bee"
  ],
  "fluid": {
    "id": "resourcefulbees:ruby_honey_fluid_source",
    "amount": 1000,
    "components": {}
  }
}
```

## Fields

| Field   | Type               | Required | Default                     | Description                                                                                                                              |
| ------- | ------------------ | -------- | --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `type`  | string             | Yes      | `resourcefulbees:flow_hive` | Recipe serializer identifier.                                                                                                            |
| `bees`  | entityHolderSet    | Yes      | —                           | Entity holder set accepted by HolderSetCodec: a `#tag`, a single entity ID, or a list of entity IDs.                                     |
| `fluid` | fluidStackTemplate | Yes      | —                           | NeoForge FluidStackTemplate. A bare fluid ID is shorthand for that fluid with `FluidType.BUCKET_VOLUME` (`1000`) and no component patch. |

## Runtime notes

The fluid result supports a shorthand non-empty fluid ID string or an object with required `id` and positive `amount`. `minecraft:empty` is not a valid result fluid.

## Schema and template

The source files used for this page are included in the `reference/` directory:

* `resourcefulbees-flow-hive-recipe-template.json`
* `resourcefulbees-flow-hive-recipe.schema.json`

> The schema is the machine-readable reference. Runtime notes document codec or game behavior that JSON Schema cannot fully express.


# Honey Generator

Schema reconstructed from HoneyGenRecipe and NeoForge FluidIngredient codecs.

## Example

```json
{
  "type": "resourcefulbees:honey_gen",
  "honey": "resourcefulbees:ruby_honey_fluid_source",
  "energyFillRate": 125,
  "honeyDrainRate": 5
}
```

## Fields

| Field            | Type            | Required | Default                     | Description                                                |
| ---------------- | --------------- | -------- | --------------------------- | ---------------------------------------------------------- |
| `type`           | string          | Yes      | `resourcefulbees:honey_gen` | Recipe serializer identifier.                              |
| `honey`          | fluidIngredient | Yes      | —                           | Fluid ingredient accepted as honey input.                  |
| `energyFillRate` | integer         | No       | `125`                       | Energy generated per fill operation. Must be non-negative. |
| `honeyDrainRate` | integer         | No       | `5`                         | Honey consumed per drain operation. Must be non-negative.  |

## Runtime notes

Both rate fields use non-negative integer codecs. `energyFillRate` defaults to `125` and `honeyDrainRate` defaults to `5`.

## Schema and template

The source files used for this page are included in the `reference/` directory:

* `resourcefulbees-honey-gen-recipe-template.json`
* `resourcefulbees-honey-gen-recipe.schema.json`

> The schema is the machine-readable reference. Runtime notes document codec or game behavior that JSON Schema cannot fully express.


# Fluid Ingredients and Fluid Stack Templates

Several Resourceful Bees recipes use NeoForge fluid ingredient codecs or fluid stack templates. They are similar concepts but have different JSON shapes.

## Fluid Ingredient

A fluid ingredient selects acceptable input fluids. It accepts either a direct fluid ID, a fluid tag, or a custom NeoForge ingredient object.

### Direct fluid

```json
"minecraft:water"
```

### Fluid tag

```json
"#c:water"
```

### Custom NeoForge fluid ingredient

```json
{
  "neoforge:ingredient_type": "namespace:custom_type"
}
```

Custom objects require `neoforge:ingredient_type`; remaining fields depend on the registered ingredient type.

## Sized Fluid Ingredient

Used by solidification recipes.

| Field        | Type             | Required | Default | Range  |
| ------------ | ---------------- | -------- | ------- | ------ |
| `ingredient` | Fluid Ingredient | Yes      | —       | —      |
| `amount`     | integer          | No       | `1000`  | `>= 1` |

Example:

```json
{
  "ingredient": "minecraft:lava",
  "amount": 1000
}
```

## Fluid Stack Template

Used by flow hive recipes to describe produced fluid rather than matched input fluid.

Two forms are accepted.

### Compact form

```json
"resourcefulbees:ruby_honey_fluid_source"
```

This represents the named fluid with a bucket-volume amount (`1000`) and no component patch.

### Expanded form

| Field        | Type                       | Required | Default | Range  |
| ------------ | -------------------------- | -------- | ------- | ------ |
| `id`         | non-empty fluid identifier | Yes      | —       | —      |
| `amount`     | integer                    | Yes      | —       | `>= 1` |
| `components` | DataComponentPatch object  | No       | `{}`    | —      |

```json
{
  "id": "resourcefulbees:ruby_honey_fluid_source",
  "amount": 1000,
  "components": {}
}
```

`minecraft:empty` (and the shorthand `empty`) are rejected for fluid stack templates.


# Overview

Resourceful Bees provides server commands for generating supplemental data, printing JSON format templates, and managing development/debug features.

The command root is:

```
/resourcefulbees
```

Most subcommands require Minecraft's gamemaster command permission.

## Why generation commands exist

Some Resourceful Bees data depends on fully registered runtime objects. In particular, generated breeder recipes and beekeeper trades contain item stacks with data components. Those components are not bound early enough during datapack discovery to safely generate the files and inject them into the in-memory datapack.

The `generate` commands therefore run after the game has loaded its registries and write ordinary JSON resources to the Resourceful Bees generated-resource directory. They supplement the normal JSON/datapack workflow rather than replacing it.

Generated data is written beneath:

```
config/resourcefulbees/resources/data/resourcefulbees/
```

The language generator is different: it writes `en_us.json` through the mod's resources path rather than through the generated data path.

## Command groups

| Command                                               | Purpose                                                                                                              |
| ----------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| [`/resourcefulbees generate ...`](/commands/generate) | Generate recipes, beekeeper trades, and English language data from the currently loaded Resourceful Bees registries. |
| [`/resourcefulbees template ...`](/commands/template) | Encode and print example JSON for bee, honeycomb, honey, and trait formats.                                          |
| [`/resourcefulbees beepedia ...`](/commands/beepedia) | Beepedia progression/debug command tree. The current add/remove implementations are stubbed out.                     |

For generated recipes and trades, review the generated files before packaging or distributing them with a datapack/resource setup. Re-running a generator writes its known output paths again, so generated files at the same paths are replaced.


# Generate Commands

The `generate` command group creates supplemental JSON from the currently loaded Resourceful Bees registries.

All executable `generate` subcommands require gamemaster command permission.

## Recipe generators

### Honeycomb crafting recipes

```
/resourcefulbees generate recipe honeycomb
```

Writes crafting recipes beneath:

```
config/resourcefulbees/resources/data/resourcefulbees/recipe/crafting/
```

For every custom honeycomb that has a usable storage-block item, the command generates both directions:

* four honeycombs in a 2x2 shaped recipe -> one honeycomb block
* one honeycomb block -> four honeycombs

Honeycombs without a storage-block item, or whose resolved storage item is `minecraft:air`, are skipped.

### Honey crafting recipes

```
/resourcefulbees generate recipe honey
```

Writes crafting recipes to the same `recipe/crafting/` directory. For each registered honey, recipes are generated when the required bottle, bucket, and/or block items exist.

Possible conversions are:

| Conversion                                        | Generated filename              |
| ------------------------------------------------- | ------------------------------- |
| 4 honey bottles -> honey block                    | `<honey>_honey_block.json`      |
| honey block + 4 glass bottles -> 4 honey bottles  | `<honey>_honey_bottle.json`     |
| bucket + 4 honey bottles -> honey bucket          | `<honey>_bottle_to_bucket.json` |
| honey bucket + 4 glass bottles -> 4 honey bottles | `<honey>_bucket_to_bottle.json` |
| honey block + bucket -> honey bucket              | `<honey>_block_to_bucket.json`  |
| honey bucket -> honey block                       | `<honey>_bucket_to_block.json`  |

A conversion is skipped when one of the required generated items resolves to `minecraft:air`.

### Breeder recipes

```
/resourcefulbees generate recipe breeder
```

Writes recipes beneath:

```
config/resourcefulbees/resources/data/resourcefulbees/recipe/breeder/
```

The generator walks the loaded bee family tree and builds breeder recipes from the registered family data. Recipes are encoded through `BreederRecipe.MAP_CODEC` with registry-aware JSON operations, which allows the generated child bee jars and other item-stack data components to be serialized after registries are available.

Generated filenames use:

```
<parent1>_<parent2>_<child>.json
```

The serializer ID `resourcefulbees:breeder` is added to each generated recipe. See [Breeder Recipe](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/recipes/breeder.md) for the resulting format and [Bee Jar Ingredient](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/recipes/bee-jar-ingredient.md) for entity-specific parent matching.

This command is especially important for generated breeder recipes because their bee-jar item stacks contain bound data components that are not available early enough to safely synthesize during datapack discovery.

### Solidification chamber recipes

```
/resourcefulbees generate recipe chamber
```

Writes recipes beneath:

```
config/resourcefulbees/resources/data/resourcefulbees/recipe/solidification/
```

For each registered honey with a usable honey-block item, the generator creates a `resourcefulbees:solidification` recipe using:

* 1000 units of that honey's still fluid
* the honey block item as the result
* a processing time of `200`

The filename is `<honey>_honey_block.json`. Honeys whose block item resolves to `minecraft:air` are skipped. See [Solidification](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/recipes/solidification.md) for the recipe format.

## Beekeeper trade generator

```
/resourcefulbees generate trade beekeeper
```

Generates dynamic level-3 and level-5 Beekeeper villager trades plus the corresponding trade tags.

Level-3 generated trade files are written beneath:

```
config/resourcefulbees/resources/data/resourcefulbees/villager_trade/beekeeper/3/
```

The command considers tradable custom honey bottles, honey buckets, honey blocks, and honeycomb items. Their configured `tradeData` controls result count, optional secondary cost, max trades, XP, and reputation discount. The primary cost is Gold Flowers with a uniform amount from 8 through 16.

The level-3 tag is written to:

```
config/resourcefulbees/resources/data/resourcefulbees/tags/villager_trade/beekeeper/level_3.json
```

It also includes the four static Resourceful Bees trades for vanilla honeycomb, honey bottle, honey bucket, and honey block.

Level-5 generated trade files are written beneath:

```
config/resourcefulbees/resources/data/resourcefulbees/villager_trade/beekeeper/5/
```

Each tradable custom bee produces a bee-jar result containing that bee. The primary Gold Flower cost uses a uniform amount from 32 through 64, while the bee's `tradeData` supplies the other trade settings. This runtime generation is needed because the result jar carries bee-specific item-stack data components.

The level-5 tag is written to:

```
config/resourcefulbees/resources/data/resourcefulbees/tags/villager_trade/beekeeper/level_5.json
```

and includes the static `resourcefulbees:beekeeper/5/queen_bee_banner` trade in addition to generated bee trades.

Only entries whose trade data is marked tradable are generated. Honey products resolving to `minecraft:air` are also skipped.

## Language generator

```
/resourcefulbees generate lang
```

Generates an English `en_us.json` from the currently registered bees, honeys, honeycombs, traits, and generated Resourceful Bees registry objects. Identifier paths are converted from underscore-separated names to title-cased display strings.

Unlike the recipe and trade generators, this command uses the mod's resource path and writes under:

```
assets/resourcefulbees/lang/en_us.json
```

It is primarily a development/content-authoring convenience rather than a datapack data generator.


# Template Commands

Template commands encode Resourceful Bees' built-in dummy/template data through the same codecs used by the corresponding JSON formats and print the resulting pretty-formatted JSON to the game/server log.

All template commands require gamemaster command permission.

## Bee template

```
/resourcefulbees template bee
```

Encodes `DummyBeeData.DATA` through the bee dispatch codec and logs the resulting bee JSON template. A success message is sent to the command source after encoding succeeds.

Use this as a codec-generated starting point for a custom bee definition. The maintained field-by-field reference is under [Bee Formats](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/formats/bees/index.md).

## Honeycomb template

```
/resourcefulbees template honeycomb
```

Encodes the dummy `OutputVariation` through `OutputVariation.CODEC` and prints the resulting JSON. If encoding fails, the codec error is logged and the command returns failure instead of printing a template.

See [Honeycombs](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/formats/honeycombs/index.md) for the maintained format reference.

## Honey template

```
/resourcefulbees template honey
```

Encodes `DummyHoneyData.DATA` through the honey dispatch codec and prints the resulting JSON. Encoding errors are logged and cause the command to return failure.

See [Custom Honey](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/formats/honey/index.md) for the maintained format reference.

## Trait template

```
/resourcefulbees template trait
```

Encodes `DummyTraitData.DUMMY_TRAIT_DATA` through the trait codec and prints the resulting JSON. Encoding errors are logged and cause the command to return failure.

See [Traits](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/formats/traits/index.md) for the maintained format reference.

## Where the template appears

These commands log the complete pretty-printed JSON through the Resourceful Bees logger. The in-game command response only confirms that the template was printed; copy the JSON from the game/server log.

The command output is useful for obtaining a codec-produced example, while the documentation schemas and templates remain the better reference for field requirements, defaults, accepted representations, and runtime caveats.


# Beepedia Commands

The Beepedia command tree is registered for gamemaster-level command users and accepts a target player plus either a specific Resourceful Bees bee or `*`.

## Syntax

```
/resourcefulbees beepedia <player> add <bee>
/resourcefulbees beepedia <player> add *
/resourcefulbees beepedia <player> remove <bee>
/resourcefulbees beepedia <player> remove *
```

`<player>` uses Minecraft's single-player entity argument. `<bee>` uses Resourceful Bees' custom bee argument and resolves against the registered Resourceful Bees bees.

## Current implementation status

The command tree and arguments are registered, but the actual Beepedia saved-data mutations are currently commented out in `BeepediaCommand`.

As a result, the current `add` and `remove` executions return success without changing Beepedia progression. This applies to both specific-bee and `*` forms.

The intended operations visible in the implementation are to add/unlock bees, remove individual bees, and clear or operate on all bees, but those saved-data calls are not active in the current 26.2 source. Treat these commands as unfinished/debug scaffolding until the mutation calls are restored.


# Bee Nest Biome Modifier

Schema reconstructed from BeeNestBiomeModifier, Biome.LIST\_CODEC, PlacedFeature.LIST\_CODEC, RegistryCodecs, and HolderSetCodec.

## Example

```json
{
  "type": "resourcefulbees:nests",
  "biomes": "#minecraft:is_overworld",
  "features": [
    "resourcefulbees:oak_bee_nest",
    "resourcefulbees:birch_bee_nest"
  ]
}
```

## Fields

| Field      | Type                   | Required | Default                 | Description                                                                                                                                                  |
| ---------- | ---------------------- | -------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `type`     | string                 | Yes      | `resourcefulbees:nests` | Biome modifier serializer identifier.                                                                                                                        |
| `biomes`   | biomeHolderSet         | Yes      | —                       | Required biome holder set. May be a single biome ID, biome tag, list of biome IDs, or NeoForge custom holder-set object.                                     |
| `features` | placedFeatureHolderSet | Yes      | —                       | Required placed-feature holder set. May be a single placed-feature ID, placed-feature tag, list of placed-feature IDs, or NeoForge custom holder-set object. |

## Runtime notes

The modifier runs during the biome modifier `ADD` phase. Features are only added when the current biome matches `biomes` **and** the biome already has at least one Resourceful Bees bee spawn. Matching features are added at the `VEGETAL_DECORATION` generation step.

## Schema and template

The source files used for this page are included in the `reference/` directory:

* `resourcefulbees-nest-biome-modifier-template.json`
* `resourcefulbees-nest-biome-modifier.schema.json`

> The schema is the machine-readable reference. Runtime notes document codec or game behavior that JSON Schema cannot fully express.


# Bee Spawn Biome Modifier

Schema reconstructed from BeeBiomeModifier, ModBiomeModifiers, Weighted, MobSpawnSettings.SpawnerData, LocationPredicate, RegistryCodecs, HolderSetCodec, LightPredicate, BlockPredicate, FluidPredicate, and MinMaxBounds.

## Example

```json
{
  "type": "resourcefulbees:spawns",
  "whitelist": "#minecraft:is_overworld",
  "blacklist": "minecraft:deep_dark",
  "spawn": {
    "type": "resourcefulbees:ruby_bee",
    "minCount": 1,
    "maxCount": 3,
    "weight": 10
  },
  "spawnPredicate": {
    "position": {
      "y": {
        "min": 60.0,
        "max": 128.0
      }
    },
    "biomes": "#minecraft:is_overworld",
    "dimension": "minecraft:overworld",
    "smokey": false,
    "light": {
      "light": {
        "min": 8
      }
    },
    "block": {
      "blocks": [
        "minecraft:grass_block",
        "minecraft:dirt"
      ]
    },
    "fluid": {
      "fluids": "minecraft:water"
    },
    "can_see_sky": true
  }
}
```

## Fields

| Field            | Type              | Required | Default | Description                                                                                                                                                        |
| ---------------- | ----------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `type`           | enum              | Yes      | —       | One of `resourcefulbees:spawns`, `resourcefulbees:dev_spawns`, or `resourcefulbees:supporter_spawns`.                                                              |
| `whitelist`      | biome holder set  | Yes      | —       | Biomes in which this spawn may be added.                                                                                                                           |
| `blacklist`      | biome holder set  | No       | `[]`    | Biomes excluded from spawning. The default empty holder set excludes no biomes.                                                                                    |
| `spawn`          | spawn             | Yes      | —       | Flattened weighted SpawnerData. Requires entity `type`, `minCount >= 1`, `maxCount >= 1`, and `weight >= 0`; runtime additionally requires `minCount <= maxCount`. |
| `spawnPredicate` | locationPredicate | No       | —       | Optional Minecraft LocationPredicate restricting where the spawn may occur.                                                                                        |

`whitelist` and `blacklist` are each **one** biome holder set. See [Holder Sets](/biome-modifiers/holder-sets) for the accepted single-ID, tag, compact-array, and NeoForge custom-object representations.

## Runtime notes

The modifier runs during the biome modifier `ADD` phase. A biome must match the `whitelist` holder set and must not match the `blacklist` holder set. `resourcefulbees:dev_spawns` and `resourcefulbees:supporter_spawns` are additionally gated by their respective configuration options.

`spawn.minCount` must be less than or equal to `spawn.maxCount`. This is codec validation that Draft 2020-12 JSON Schema cannot express as a direct comparison between sibling properties.

## Schema and template

The source files used for this page are included in the `reference/` directory:

* `resourcefulbees-biome-modifier-template.json`
* `resourcefulbees-biome-modifier.schema.json`

> The schema is the machine-readable reference. Runtime notes document codec or game behavior that JSON Schema cannot fully express.


# Holder Sets

Resourceful Bees uses Minecraft/NeoForge holder-set codecs anywhere a field needs to select entries from a registry. In the biome-modifier formats this includes biomes and placed features; the same holder-set concept may also appear with other registry types elsewhere in the mod.

This page is the shared reference for holder-set JSON shapes. Individual biome-modifier pages document which fields use holder sets and any field-specific runtime behavior rather than repeating these forms.

When `alwaysUseList` is false, the practical authoring forms are:

## Single registry entry

Use one registry identifier to select one entry:

```json
"minecraft:plains"
```

## Registry tag

Prefix a registry tag with `#` to select the entries in that tag:

```json
"#minecraft:is_overworld"
```

## Compact list

An array represents **one holder set containing multiple individual registry entries**:

```json
[
  "minecraft:plains",
  "minecraft:forest"
]
```

It is not a list of holder sets. An empty list is codec-valid, though it generally matches nothing.

## NeoForge custom holder set

NeoForge may dispatch custom holder-set implementations through an object with a registered `type` plus type-specific fields:

```json
{
  "type": "namespace:custom_holder_set"
}
```

The Resourceful Bees schemas keep these custom objects extensible because their fields depend on the registered holder-set type.

## Biome modifier fields

The current Resourceful Bees biome modifiers use these holder-set forms directly:

| Modifier  | Field       | Registry       |
| --------- | ----------- | -------------- |
| Bee Spawn | `whitelist` | Biome          |
| Bee Spawn | `blacklist` | Biome          |
| Bee Nest  | `biomes`    | Biome          |
| Bee Nest  | `features`  | Placed Feature |

Each field in this table is **one holder set**. For example, a bee-spawn whitelist containing plains and forest is:

```json
"whitelist": [
  "minecraft:plains",
  "minecraft:forest"
]
```

See [Bee Spawns](/biome-modifiers/bee-spawns) and [Bee Nests](/biome-modifiers) for the required/default status and runtime semantics of those fields.


# Spawn Predicate

Bee spawn biome modifiers may include an optional `spawnPredicate` using Minecraft's `LocationPredicate` codec.

All known top-level fields are optional.

| Field         | Type                 | Required | Default | Notes                                    |
| ------------- | -------------------- | -------- | ------- | ---------------------------------------- |
| `position`    | Position predicate   | No       | —       | Optional x/y/z bounds.                   |
| `biomes`      | Biome holder set     | No       | —       | Additional biome constraint.             |
| `structures`  | Structure holder set | No       | —       | Structure membership constraint.         |
| `dimension`   | dimension identifier | No       | —       | Example: `minecraft:overworld`.          |
| `smokey`      | boolean              | No       | —       | Matches smokey locations.                |
| `light`       | Light predicate      | No       | —       | Constrains light level.                  |
| `block`       | Block predicate      | No       | —       | Constrains block at the tested location. |
| `fluid`       | Fluid predicate      | No       | —       | Constrains fluid at the tested location. |
| `can_see_sky` | boolean              | No       | —       | Constrains sky visibility.               |

## Position predicate

`x`, `y`, and `z` each use `MinMaxBounds.Doubles` and are optional.

A bound can be an exact number:

```json
{
  "position": {
    "y": 64
  }
}
```

or an object:

```json
{
  "position": {
    "y": {
      "min": 60.0,
      "max": 128.0
    }
  }
}
```

The codec rejects `min > max`.

## Light predicate

`light.light` uses integer min/max bounds.

```json
{
  "light": {
    "light": {
      "min": 8,
      "max": 15
    }
  }
}
```

## Block predicate

Known fields include:

| Field    | Type                         | Required |
| -------- | ---------------------------- | -------- |
| `blocks` | Block holder set             | No       |
| `state`  | block-state predicate object | No       |
| `nbt`    | NBT predicate                | No       |

Minecraft data-component matcher fields are flattened into the same block predicate object. Those internals remain intentionally permissive in the schema because their complete codec definitions were not supplied.

## Fluid predicate

Known fields are:

| Field    | Type                         | Required |
| -------- | ---------------------------- | -------- |
| `fluids` | Fluid holder set             | No       |
| `state`  | fluid-state predicate object | No       |

## Full example

```json
{
  "position": {
    "y": {"min": 60.0, "max": 128.0}
  },
  "biomes": "#minecraft:is_overworld",
  "dimension": "minecraft:overworld",
  "smokey": false,
  "light": {
    "light": {"min": 8}
  },
  "block": {
    "blocks": ["minecraft:grass_block", "minecraft:dirt"]
  },
  "fluid": {
    "fluids": "minecraft:water"
  },
  "can_see_sky": true
}
```


# JSON Schemas and Templates

Machine-readable source files used by the generated documentation.

## Bee Data

* [`bee_template.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/bee_template.json)
* [`bee.schema.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/bee.schema.json)

## Biome Modifier

* [`resourcefulbees-biome-modifier-template.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-biome-modifier-template.json)
* [`resourcefulbees-biome-modifier.schema.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-biome-modifier.schema.json)

## Breeder Recipe

* [`resourcefulbees-breeder-recipe-template.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-breeder-recipe-template.json)
* [`resourcefulbees-breeder-recipe.schema.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-breeder-recipe.schema.json)

## Centrifuge Recipe

* [`resourcefulbees-centrifuge-recipe-template.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-centrifuge-recipe-template.json)
* [`resourcefulbees-centrifuge-recipe.schema.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-centrifuge-recipe.schema.json)

## Flow Hive Recipe

* [`resourcefulbees-flow-hive-recipe-template.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-flow-hive-recipe-template.json)
* [`resourcefulbees-flow-hive-recipe.schema.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-flow-hive-recipe.schema.json)

## Hive Recipe

* [`resourcefulbees-hive-recipe-template.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-hive-recipe-template.json)
* [`resourcefulbees-hive-recipe.schema.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-hive-recipe.schema.json)

## Honey Gen Recipe

* [`resourcefulbees-honey-gen-recipe-template.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-honey-gen-recipe-template.json)
* [`resourcefulbees-honey-gen-recipe.schema.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-honey-gen-recipe.schema.json)

## Honey

* [`resourcefulbees-honey-template.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-honey-template.json)
* [`resourcefulbees-honey.schema.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-honey.schema.json)

## Honeycomb

* [`resourcefulbees-honeycomb-template.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-honeycomb-template.json)
* [`resourcefulbees-honeycomb.schema.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-honeycomb.schema.json)

## Mutation Recipe

* [`resourcefulbees-mutation-recipe-template.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-mutation-recipe-template.json)
* [`resourcefulbees-mutation-recipe.schema.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-mutation-recipe.schema.json)

## Nest Biome Modifier

* [`resourcefulbees-nest-biome-modifier-template.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-nest-biome-modifier-template.json)
* [`resourcefulbees-nest-biome-modifier.schema.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-nest-biome-modifier.schema.json)

## Solidification Recipe

* [`resourcefulbees-solidification-recipe-template.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-solidification-recipe-template.json)
* [`resourcefulbees-solidification-recipe.schema.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-solidification-recipe.schema.json)

## Trait

* [`resourcefulbees-trait-template.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-trait-template.json)
* [`resourcefulbees-trait.schema.json`](https://github.com/Team-Resourceful/wiki/tree/main/resourcefulbees/reference/resourcefulbees-trait.schema.json)


