Skip to main content

DatapacksSnapshots

Crystal tiers, Former and Crucible recipes, and material detection can all be changed with a datapack.

Crystal tiers​

Tiers live in data/<namespace>/bmcrm/crystal_tier/<name>.json. BMCRM's own tiers are in the bmcrm namespace (glass, amethyst, prismarine, echo, shulker), so a file with the same path overrides one.

{
"level": 1,
"color": "#C6E2E9",
"roll_chance": 0.05,
"base_ingredient": { "tag": "minecraft:sand" },
"catalyst_ingredient": { "tag": "c:glass_blocks/cheap" },
"resonance_capacity": 250
}
FieldRequiredDefaultDescription
levelyesTier number, used for ordering
base_ingredientyesBase slot ingredient in the Crystal Former
catalyst_ingredientyesCatalyst slot ingredient in the Crystal Former
roll_chanceno0.05Chance per work cycle to generate, 0.0–1.0
resonance_capacityno0Most resonance (mB) a crystal of this tier can store
colorno#FFFFFFTint of the crystal
hiddennofalseHide the tier from JEI, Ponder and the creative tab

A tier file that fails to parse is logged and skipped instead of stopping the world from loading. An empty JSON object does not remove a tier — to remove one, override it with:

{ "neoforge:conditions": [{ "type": "neoforge:false" }] }

Forming recipes​

The Crystal Former can make other items with bmcrm:forming recipes:

{
"type": "bmcrm:forming",
"base_ingredient": { "item": "minecraft:copper_ingot" },
"catalyst_ingredient": { "tag": "c:gems/amethyst" },
"result": { "id": "bmcrm:resonating_gem", "count": 2 },
"duration": 600
}

duration is in ticks and defaults to 2400 (2 minutes). Crystal tiers are checked first, so a recipe using the same base + catalyst as a tier can never be made; these are listed as a warning in the log when the server starts.

Resonance infusion recipes​

The items the Crystal Crucible makes come from bmcrm:resonance_infusion recipes:

{
"type": "bmcrm:resonance_infusion",
"ingredient": { "item": "minecraft:lapis_lazuli" },
"resonance": 25,
"result": { "id": "bmcrm:activated_lapis_lazuli", "count": 1 }
}

resonance is the Liquid Resonance cost in mB.

Infusion overrides​

If a material isn't detected correctly by the Crystal Infuser, the bmcrm:infusion_override data map sets its resource directly. It goes in data/bmcrm/data_maps/item/infusion_override.json:

{
"values": {
"minecraft:raw_iron": { "type": "ore_tag", "tag": "c:ores/iron" },
"#c:gems/quartz": { "type": "block", "block": "minecraft:nether_quartz_ore" }
}
}

The resource type is one of:

  • ore_tag — tag: a block tag of ores to pick from
  • block — block: a single block id
  • entity — entity: a mob id (see Mob Crystals)

Mob crystals​

Mobs in the bmcrm:no_drops entity type tag can't be turned into mob crystals. Add to it for modded mobs that don't drop anything.