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 lichenFixed
How to reproduce
Place lava somewhere without existing flammable blocks to spread fire to.
Place coal blocks anywhere in, around, or above the lava, with air blocks adjacent where fire should be able to light.
Watch the coal never burn.
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
is blocked by
relates to
Attachments
Comments


Confirmed also for hay bales and 1-block flowers.

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

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.

Affects 20w45a
Can confirm in 20w51a.
Can confirm in 21w03a.
Can confirm in 21w05b.
Can confirm in 21w06a.

Affects 21w16a

Can confirm in 1.17.

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

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

Can confirm in 1.17.1.

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.

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

are intended
Source from Mojang saying so?

Also affects hanging signs.

Can confirm in 1.19.3

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.

1.20 blocks added to this list:
Pink Petals

Can confirm in 1.21.1

Can confirm in 1.21.3

Confirmed in 1.21.4 prerelease 3