Bubble coral update
This commit is contained in:
parent
67f0dac3be
commit
29d8a7e39b
10 changed files with 367 additions and 17 deletions
24
src/main/java/ru/betterend/blocks/BlockBubbleCoral.java
Normal file
24
src/main/java/ru/betterend/blocks/BlockBubbleCoral.java
Normal 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;
|
||||
}
|
||||
}
|
|
@ -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) {
|
||||
|
|
|
@ -11,6 +11,7 @@ import ru.betterend.blocks.AuroraCrystalBlock;
|
|||
import ru.betterend.blocks.BlockBlueVine;
|
||||
import ru.betterend.blocks.BlockBlueVineLantern;
|
||||
import ru.betterend.blocks.BlockBlueVineSeed;
|
||||
import ru.betterend.blocks.BlockBubbleCoral;
|
||||
import ru.betterend.blocks.BlockEndstoneDust;
|
||||
import ru.betterend.blocks.BlockGlowingMoss;
|
||||
import ru.betterend.blocks.BlockMossyGlowshroomCap;
|
||||
|
@ -26,7 +27,6 @@ import ru.betterend.blocks.EndStoneSmelter;
|
|||
import ru.betterend.blocks.EnderBlock;
|
||||
import ru.betterend.blocks.TerminiteBlock;
|
||||
import ru.betterend.blocks.basis.BlockGlowingFur;
|
||||
import ru.betterend.blocks.basis.BlockUnderwaterPlant;
|
||||
import ru.betterend.blocks.basis.BlockVine;
|
||||
import ru.betterend.blocks.complex.WoodenMaterial;
|
||||
import ru.betterend.tab.CreativeTab;
|
||||
|
@ -59,7 +59,7 @@ public class BlockRegistry {
|
|||
public static final Block BLUE_VINE_LANTERN = registerBlock("blue_vine_lantern", new BlockBlueVineLantern());
|
||||
public static final Block BLUE_VINE_FUR = registerBlock("blue_vine_fur", new BlockGlowingFur(BLUE_VINE_SEED, 3));
|
||||
|
||||
public static final Block BUBBLE_CORAL = registerBlock("bubble_coral", new BlockUnderwaterPlant(12));
|
||||
public static final Block BUBBLE_CORAL = registerBlock("bubble_coral", new BlockBubbleCoral());
|
||||
|
||||
// Vines //
|
||||
public static final Block DENSE_VINE = registerBlock("dense_vine", new BlockVine(15, true));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue