diff --git a/src/main/java/com/starfish_studios/foundation/block/BrazierBlock.java b/src/main/java/com/starfish_studios/foundation/block/BrazierBlock.java index f2b6d0a3..b0ed37b0 100644 --- a/src/main/java/com/starfish_studios/foundation/block/BrazierBlock.java +++ b/src/main/java/com/starfish_studios/foundation/block/BrazierBlock.java @@ -8,6 +8,7 @@ import net.minecraft.sounds.SoundEvents; import net.minecraft.sounds.SoundSource; import net.minecraft.stats.Stats; +import net.minecraft.tags.ItemTags; import net.minecraft.util.RandomSource; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; @@ -52,6 +53,14 @@ public BrazierBlock(Properties properties) { public InteractionResult use(BlockState blockState, Level level, BlockPos blockPos, Player player, InteractionHand interactionHand, BlockHitResult blockHitResult) { ItemStack itemStack = player.getItemInHand(interactionHand); + if (itemStack.is(ItemTags.SHOVELS)) { + if (blockState.getValue(LIT)) { + dowse(player, level, blockPos, blockState); + level.setBlock(blockPos, blockState.setValue(LIT, false), 11); + return InteractionResult.SUCCESS; + } + } + if(itemStack.getItem() == Items.FLINT_AND_STEEL && !blockState.getValue(LIT)) { itemStack.hurtAndBreak(1, player, (playerEntity) -> { playerEntity.broadcastBreakEvent(interactionHand); }); level.playSound(null, blockPos, SoundEvents.FLINTANDSTEEL_USE, SoundSource.BLOCKS, 1.0F, level.random.nextFloat() * 0.4F + 0.8F);