Administration · 0.2.1
Datapacks
Create, override or configure fictional mob strains for your Minecraft world.
Make a strain
- Create a datapack in the world’s
datapacksfolder with apack.mcmetafor Minecraft 1.21.1. - Place a strain at
data/<namespace>/mutagen/strains/<name>.json. - Run
/reloadand look for the strain in/mutagen list. If the file is skipped, check the server log.
Server datapacks sync to players. Everyone still needs the same build of Mutagen.
{"entity":"minecraft:witch","color":"#6A2C8C","difficulty":2}Strain, body and vision fields
| Field | Required | Default | What it is |
|---|---|---|---|
entity | yes | The mob this strain comes from. One strain per mob | |
color | no | #7FAE6B | "#RRGGBB" or a number. Used for the HUD, particles and, with skin: color, the infection |
scale | no | 1.0 | Render scale in full form |
difficulty | no | 1 | 1–10. Harder species take longer to sequence |
synthesis | no | catalyst (item, default: Mutagen's catalyst), catalyst_count (1–64, default 1), time in ticks (default 300) | |
body | no | How the body changes, see below | |
traits | no | [] | Passive traits, see below |
abilities | no | [] | Active abilities, see below. Order matters |
vision | no | Creature vision, see below |
| Field | Default | What it is |
|---|---|---|
model_layer | <entity>#main | Which vanilla model layer to take parts from, e.g. "minecraft:zombie" or "minecraft:drowned#outer" |
parts | matched by name | Which part of the mob each player bone becomes. Each entry: part (path in the model, like "head" or "body/tail"), bone (player bone), grow (true for parts a human doesn't have, like tails), scale ([x, y, z]) |
absorb | [] | Player bones that should melt into the torso. Bones with no matching part do this automatically |
spread | right arm, body, left arm, head, legs | The order bones start changing and the skin spreads |
skin | color | Only for the first-person hand and the older method: texture takes infection colours from the mob's texture (player-shaped textures only), color uses the strain colour |
morph | [] | Extra posture: bone and rotation in degrees |
width, height, eye_height | the mob's own | Hitbox and eye height in full form |
reach | 0 | Extra reach in blocks in full form (can be negative) |
overlays | [] | Extra layers drawn on the hybrid: texture, optional model_layer, emissive for glowing eyes |
| Field | Default | What it is |
|---|---|---|
shader | A post-effect chain, e.g. "minecraft:shaders/post/creeper.json", or your own from a resource pack | |
from_stage | manifestation | When the vision starts. It gets stronger with progress and is full at 100% |
Trait types
| Type | Fields | What it does |
|---|---|---|
attribute | attribute, amount, operation (add_value / add_multiplied_base / add_multiplied_total) | Any attribute: health, speed, damage, armour, step height, gravity, swim speed… Negative amounts are fine |
effect_immunity | effects | Immune to these effects |
damage_factor | damage_type (damage type tag, e.g. "#minecraft:is_fire"), factor | Multiplies incoming damage. 0 = immune, above 1 = weakness |
dark_regeneration | amplifier, max_light | Regeneration in the dark |
permanent_effect | effect, amplifier | An effect that's always on |
dark_effect | effect, amplifier, max_light | An effect that's on only in the dark |
water_effect | effect, amplifier | An effect that's on only in water |
arrow_power | factor | Your arrows hit harder |
mob_neutrality | kin (entity tag) and/or entities | These mobs stop targeting you |
wall_climb | Climb walls like a spider | |
web_walker | Cobwebs don't slow you | |
thorns | damage | Hurts anyone who hits you in melee |
on_hit_effect | effect, duration, amplifier, self_damage | Your melee hits apply an effect; can cost you health |
growth_aura | radius, tries | Crops and saplings nearby grow faster |
flight | speed, exhaustion, min_food, rain | Creative-style flight. Costs hunger; stops below min_food, and in rain/water if rain is false |
aquatic_body | Fast, buoyant swimming, gills and clear underwater vision |
| Type | Fields | What it does |
|---|---|---|
sun_burn | Burns in daylight without a helmet | |
water_damage | amount, rain | Water (and rain) hurts |
dry_out | grace (seconds), amount | Weakens, then gets hurt after too long out of water |
water_dependence | Breathes only in water; hops and sees poorly on land | |
cat_fear | radius | Panics near cats and ocelots |
fear | entities, radius | Panics near these mobs |
homesick | dimension, effects | Gets these effects outside its home dimension |
hoard | items (item tag) | Can't throw these items away |
diet | foods (item tag) | Eats only these foods |
no_eating | food_level | Doesn't eat at all; hunger stays at food_level |
no_sleep | Can't sleep | |
armor_rejection | slots (default: all four) | Can't wear armour in these slots |
no_offhand | No off-hand | |
no_tools | Can't hold anything in mutagen:needs_hands | |
no_crafting | stations (block tag), grid | Can't use these stations; with grid, not even the inventory crafting grid |
no_building | Can't place blocks (doors, chests and levers still work) | |
inventory_limit | hotbar | Only this many hotbar slots; the rest of the inventory is locked |
Ability types
| Field | Default | What it is |
|---|---|---|
type | One of the types below | |
from_stage | When it unlocks | |
name | Shown in the HUD and gene tree | |
cooldown | 200 | In ticks |
cost | free | hunger and/or health. Saturation goes first; health never takes the last heart |
apex | false | The B ability |
requires | any | water, dry, airborne, ground, nether or dark |
| Type | Fields | What it does |
|---|---|---|
effect_burst | effects, duration, amplifier | Gives you effects |
leap | power, lift, effects, duration, amplifier | Jumps where you look; optional effects after |
shockwave | radius, damage, knockback, ignite | Hits and pushes everything around you |
volley | arrows, spread, velocity, damage | Fires a fan of arrows that can't be picked up |
fireball | count, spread | Fires small fireballs |
hex | range or radius, damage, effects, duration, amplifier, particle, sound | Magic hit on the target you're looking at, or on everyone around you if radius is set |
vortex | radius, pull, damage, duration | Pulls everyone in and slows them |
lunge | range, power, damage | Throws you at the target; hits on contact |
blink | range, effects, duration | Teleports to a safe spot where you're looking |
reveal | radius, duration | Makes living things around you glow through walls |
rally | kin (entity tag) and/or entities, radius, duration | Turns nearby mobs on whoever last hurt you. Nothing is spawned |
Examples and troubleshooting
To replace a built-in strain, use its original file path under data/mutagen/mutagen/strains/. For custom names and descriptions you can use translations from a resource pack.
See the full datapack specification for model mapping, vision effects and working examples.