mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Require pickaxe for mining rocks
This commit is contained in:
parent
430ee9a85e
commit
62714f771b
1 changed files with 3 additions and 0 deletions
|
@ -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.FabricBlockSettings;
|
||||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricMaterialBuilder;
|
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.Block;
|
||||||
import net.minecraft.block.MapColor;
|
import net.minecraft.block.MapColor;
|
||||||
import net.minecraft.sound.BlockSoundGroup;
|
import net.minecraft.sound.BlockSoundGroup;
|
||||||
|
@ -12,6 +13,8 @@ public interface UBlocks {
|
||||||
Block ROCKS = register("rocks", new RockCropBlock(FabricBlockSettings.of(
|
Block ROCKS = register("rocks", new RockCropBlock(FabricBlockSettings.of(
|
||||||
new FabricMaterialBuilder(MapColor.STONE_GRAY).allowsMovement().lightPassesThrough().notSolid().destroyedByPiston().build()
|
new FabricMaterialBuilder(MapColor.STONE_GRAY).allowsMovement().lightPassesThrough().notSolid().destroyedByPiston().build()
|
||||||
)
|
)
|
||||||
|
.breakByTool(FabricToolTags.PICKAXES)
|
||||||
|
.requiresTool()
|
||||||
.ticksRandomly()
|
.ticksRandomly()
|
||||||
.strength(2)
|
.strength(2)
|
||||||
.sounds(BlockSoundGroup.STONE)));
|
.sounds(BlockSoundGroup.STONE)));
|
||||||
|
|
Loading…
Reference in a new issue