35 lines
1.1 KiB
Java
35 lines
1.1 KiB
Java
package ru.betterend.blocks;
|
|
|
|
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
|
import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags;
|
|
import net.minecraft.core.BlockPos;
|
|
import net.minecraft.world.entity.Entity;
|
|
import net.minecraft.world.level.Level;
|
|
import net.minecraft.world.level.block.SoundType;
|
|
import net.minecraft.world.level.block.state.BlockState;
|
|
import net.minecraft.world.level.material.Material;
|
|
import net.minecraft.world.level.material.MaterialColor;
|
|
import ru.bclib.blocks.BaseBlock;
|
|
|
|
public class HydraluxPetalBlock extends BaseBlock {
|
|
public HydraluxPetalBlock() {
|
|
this(
|
|
FabricBlockSettings
|
|
.of(Material.PLANT)
|
|
.breakByTool(FabricToolTags.AXES)
|
|
.breakByHand(true)
|
|
.hardness(1)
|
|
.resistance(1)
|
|
.mapColor(MaterialColor.PODZOL)
|
|
.sound(SoundType.WART_BLOCK)
|
|
);
|
|
}
|
|
|
|
public HydraluxPetalBlock(Properties settings) {
|
|
super(settings);
|
|
}
|
|
|
|
@Override
|
|
public void fallOn(Level level, BlockState blockState, BlockPos blockPos, Entity entity, float f) {
|
|
}
|
|
}
|