Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Mutations are the repurposing of a vanilla mechanic: pollination effect. When a bee pollinates a flower and is returning to a hive, any flower it flies over has a chance to be fertilized (have a growth tick applied to it). It can do this up to 10 times before it needs to visit a hive to reset the counter.
Mutations reuse the vanilla mechanic by allowing bees to transform one object into another. The bee would simply fly over a target item|block|fluid|entity and the target would be transformed into different item|block|fluid|entity.
The mutation customization component simply contains the recipe ID for the mutations which the bee can perform and the mutation limit.
"resourcefulbees:mutation/v1": {
"count": 5,
"mutation": "resourcefulbees:mutations/template"
}The root JSON of the mutation customization component looks like this:
"resourcefulbees:mutation/v1": {
...
}The identifier of the component is as such:
resourcefulbees:mutation/v1countThe number of mutations that can be performed before the bee needs to visit a hive to reset the counter.
mutationThe ID for the mutation recipe. The format is that of a ResourceLocation.
Resourceful Bees more modern, codec-driven API, enables pack developers and players to create custom bees varying in degree of complexity easily. Bee creation can feel overwhelming at first, but luckily for creators, a vast majority of available customization options are optional and most options have some kind of default value available, with vanilla-matching values provided where necessary.
At the most basic, high-level view, the creation of a custom bee requires a minimal number of key components to come to life. Below we will highlight the absolute bare minimum required to make a bee as well as additional customizations:
Simply placing a properly structured JSON file in the right location will create a bee. However, the bee may not have the right appearance, create honeycombs, spawn, breed, etc without some additional context.
In addition to the bee JSON, a player or pack developer may want to provide custom textures, translations, models, animations, traits, mutations, honeys and honeycombs, various recipes, and more:
Custom textures, models, and animations will all affect the appearance of the bee.
Translations make any text associated with the bee display in the proper language.
Honeys and honeycombs can be created independently from bees so that more than one bee can utilize a honey or honeycomb.
Traits and mutations can also be created independently so as to be reusable.
Various supporting recipes can be created for blocks such as the centrifuge, solidifier, flow hive, breeder, etc.
Traits, bees, honeys, and honeycombs are all customized in the resourcefulbees config folder. They can also be customized via the datapack data folder as well. The datapack location is useful for supporting mods which may want to add their own custom bees when loaded alongside Resourceful Bees, however the config folder is a better location for pack developers and players due to the caveats associated with how bees, honeys, and combs are registered to the game.
The bee_traits folder is where all custom traits should go.
<pack instance>/config/resourcefulbees/bee_traits
The bees folder is where all custom bees should go.
<pack instance>/config/resourcefulbees/bees
The honey folder is where all custom honeys should go.
<pack instance>/config/resourcefulbees/honey
The honeycombs folder is where all custom honeycombs should go.
<pack instance>/config/resourcefulbees/honeycombs
The resources folder functions as any normal resource pack resources folder would.
<pack instance>/config/resourcefulbees/resources
Language files allow text displayed in game to be displayed in various languages. Not providing an entry in a language file will cause names to appear something like this:
item.resourcefulbees.blaze_honeycomb
Locate the resourcefulbees config folder inside the main config folder.
Before we begin the process of adding a language file we need to verify that specific resource and data pack files have been generated:
Inside the resourcefulbees folder there should be another folder labeled resources
Open this folder and verify there is a file inside called pack.mcmeta
This file is needed for the loading of the language files.
If you do not see this file then reload the mod/pack to generate it.
Inside the resources folder we need to add the following nested folders: assets/resourcefulbees/lang
The structure should appear as the following image:
Inside the lang folder, creating a file called en_us.json will create an English US language file.
You can specify a different language using any one of the language codes found here under the Available languages section.
Every custom bee added should have language entries similar to the Blaze example below:
{
"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"
}You can either restart the game or use F3+T to reload assets and have the language file take effect.
You do not need multiple language files. You only need one with new lines added for each custom bee:
{
"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",
"block.resourcefulbees.pig_honeycomb_block": "Pig Honeycomb Block",
"item.resourcefulbees.pig_honeycomb": "Pig Honeycomb",
"item.resourcefulbees.pig_spawn_egg": "Pig Bee Spawn Egg",
"entity.resourcefulbees.pig_bee": "Pig Bee"
}Custom Bee Data is the main JSON object comprised of several customization objects which are defined using a "key": { value } syntax.
The "key" names act as identifiers under which the data is registered and used and follow the namespace:path format. The path generally follows a type/version format.
This syntax allows for the customizable options to evolve over time with minimal upkeep required since data mappers can be written to upgrade older API versions to newer ones.
Below is a list of the key customization components provided by the mod. Additional components can be created by other mods via our API.
{
"resourcefulbees:core/v1": {
...
},
"resourcefulbees:rendering/v1": {
...
},
"resourcefulbees:mutation/v1": {
...
},
"resourcefulbees:breeding/v1": {
...
},
"resourcefulbees:trade/v1": {
...
}
}"resourcefulbees:trade/v1"

