Skip to content

Everything Burns

Makes all blocks other than fluids flammable.

<1,000 downloads Updated

Last update on each platform

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

What will you mine when stone turns to fire?

What will you craft when diamonds crumble to ash?

What will you build… when Everything Burns?

This mod makes all blocks, except for fluids and waterlogged blocks, flammable. 

It's as simple as that. 

This is, essentially, the entire code of the mod:

@Mixin(FireBlock.class)

public class FireBlockMixin {


    public static final TagKey<Block> BURNING_NOT_MODIFIED = TagKey.create(Registries.BLOCK, ResourceLocation.fromNamespaceAndPath(MOD_ID, "burning_not_modified"));


    @ModifyReturnValue(at = @At("RETURN"), method = "getBurnOdds(Lnet/minecraft/world/level/block/state/BlockState;)I")

    private int modifyBurnOdds(int original, @Local(argsOnly = true) BlockState state) {

        return original <= 0 && !state.is(BURNING_NOT_MODIFIED) && state.getFluidState().isEmpty() && !state.isAir()  ? 30 : original;

    }


    @ModifyReturnValue(at = @At("RETURN"), method = "getIgniteOdds(Lnet/minecraft/world/level/block/state/BlockState;)I")

    private int modifyIgniteOdds(int original, @Local(argsOnly = true) BlockState state) {

        return original <= 0 && !state.is(BURNING_NOT_MODIFIED) && state.getFluidState().isEmpty() && !state.isAir()  ? 60 : original;

    }

}

What will you mine when stone turns to fire?

What will you craft when diamonds crumble to ash?

What will you build... when Everything Burns?

This mod makes all blocks, except for fluids and waterlogged blocks, flammable. 

It's as simple as that. 

  

This is, essentially, the entire code of the mod:


@Mixin(FireBlock.class)
public class FireBlockMixin {
    public static final TagKey<Block> BURNING_NOT_MODIFIED = TagKey.create(Registries.BLOCK, ResourceLocation.fromNamespaceAndPath(MOD_ID, "burning_not_modified"));

    @ModifyReturnValue(at = @At("RETURN"), method = "getBurnOdds(Lnet/minecraft/world/level/block/state/BlockState;)I")
    private int modifyBurnOdds(int original, @Local(argsOnly = true) BlockState state) {
        return original <= 0 && !state.is(BURNING_NOT_MODIFIED) && state.getFluidState().isEmpty() && !state.isAir()  ? 30 : original;
    }

    @ModifyReturnValue(at = @At("RETURN"), method = "getIgniteOdds(Lnet/minecraft/world/level/block/state/BlockState;)I")
    private int modifyIgniteOdds(int original, @Local(argsOnly = true) BlockState state) {
        return original <= 0 && !state.is(BURNING_NOT_MODIFIED) && state.getFluidState().isEmpty() && !state.isAir()  ? 60 : original;
    }
}