Require pickaxe for mining rocks

This commit is contained in:
Sollace 2021-09-03 00:47:48 +02:00
parent 430ee9a85e
commit 62714f771b

View file

@ -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)));