Skip to content

1.21.1 fluids

github-actions[bot] edited this page Dec 3, 2026 · 7 revisions

Fluids

Fluid with Contact Effects — Full Example

{
  "id": "poison_lake",
  "type": "fluid",
  "names": {
    "en_us": "Poison Lake",
    "es_mx": "Lago Venenoso"
  },
  "bucket_names": {
    "en_us": "{fluid_name} Bucket",
    "es_mx": "Cubeta de {fluid_name}"
  },
  "light_level": 3,
  "allow_tint": true,
  "color": "0xFF7FFF3F",
  "flow_delay": 0.5,
  "spread_distance": 6,
  "burns_entities": false,
  "contact_effect_interval": 2.0,
  "contact_effects": [
    { "effect": "minecraft:poison",   "amplifier": 0, "duration": 3 },
    { "effect": "minecraft:slowness", "amplifier": 1, "duration": 3 }
  ]
}

With no texture, the fluid draws water's sprites, and color dyes them green.

Lava-like Fluid — Full Example

{
  "id": "magma_fluid",
  "type": "fluid",
  "names": {
    "en_us": "Magma Flow",
    "es_mx": "Flujo de Magma"
  },
  "bucket_names": {
    "en_us": "{fluid_name} Bucket",
    "es_mx": "Cubeta de {fluid_name}"
  },
  "light_level": 15,
  "flow_delay": 1.5,
  "spread_distance": 4,
  "behavior": "lava",
  "burn_duration": 8,
  "contact_effect_interval": 1.0,
  "contact_effects": [
    { "effect": "minecraft:weakness",       "amplifier": 1, "duration": 5 },
    { "effect": "minecraft:mining_fatigue", "amplifier": 0, "duration": 5 }
  ],
  "texture": {
    "refs": {
      "still": "minecraft:block/lava_still",
      "flowing": "minecraft:block/lava_flow"
    }
  }
}

Fluid textures take the short form — minecraft:block/lava_still, not the full path. A fluid sprite is stitched into the block atlas, and that is how the atlas addresses it.

Declaring neither still nor flowing makes the fluid a water reskin, which is also what gives it water's blue tint. Declaring one and not the other is rejected: the fluid would draw its own still texture and water's flowing one.

Tint. color only applies with "allow_tint": true, so a color left over from a copied example cannot stain your own textures; the log warns when it is ignored. The tint multiplies the texture, it does not paint over it: it can only darken, and a channel it lacks disappears (yellow on violet comes out dark red). To dye a fluid freely, draw its textures in grayscale, as water's are.

The bucket has its own key, bucket, a normal item texture (minecraft:item/lava_bucket or a PNG of yours). Without it the fluid gets the lava bucket when it is drawn with minecraft:block/lava_still, and the water bucket otherwise.

Animated fluids need their .mcmeta beside the PNG — see Textures & Models.

"behavior": "lava" makes the fluid burn, makes you move inside it as in lava, keeps it from drowning you and makes it cushion falls the way lava does. See Inside the Fluid.

Healing Spring — Full Example

{
  "id": "healing_spring",
  "type": "fluid",
  "names": {
    "en_us": "Healing Spring",
    "es_mx": "Manantial Curativo"
  },
  "allow_tint": true,
  "color": "0xFFFF8FD0",
  "can_drown": false,
  "fall_damage": 10,
  "contact_effects": [
    { "effect": "minecraft:regeneration", "amplifier": 0, "duration": 3 }
  ]
}

You swim in it as in water, but you can breathe inside, and it takes 10 blocks of depth for a fall to do no damage.

Inside the Fluid

behavior picks a starting point, and each field you declare changes it:

Field "water" (default) "lava"
movement "swim" "lava"
can_drown true false
pushes_entities true true
extinguishes_fire true false
burns_entities false true
fall_damage "water" "lava"

The preset also picks what has no field: the bucket sounds and the strength of the current, water's or lava's. Mobs stay out of a fluid that burns.

movement — how an entity moves inside:

Value Inside the fluid
"swim" As in water: you swim, sprint-swim and rise by holding jump
"lava" As in lava: slow and thick, you rise by holding jump, no swimming pose
"sink" Nobody rises: you sink even holding jump, and walk out at the shore

fall_damage — how much it protects you from a fall:

Value Falling into it
"water" As water: touching it cancels the fall, even a single block of it
"lava" As lava: every moment inside halves the fall, so a high fall needs several blocks of depth
"none" No protection: falling into it hurts as much as hitting the ground, however deep. Sinking or swimming down inside does not add to it
A number The most depth in blocks a fall needs to do no damage, from any height. The cushion grows fastest near the end, as in lava: one block short of it you take little or nothing. With 10, 10 blocks always save you, 9 save you from almost any fall, and 5 leave about a quarter of it. 0 is the same as "water"

With a number or "none", the damage is dealt as you hit the surface, judged by the depth of the fluid under you; after that, nothing you do inside adds to it, and climbing out at the shore is safe.

When one of these fluids meets a different fluid (water, lava, another of yours), neither takes the other's place, not even falling onto it: each stops at the other's edge.

A value it cannot read is reported in the log and the behavior's is used. If extinguishes_fire and burns_entities are both true, the log warns and the fluid burns.

Fluid Fields

Field Type Default Description
light_level Int 0 Light emitted by the fluid block (0–15)
allow_tint Boolean false Applies color. Without it color is ignored
color String — Tint: "0xAARRGGBB", or "0xRRGGBB" / "#RRGGBB" for an opaque one, e.g. "0xFF3F76E4". Needs allow_tint
flow_delay Float 0.25 Seconds between each spread step. Lower = faster. Water=0.25, Lava=1.5 (0.5 in the Nether)
spread_distance Int 8 Blocks the fluid covers on flat ground, counting the source. Water=8, Lava=4. Any value from 2 to 32 is exact; past 16 the log warns about the block count
infinite_source Boolean false Two sources turn the flowing block between them into a source, like water. Follows the waterSourceConversion game rule
behavior String "water" Starting point for the fields below: "water" or "lava". See Inside the Fluid
movement String the behavior's "swim", "lava" or "sink"
can_drown Boolean the behavior's Entities under the surface lose air and drown. Mobs that breathe under water in vanilla (the undead, axolotls, turtles…) never do
pushes_entities Boolean true The current carries entities
extinguishes_fire Boolean the behavior's Puts out burning entities
fall_damage String or number the behavior's "water", "lava", "none" or the depth in blocks that cancels a fall
burns_entities Boolean the behavior's Sets entities on fire like lava — affects players, mobs and dropped items (fire-immune mobs are unaffected)
burn_duration Float 5 Seconds the entity burns. Only if the fluid burns
contact_effect_interval Float 1.0 Seconds between each effect application while in the fluid
contact_effects List — Effects applied to living entities (players and mobs) while submerged
contact_effects[].effect String — Effect ID, e.g. "minecraft:poison"
contact_effects[].amplifier Int 0 Effect level minus 1, 0-255
contact_effects[].duration Float 3 Duration in seconds per application

While you stay inside, each effect is topped back up to its duration whenever it has dropped by contact_effect_interval; once you leave, it lasts its duration. Poison, wither and regeneration keep their normal rhythm. Vanilla blinks an effect's icon in its last 10 seconds, and night vision flickers then too: give a duration above 10 seconds to keep them steady while inside.

⚠️ Dropped items inside a fluid that burns catch fire and are destroyed, exactly like in lava — players who die in it will lose their drops. Design accordingly.

Clone this wiki locally