Snow, sponge & helix tree fixes
This commit is contained in:
parent
4d397e2be7
commit
387e2e5812
4 changed files with 26 additions and 5 deletions
|
@ -1,11 +1,12 @@
|
|||
package ru.betterend.blocks;
|
||||
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.sound.BlockSoundGroup;
|
||||
import ru.betterend.blocks.basis.BlockBase;
|
||||
|
||||
public class BlockDenseSnow extends BlockBase {
|
||||
public BlockDenseSnow() {
|
||||
super(FabricBlockSettings.copyOf(Blocks.SNOW));
|
||||
super(FabricBlockSettings.of(Material.SNOW_BLOCK).strength(0.2F).sounds(BlockSoundGroup.SNOW));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ import ru.betterend.blocks.basis.BlockBaseNotFull;
|
|||
import ru.betterend.client.render.ERenderLayer;
|
||||
import ru.betterend.interfaces.IRenderTypeable;
|
||||
import ru.betterend.registry.EndBlocks;
|
||||
import ru.betterend.util.BlocksHelper;
|
||||
|
||||
public class BlockMengerSpongeWet extends BlockBaseNotFull implements IRenderTypeable {
|
||||
public BlockMengerSpongeWet() {
|
||||
|
@ -78,6 +79,12 @@ public class BlockMengerSpongeWet extends BlockBaseNotFull implements IRenderTyp
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) {
|
||||
super.onBreak(world, pos, state, player);
|
||||
BlocksHelper.setWithUpdate(world, pos, Blocks.AIR);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ERenderLayer getRenderLayer() {
|
||||
return ERenderLayer.CUTOUT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue