From 4d8416db0bc1e31d51a0c45f244a3f7c25bcf325 Mon Sep 17 00:00:00 2001 From: Elenterius Date: Sun, 25 Aug 2024 23:34:37 +0200 Subject: [PATCH] feat: make flesh veins flammable --- .../biomancy/block/veins/FleshVeinsBlock.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/github/elenterius/biomancy/block/veins/FleshVeinsBlock.java b/src/main/java/com/github/elenterius/biomancy/block/veins/FleshVeinsBlock.java index a1088d262..ed8b3b10f 100644 --- a/src/main/java/com/github/elenterius/biomancy/block/veins/FleshVeinsBlock.java +++ b/src/main/java/com/github/elenterius/biomancy/block/veins/FleshVeinsBlock.java @@ -63,7 +63,7 @@ public class FleshVeinsBlock extends MultifaceBlock implements SimpleWaterlogged private final MultifaceSpreader spreader = new MultifaceSpreader(new MalignantFleshSpreaderConfig(this)); public FleshVeinsBlock(Properties properties) { - super(properties.randomTicks()); + super(properties.randomTicks().ignitedByLava()); registerDefaultState(defaultBlockState().setValue(WATERLOGGED, false).setValue(CHARGE.get(), CHARGE.getMin())); } @@ -650,4 +650,15 @@ public BlockState getStateForPlacement(BlockState currentState, BlockGetter leve public MultifaceSpreader getSpreader() { return spreader; } + + @Override + public int getFlammability(BlockState state, BlockGetter level, BlockPos pos, Direction direction) { + return Boolean.TRUE.equals(state.getValue(WATERLOGGED)) ? 0 : 100; + } + + @Override + public int getFireSpreadSpeed(BlockState state, BlockGetter level, BlockPos pos, Direction direction) { + return Boolean.TRUE.equals(state.getValue(WATERLOGGED)) ? 0 : 15; + } + }