From 62714f771b6ba39b7e2cfa6f9edbf49c2260fcab Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 3 Sep 2021 00:47:48 +0200 Subject: [PATCH] Require pickaxe for mining rocks --- src/main/java/com/minelittlepony/unicopia/block/UBlocks.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java b/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java index 3b356266..790198bb 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java +++ b/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java @@ -2,6 +2,7 @@ package com.minelittlepony.unicopia.block; import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; import net.fabricmc.fabric.api.object.builder.v1.block.FabricMaterialBuilder; +import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags; import net.minecraft.block.Block; import net.minecraft.block.MapColor; import net.minecraft.sound.BlockSoundGroup; @@ -12,6 +13,8 @@ public interface UBlocks { Block ROCKS = register("rocks", new RockCropBlock(FabricBlockSettings.of( new FabricMaterialBuilder(MapColor.STONE_GRAY).allowsMovement().lightPassesThrough().notSolid().destroyedByPiston().build() ) + .breakByTool(FabricToolTags.PICKAXES) + .requiresTool() .ticksRandomly() .strength(2) .sounds(BlockSoundGroup.STONE)));