mojira.dev
MC-109948

Lava cannot ignite certain flammable blocks

The bug

Lava cannot light the following (otherwise flammable) blocks on fire:

  • coal blocks

  • hay bales

  • dried kelp blocks

  • small flowers

  • sweet berry bushes

  • scaffolding

  • targets

  • saplings

  • azalea

  • cave vines

  • dripleaf

  • hanging roots

  • spore blossoms

  • hanging signs

  • pink petals

  • glow lichen Fixed

How to reproduce

  1. Place lava somewhere without existing flammable blocks to spread fire to.

  2. Place coal blocks anywhere in, around, or above the lava, with air blocks adjacent where fire should be able to light.

  3. Watch the coal never burn.

  4. Increase the rate of fire spread 100x, using /gamerule randomTickSpeed 300, just to be sure.

Code analysis – MCP 9.35 (1.11) names

It's because lava and fire use different ways to tell if a block is flammable:

1.
Lava (net.minecraft.block.BlockStaticLiquid) decides whether to light a block on fire by consulting the block's Material, by calling net.minecraft.block.material.getCanBurn(World worldIn, BlockPos pos).

Coal is Material.ROCK, hay and dried kelp blocks are Material.GRASS, and 1-block flowers are Material.PLANTS. These materials will tell lava that those blocks cannot burn.

Incidentally, this is the only place .getCanBurn() is used.

2.
Fire (net.minecraft.block.BlockFire) decides whether to spread to a block by consulting its own hard-coded list of burnable blocks, by calling its own method .canCatchFire(IBlockAccess worldIn, BlockPos pos) – and this has nothing whatsoever to do with block material.

Coal, hay, dried kelp and the flowers are all on that list.

Incidentally also, that is the only place .canCatchFire() is used.

Related issues

Attachments

Comments

migrated
[media][media][media][media]
shufboyardee

Confirmed also for hay bales and 1-block flowers.

TheBoy358

Fixed for 1-block flowers and sweet berry bushes in 19w45b but others blocks are still affected.

shufboyardee

Despite whether they were fixed in 19w45b, 1-block flowers and sweet berry bushes (mentioned above) are still bugged, still do not catch from lava in 1.15 pre3.

migrated

Affects 20w45a

Avoma

Can confirm in 20w51a.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

migrated

Affects 21w16a

ampolive

Can confirm in 1.17.

ampolive

Is there any reason for having lava and fire use two different methods to access the flammability of blocks?

ampolive

Can confirm in 1.17.1 Pre-release 1 and Pre-release 2.

ampolive

Can confirm in 1.17.1.

shufboyardee

Can confirm in 21w44a.

Note: azalea / cave vines / dripleaf / glow lichen / hanging roots / spore blossoms are also subject to this bug.

Also: saplings are not, as they are no longer flammable.

migrated

All the cave items you mentioned are intended as lava spawns a lot underground

migrated

are intended

Source from Mojang saying so?

migrated

Also affects hanging signs.

Brain81505

Can confirm in 1.19.3

shufboyardee

Can confirm for 1.20 Pre-release 1.

For glow lichen, it is fixed, however.

Also: saplings and hanging signs are not subject to this bug, as they are not flammable.

shufboyardee

1.20 blocks added to this list:

Pink Petals

Minecraft386882

Can confirm in 1.21.1

Minecraft386882

Can confirm in 1.21.3

Minecraft386882

Confirmed in 1.21.4 prerelease 3

GrifterMage

(Unassigned)

Confirmed

Gameplay

Low

Block states

burning, coal_block, dried_kelp_block, fire, flower, hay_bale, lava, scaffolding, sweet_berry_bush, target

Minecraft 1.10.2, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w06a, ..., 23w44a, 23w45a, 24w09a, 1.21.1, 1.21.3

Retrieved