but I have too little experience, what i did wrong?
public class StaircaseBlock extends Block {
public static final DirectionProperty FACING = HorizontalFacingBlock.FACING;
private final Block baseBlock;
private final BlockState baseBlockState;
private static final VoxelShape SHAPE = VoxelShapes.cuboid(
0.0, 0.0, 0.0,
1.0, 0.5, 1.0);
private static final VoxelShape NORTH_SHAPE = VoxelShapes.cuboid(
0.0, 0.0, 0.0,
1.0, 1.0, 0.5);
private static final VoxelShape SOUTH_SHAPE = VoxelShapes.cuboid(
0.0, 0.0, 0.5,
1.0, 1.0, 0.5);
private static final VoxelShape WEST_SHAPE = VoxelShapes.cuboid(
0.0, 0.0, 0.0,
0.5, 1.0, 1.0);
private static final VoxelShape EAST_SHAPE = VoxelShapes.cuboid(
0.5, 0.0, 0.0,
0.5, 1.0, 1.0);
public StaircaseBlock(BlockState baseBlockState, AbstractBlock.Settings settings) {
super(settings);
MrMyronsFurnitureMod.LOGGER.info( "43125" );
this.setDefaultState(
this.stateManager
.getDefaultState()
.with(FACING, Direction.NORTH)
);
this.baseBlock = baseBlockState.getBlock();
this.baseBlockState = baseBlockState;
}
@Override
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) {
//MrMyronsFurnitureMod.LOGGER.info( "" + state.get(FACING).getHorizontal() );
return SHAPE;
}
@Override
public BlockRenderType getRenderType(BlockState state) {
return BlockRenderType.MODEL;
}
}
when i run it says Caused by: java.lang.IllegalArgumentException: Cannot set property DirectionProperty{name=facing, clazz=class net.minecraft.util.math.Direction, values=[north, south, west, east]} as it does not exist in Block{minecraft:air}