The color customization component handles the Bee Jar and Spawn Egg colors.
"resourcefulbees:rendering/v1": {
"ColorData": {
"spawnEggPrimaryColor": 16444375,
"spawnEggSecondaryColor": 13789470,
"jarColor": 6266528
}
}spawnEggPrimaryColorSets the primary color used on the spawn egg item.
"resourcefulbees:rendering/v1": {
"ColorData": {
"spawnEggPrimaryColor": 16444375
}
}"resourcefulbees:rendering/v1": {
"ColorData": {
"spawnEggPrimaryColor": "red"
}
}"resourcefulbees:rendering/v1": {
"ColorData": {
"spawnEggPrimaryColor": "#FF0000"
}
}spawnEggSecondaryColorSets the secondary color used on the spawn egg item.
"resourcefulbees:rendering/v1": {
"ColorData": {
"spawnEggSecondaryColor": 16444375
}
}"resourcefulbees:rendering/v1": {
"ColorData": {
"spawnEggSecondaryColor": "red"
}
}"resourcefulbees:rendering/v1": {
"ColorData": {
"spawnEggSecondaryColor": "#FF0000"
}
}jarColorThe color used on the jar when the bee is in the bee jar.
"resourcefulbees:rendering/v1": {
"ColorData": {
"jarColor": 16444375
}
}"resourcefulbees:rendering/v1": {
"ColorData": {
"jarColor": "red"
}
}"resourcefulbees:rendering/v1": {
"ColorData": {
"jarColor": "#FF0000"
}
}The core customization component is responsible for defining four key aspects of nearly every bee imaginable:
the flower(s) which a bee uses for pollination
the base amount of time the bee spends in the hive
associated lore
the honeycombs produced, if any
The root JSON of the core customization component looks like this:
The identifier of the component is as such:
honeycombVariationThe identifier of the honeycomb variation produced by the bee. More information about honeycomb variation can be found in the section.
flowerSpecifies what flower(s) the bee can pollinate. With the use of , the syntax will vary based on the definition. The flower can be defined as a tag, a list of blocks, or a single block. See the examples below for further understanding.
entityFlowerWhen the flower a bee can pollinate is an entity, entityflower must be used instead. The syntax used remains the same as blocks. See the examples below for further understanding.
maxTimeInHiveThe base amount of time a bee spends in a hive. This value is modified based on the hive tier.
loreLore is cosmetic text displayed in JEI tooltips when hovering over the bee with the cursor. It can be extremely useful for providing players with hints on how to obtain the bee or it can be useful for memes and credits.
"resourcefulbees:core/v1": {
"entityFlower": [
"minecraft:cow",
"minecraft:sheep"
],
"maxTimeInHive": 4000,
"lore": [
{
"text": "This bee is a dummy and does not exist"
},
{
"text": "Bee happy...--``-..-``---."
}
],
"honeycombVariation": "dummy_honeycomb",
"flower": [
"minecraft:diamond_block",
"minecraft:emerald_block"
]
}"resourcefulbees:core/v1": {
...
}resourcefulbees:core/v1"resourcefulbees:core/v1": {
"honeycombVariation": "diamond"
}"resourcefulbees:core/v1": {
"flower": "#minecraft:flowers"
}"resourcefulbees:core/v1": {
"flower": [
"minecraft:diamond_block",
"minecraft:emerald_block"
]
}"resourcefulbees:core/v1": {
"flower": "minecraft:diamond_block"
}"resourcefulbees:core/v1": {
"entityFlower": "#minecraft:raiders"
}"resourcefulbees:core/v1": {
"entityFlower": [
"minecraft:pig",
"minecraft:cow"
]
}"resourcefulbees:core/v1": {
"entityFlower": "minecraft:cow"
}"resourcefulbees:core/v1": {
"maxTimeInHive": 1200
}"resourcefulbees:core/v1": {
"lore": [
{
"text":"A Delicious Bee.",
"color": "aqua"
},
{
"translate":"tooltip.resourcefulbees.bee.creator",
"with": ["§6Epic_Oreo"]
}
]
}The combat customization component is responsible for defining a bee's survival ability and hostility:
Is the bee passive?
Does it lose its stinger after attacking?
Does it inflict poison?
Can it take damage?
General attributes of the entity such as:
Max health
Armor
Attack damage
Knockback
Any registered attribute vanilla or modded can be customized
"resourcefulbees:combat/v1": {
"removeStingerOnAttack": false,
"inflictsPoison": false,
"attributes": {
"generic.attack_damage": 0,
"generic.max_health": 2,
"generic.armor": 5,
"generic.armor_toughness": 10,
"generic.attack_knockback": 3
}
}The root JSON of the combat customization component looks like this:
"resourcefulbees:combat/v1": {
...
}The identifier of the component is as such:
resourcefulbees:combat/v1isPassiveWhen true, the bee will not attack entities back.
removeStingerOnAttackWhen true, the bees stinger will be removed on attack. If a bees stinger is removed, it has a chance of randomly dying a bit after the stinger was removed.
inflictsPoisonWhen true, the targeted entity will be inflicted with poison when attacked.
isInvulnerableWhen true, the bee will not take any damage.
attributesA map of attributes and their values. The keys are the Attribute ID's and the values are the attribute value.
The breeding customization component is responsible for defining relationships between bees. Bees can have many different breeding relationships.
"resourcefulbees:breeding/v1": {
"feedAmount": 2,
"childGrowthDelay": -45000,
"breedDelay": 2400,
"parents": [
{
"parent1": "diamond",
"parent2": "coal",
"weight": 75.0,
"chance": 0.67
},
{
"parent1": "diamond",
"parent2": "diamond",
"weight": 24.0,
"chance": 0.67
}
],
"feedItem": [
"minecraft:poppy",
"minecraft:carrot"
],
"feedReturnItem": {
"id": "minecraft:bucket",
"count": 1,
"nbt": {
"this_is": "an_nbt_tag"
}
}
}The root JSON of the breeding customization component looks like this:
"resourcefulbees:breeding/v1": {
...
}The identifier of the component is as such:
resourcefulbees:breeding/v1parentsA list of bee pairs that can be used to breed this bee.
feedItemThe item(s) which can be fed to the bee to trigger its love state.
Note: This value only applies when this bee is being used to breed another bee
"resourcefulbees:breeding/v1": {
"feedItem": "#minecraft:candles"
}"resourcefulbees:breeding/v1": {
"feedItem": [
"minecraft:poppy",
"minecraft:carrot"
]
}"resourcefulbees:breeding/v1": {
"feedItem": "minecraft:carrot"
}feedReturnItemItem returned to the player after the feed item has been consumed. Useful for returning container-like items after consuming the contents.
Note: This value only applies when this bee is being used to breed another bee
feedAmountThe amount of feed items required to be given to the bee to trigger its love state.
Note: This value only applies when this bee is being used to breed another bee
childGrowthDelayThe time in ticks that a baby bee will stay a baby bee.
breedDelayThe time in ticks until the bee's love state can be triggered again.
A bee family consists of four key pieces of information necessary for breeding a bee:
The first parent required
The second parent required
The weighting of how likely the child is to be selected among potential candidates
The chance the child is created if selected
weightFor all possible children these two parents can create how likely is it this one will be picked? Weight affects the result distribution among potential outcomes.
chanceOnce this child has been chosen as the result type, what is the chance that it will be created?
Note: The value has a range of 0.0 - 1.0.
A value of 0.5 = a 50% chance of the child being created.
parent1The ID of the first parent.
If not provided family will be ignored!
parent2The ID of the second parent.
If not provided family will be ignored!
"resourcefulbees:breeding/v1": {
"parents": [
{
"parent1": "diamond",
"parent2": "coal",
"weight": 75.0,
"chance": 0.67
}
]
}Child 1: 20
Child 2: 10
Child 3: 30
Child 4: 60
Child 5: 80Child 1: 10%
Child 2: 5%
Child 3: 15%
Child 4: 30%
Child 5: 40%"resourcefulbees:breeding/v1": {
"parents": [
{
"parent1": "diamond",
"parent2": "coal",
"weight": 75.0
}
]
}"resourcefulbees:breeding/v1": {
"parents": [
{
"parent1": "diamond",
"parent2": "coal",
"chance": 0.67
}
]
}"resourcefulbees:breeding/v1": {
"parents": [
{
"parent1": "diamond",
"parent2": "coal"
}
]
}"resourcefulbees:breeding/v1": {
"parents": [
{
"parent1": "diamond",
"parent2": "coal"
}
]
}A unique feature to Resourceful Bees. traits group together:
Particle Effects
Damage and Potion Immunities
Damage Types and Potion Effects
Special Abilities
and Auras
Traits enable users to breathe life into infinite variations of bees that can be godly, pesky, helpful, or just downright evil.
The root JSON of the trait customization component looks like this:
The identifier of the component is as such:
auraRangeThe range within which players would be affected by the aura. This value is the number of blocks.
traitsThe list of traits given to the bee.
"resourcefulbees:trait/v1": {
"auraRange": 20,
"traits": ["nether", "wither"]
}"resourcefulbees:trait/v1": {
...
}resourcefulbees:trait/v1"resourcefulbees:trait/v1": {
"auraRange": 20
}"resourcefulbees:trait/v1": {
"traits": ["nether", "wither"]
}todo: move this to a separate recipes category
Mutations utilize the recipe system to make them more data pack friendly. One benefit of using the recipe system is that a mutation can be created once and shared among many different bees.
{
"type": "resourcefulbees:mutation",
"mutations" : [
{
"input": {
"type": "block",
"block": {
"id": "minecraft:stone"
},
"chance": 0.5
},
"outputs" : [
{
"type": "block",
"block": {
"id": "minecraft:end_stone"
}
}
]
}
]
}Every recipe JSON is required to have a type. For mutations the type is resourcefulbees:mutation
{
"type": "resourcefulbees:mutation",
...
}inputThe item/block/fluid/entity being transformed.
outputsA list of possible transformation results, which can be an item, block, fluid, or entity.
sourceThe ResourceLocation for any registered MobEffect, including modded ones.
hasEntityIf the damage source is sourced from an entity, this should be marked as true. This allows for the death messages to be displayed correctly in the event the target entity dies.
strengthThe strength of the damage effect.
The render customization component is responsible for defining how the bee looks. The data is only used on the client. There are several visual aspects of a bee that can be modified:
Size
Model
Animations
Textures/Layers
UI Colors
"resourcefulbees:rendering/v1": {
"layers": [
{
"pulseFrequency": 5.0,
"color": 52020
},
{
"layerEffect": "GLOW",
"pulseFrequency": 5.0,
"color": 65535
}
],
"model": "resourcefulbees:geo/base.geo.json"
"texture": "/oreo/oreo_bee",
"animation": "resourcefulbees:animations/bee.animation.json"
"ColorData": {
"spawnEggPrimaryColor": "#442920",
"spawnEggSecondaryColor": "#e1d9b8",
"jarColor": "#442920"
},
"sizeModifier": 1.25
}The root JSON of the rendering customization component looks like this:
"resourcefulbees:rendering/v1": {
...
}The identifier of the component is as such:
resourcefulbees:rendering/v1layersLayers are used to add custom textures on top of the base texture and allow them to have special effects or be enabled by special means.
Warning: Increasing the number of textures rendered on a bee will impact performance. It is recommended to use the least number of layers necessary!
ColorDataColor data is used to set the colors for things like jars and spawn eggs.
modelThe location where the GeckoLib geo file is stored.
Beware: The more complex the model is, the more impact it will have on performance. It is highly recommended to keep custom models as simple as possible!
textureThe base texture for the bee. Each texture requires two versions to exist: normal and angry. The angry texture should use the same name as the normal texture with the suffix _angry appended to it.
creeper.png
creeper_angry.png
animationThe location where the GeckoLib animation file is stored.
Note: Only vanilla bee animations are currently supported!
sizeModifierThe scale of the bee when rendered in-game.
Note: A value of 2.0 would double the size of the bee, while a value of 0.5 would shrink the bee to half its normal size.
The layer customization component is responsible for defining key aspects of a specific render layer. There are several aspects of a layer that can be modified:
Effect
Pulse Frequency
Color
Texture
Visibility when carrying pollen
colorThe color that will be applied to the layers texture, this should not be set if your texture is not made to be colored.
textureThe texture for the layer. Each texture requires two versions to exist: normal and angry. The angry texture should use the same name as the normal texture with the suffix _angry appended to it.
creeper.png
creeper_angry.png
layerEffectThe effect the layer will have. There are 3 options available:
This effect does nothing. It is the default option and does not need to be set explicitly.
This effect applies the enchantment glint effect to the layer.
This is used to apply a fullbright glow to the texture similar to the flash a creeper makes.
This combined with the pulseFrequency field will allow for the same effect as a creeper.
This does not have to be set explicitly. The two examples below do the same thing:
isPollenWhen true, this layer will only be visible if the bee is carrying pollen.
pulseFrequencyUsed with the GLOW layerEffect to create a flashing effect.
"resourcefulbees:rendering/v1": {
"layers": [
{
"layerEffect": "GLOW",
"pulseFrequency": 5.0,
"color": 65535,
"texture": "/example/pollen",
"isPollen": false
}
]
}"resourcefulbees:rendering/v1": {
"layers": [
{
"color": 52020
}
]
}"resourcefulbees:rendering/v1": {
"layers": [
{
"color": "blanchedalmond"
}
]
}"resourcefulbees:rendering/v1": {
"layers": [
{
"color": "#442920"
}
]
}"resourcefulbees:rendering/v1": {
"layers": [
{
"texture": "/example/pollen"
}
]
}"resourcefulbees:rendering/v1": {
"layers": [
{
"layerEffect": "NONE"
}
]
}"resourcefulbees:rendering/v1": {
}"resourcefulbees:rendering/v1": {
"layers": [
{
"layerEffect": "ENCHANTED"
}
]
}"resourcefulbees:rendering/v1": {
"layers": [
{
"layerEffect": "GLOW"
}
]
}"resourcefulbees:rendering/v1": {
"layers": [
{
"isPollen": true
}
]
}"resourcefulbees:rendering/v1": {
"layers": [
{
"layerEffect": "GLOW",
"pulseFrequency": 5.0
}
]
}{
"auras": [
{
"potionEffect": {
"effect": "minecraft:instant_health",
"strength": 2
},
"modifier": 3,
"calmingDisabled": true,
"aura": "EXPERIENCE",
"damageEffect": {
"source": "minecraft:in_fire",
"hasEntity": false,
"strength": 0
}
}
]
}auraThe Aura Type determines the effect that the aura has on the player. It is a required value for the Aura to load properly.
{
"auras": [
{
"aura": "BURNING"
}
]
}{
"auras": [
{
"aura": "POTION"
}
]
}{
"auras": [
{
"aura": "HEALING"
}
]
}{
"auras": [
{
"aura": "DAMAGING"
}
]
}{
"auras": [
{
"aura": "EXPERIENCE"
}
]
}{
"auras": [
{
"aura": "EXPERIENCE_DRAIN"
}
]
}damageEffectUsed when the aura type is DAMAGING The damage source and strength values are defined in the Damage Effect.
potionEffectUsed when the aura type is POTION The effect and strength values are defined in the Potion Effect.
modifierThe modifier value is used with the HEALING, EXPERIENCE, and EXPERIENCE_DRAIN aura types.
When used with the HEALING aura type, the value equals the amount healed.
When used with the EXPERIENCE aura type, the value equals the amount of experience received.
When used with the EXPERIENCE_DRAIN aura type, the value equals the amount of experience taken.
calmingDisabledThe aura can be disabled by the "calming" status effect when this value is set to true.
The villager trade customization component is reused across several JSON files within Resourceful Bees. It is responsible for defining the costs and rewards of certain trade items depending on which file it is used in. Not including a villager trade customization component prevents the associated items from being added to the pool of trades.
Below are the JSON files which can have a villager trade customization component and the trades they create.
When the component is used in a custom bee JSON, a filled bee jar will be added to the Level 5 trade pool.
When the component is used in a custom honeycomb JSON, the honeycomb and honeycomb block will be added to the Level 3 trade pool.
The component can be used in three different sections of a custom honey JSON:
When used in the honey bottle section, a honey bottle will be added to the Level 3 trade pool.
When used in the honey block section, a honey block will be added to the Level 3 trade pool.
When used in the honey fluid section, a honey bucket will be added to the Level 3 trade pool.
Adding an empty villager trade component will add the trade to the pool using all default values.
{
"resourcefulbees:block/v1": {
"color": "rainbow",
"honeyBlockItem": "resourcefulbees:rainbow_honey_block",
"honeyBlock": "resourcefulbees:rainbow_honey_block",
"tradeData": {}
}
}"resourcefulbees:trade/v1": {
"amount": {
"min": 1,
"max": 1
},
"secondaryItem": "minecraft:coal_block",
"secondaryItemCost": {
"min": 4,
"max": 8
},
"priceMultiplier": 0.4,
"maxTrades": 2,
"xp": 8
}The root JSON of the villager trade customization component looks like this:
"resourcefulbees:trade/v1": {
...
}The identifier of the component is as such:
resourcefulbees:trade/v1In custom honeycomb and honey JSON's the identifier is tradeData:
{
"resourcefulbees:block/v1": {
"tradeData": {} <---- Identifier
}
}amountThe max amount of filled bee jars that can potentially be received in a single trade.
When trades are being populated, the amount actually used is a randomized value between the min and the max, therefore, not all trades will always have this amount.
secondaryItemThe item needed, when the trade requires a secondary item, in addition to golden flowers.
secondaryItemCostThe max base cost for the secondary item.
When trades are being populated, the amount actually used is a randomized value between the min and the max, therefore, not all trades will always have this amount.
priceMultiplierWhen demand goes up, so does the price. Use this value to scale the price increase.
Most vanilla trades have a price multiplier of 0.05
maxTradesThe max number of trades that can be performed before a restock is needed.
xpThe XP awarded each trade.
typeA mutation can be one of four different types:
Item | Block | Fluid | EntityThe type object is used for defining the Mutation Type, associated data, and the likelihood of obtaining, when used as an output option.