Amaranita additional blocks & lang, texture refactoring
This commit is contained in:
parent
d32eae2c06
commit
2fd19ac328
28 changed files with 192 additions and 77 deletions
|
@ -5,8 +5,8 @@ import net.minecraft.block.Blocks;
|
|||
import net.minecraft.block.MaterialColor;
|
||||
import ru.betterend.blocks.basis.EndPillarBlock;
|
||||
|
||||
public class AmaranitaHyphaeBlock extends EndPillarBlock {
|
||||
public AmaranitaHyphaeBlock() {
|
||||
public class AmaranitaStemBlock extends EndPillarBlock {
|
||||
public AmaranitaStemBlock() {
|
||||
super(FabricBlockSettings.copyOf(Blocks.OAK_PLANKS).materialColor(MaterialColor.LIME));
|
||||
}
|
||||
}
|
|
@ -6,8 +6,8 @@ import net.minecraft.block.Material;
|
|||
import net.minecraft.sound.BlockSoundGroup;
|
||||
import ru.betterend.blocks.basis.BlockBase;
|
||||
|
||||
public class MossyGlowshroomHymenophoreBlock extends BlockBase {
|
||||
public MossyGlowshroomHymenophoreBlock() {
|
||||
public class GlowingHymenophoreBlock extends BlockBase {
|
||||
public GlowingHymenophoreBlock() {
|
||||
super(FabricBlockSettings.of(Material.WOOD).breakByTool(FabricToolTags.AXES).sounds(BlockSoundGroup.WART_BLOCK).luminance(15));
|
||||
}
|
||||
}
|
|
@ -1,7 +1,11 @@
|
|||
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.Block;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.sound.BlockSoundGroup;
|
||||
import net.minecraft.state.StateManager;
|
||||
import net.minecraft.state.property.EnumProperty;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
|
@ -13,6 +17,15 @@ import ru.betterend.registry.EndBlocks;
|
|||
public class LargeAmaranitaBlock extends EndPlantBlock {
|
||||
public static final EnumProperty<TripleShape> SHAPE = BlockProperties.TRIPLE_SHAPE;
|
||||
|
||||
public LargeAmaranitaBlock() {
|
||||
super(FabricBlockSettings.of(Material.PLANT)
|
||||
.luminance((state) -> (state.get(SHAPE) == TripleShape.TOP) ? 15 : 0)
|
||||
.breakByTool(FabricToolTags.SHEARS)
|
||||
.sounds(BlockSoundGroup.GRASS)
|
||||
.breakByHand(true)
|
||||
.noCollision());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isTerrain(BlockState state) {
|
||||
return state.getBlock() == EndBlocks.SANGNUM;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue