Bubble coral update

This commit is contained in:
paulevsGitch 2020-10-08 19:43:54 +03:00
parent 67f0dac3be
commit 29d8a7e39b
10 changed files with 367 additions and 17 deletions

View file

@ -0,0 +1,24 @@
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.block.AbstractBlock;
import net.minecraft.block.Material;
import net.minecraft.sound.BlockSoundGroup;
import ru.betterend.blocks.basis.BlockUnderwaterPlant;
public class BlockBubbleCoral extends BlockUnderwaterPlant {
public BlockBubbleCoral() {
super(FabricBlockSettings.of(Material.UNDERWATER_PLANT)
.breakByTool(FabricToolTags.SHEARS)
.sounds(BlockSoundGroup.CORAL)
.breakByHand(true)
.lightLevel(12)
.noCollision());
}
@Override
public AbstractBlock.OffsetType getOffsetType() {
return AbstractBlock.OffsetType.NONE;
}
}

View file

@ -58,6 +58,10 @@ public class BlockUnderwaterPlant extends BlockBaseNotFull implements IRenderTyp
.breakByHand(true)
.noCollision());
}
public BlockUnderwaterPlant(Settings settings) {
super(settings);
}
@Override
public VoxelShape getOutlineShape(BlockState state, BlockView view, BlockPos pos, ShapeContext ePos) {