Wiki sections

Administration · 0.2.1

Datapacks

Create, override or configure fictional mob strains for your Minecraft world.

Make a strain

  1. Create a datapack in the world’s datapacks folder with a pack.mcmeta for Minecraft 1.21.1.
  2. Place a strain at data/<namespace>/mutagen/strains/<name>.json.
  3. Run /reload and 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

FieldRequiredDefaultWhat it is
entityyesThe mob this strain comes from. One strain per mob
colorno#7FAE6B"#RRGGBB" or a number. Used for the HUD, particles and, with skin: color, the infection
scaleno1.0Render scale in full form
difficultyno11–10. Harder species take longer to sequence
synthesisnocatalyst (item, default: Mutagen's catalyst), catalyst_count (1–64, default 1), time in ticks (default 300)
bodynoHow the body changes, see below
traitsno[]Passive traits, see below
abilitiesno[]Active abilities, see below. Order matters
visionnoCreature vision, see below
FieldDefaultWhat it is
model_layer<entity>#mainWhich vanilla model layer to take parts from, e.g. "minecraft:zombie" or "minecraft:drowned#outer"
partsmatched by nameWhich 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
spreadright arm, body, left arm, head, legsThe order bones start changing and the skin spreads
skincolorOnly 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_heightthe mob's ownHitbox and eye height in full form
reach0Extra reach in blocks in full form (can be negative)
overlays[]Extra layers drawn on the hybrid: texture, optional model_layer, emissive for glowing eyes
FieldDefaultWhat it is
shaderA post-effect chain, e.g. "minecraft:shaders/post/creeper.json", or your own from a resource pack
from_stagemanifestationWhen the vision starts. It gets stronger with progress and is full at 100%

Trait types

TypeFieldsWhat it does
attributeattribute, 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_immunityeffectsImmune to these effects
damage_factordamage_type (damage type tag, e.g. "#minecraft:is_fire"), factorMultiplies incoming damage. 0 = immune, above 1 = weakness
dark_regenerationamplifier, max_lightRegeneration in the dark
permanent_effecteffect, amplifierAn effect that's always on
dark_effecteffect, amplifier, max_lightAn effect that's on only in the dark
water_effecteffect, amplifierAn effect that's on only in water
arrow_powerfactorYour arrows hit harder
mob_neutralitykin (entity tag) and/or entitiesThese mobs stop targeting you
wall_climbClimb walls like a spider
web_walkerCobwebs don't slow you
thornsdamageHurts anyone who hits you in melee
on_hit_effecteffect, duration, amplifier, self_damageYour melee hits apply an effect; can cost you health
growth_auraradius, triesCrops and saplings nearby grow faster
flightspeed, exhaustion, min_food, rainCreative-style flight. Costs hunger; stops below min_food, and in rain/water if rain is false
aquatic_bodyFast, buoyant swimming, gills and clear underwater vision
TypeFieldsWhat it does
sun_burnBurns in daylight without a helmet
water_damageamount, rainWater (and rain) hurts
dry_outgrace (seconds), amountWeakens, then gets hurt after too long out of water
water_dependenceBreathes only in water; hops and sees poorly on land
cat_fearradiusPanics near cats and ocelots
fearentities, radiusPanics near these mobs
homesickdimension, effectsGets these effects outside its home dimension
hoarditems (item tag)Can't throw these items away
dietfoods (item tag)Eats only these foods
no_eatingfood_levelDoesn't eat at all; hunger stays at food_level
no_sleepCan't sleep
armor_rejectionslots (default: all four)Can't wear armour in these slots
no_offhandNo off-hand
no_toolsCan't hold anything in mutagen:needs_hands
no_craftingstations (block tag), gridCan't use these stations; with grid, not even the inventory crafting grid
no_buildingCan't place blocks (doors, chests and levers still work)
inventory_limithotbarOnly this many hotbar slots; the rest of the inventory is locked

Ability types

FieldDefaultWhat it is
typeOne of the types below
from_stageWhen it unlocks
nameShown in the HUD and gene tree
cooldown200In ticks
costfreehunger and/or health. Saturation goes first; health never takes the last heart
apexfalseThe B ability
requiresanywater, dry, airborne, ground, nether or dark
TypeFieldsWhat it does
effect_bursteffects, duration, amplifierGives you effects
leappower, lift, effects, duration, amplifierJumps where you look; optional effects after
shockwaveradius, damage, knockback, igniteHits and pushes everything around you
volleyarrows, spread, velocity, damageFires a fan of arrows that can't be picked up
fireballcount, spreadFires small fireballs
hexrange or radius, damage, effects, duration, amplifier, particle, soundMagic hit on the target you're looking at, or on everyone around you if radius is set
vortexradius, pull, damage, durationPulls everyone in and slows them
lungerange, power, damageThrows you at the target; hits on contact
blinkrange, effects, durationTeleports to a safe spot where you're looking
revealradius, durationMakes living things around you glow through walls
rallykin (entity tag) and/or entities, radius, durationTurns 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.