Change radio model

This commit is contained in:
Andrew-71 2023-10-18 23:36:50 +03:00
parent c78eba73b0
commit 3f6d2f2be5
9 changed files with 217 additions and 63 deletions

View file

@ -28,8 +28,8 @@ public class RadioReceiverBlock extends HorizontalFacingBlock {
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext ctx) {
Direction dir = state.get(FACING);
return switch (dir) {
case NORTH, SOUTH -> VoxelShapes.cuboid(0.0625f, 0.0f, 0.3125f, 0.9375f, 0.5625f, 0.6875f);
case EAST, WEST -> VoxelShapes.cuboid(0.3125f, 0.0f, 0.0625f, 0.6875f, 0.5625f, 0.9375f);
case NORTH, SOUTH -> Block.createCuboidShape(2, 0, 5, 14, 8, 11);
case EAST, WEST -> Block.createCuboidShape(5, 0, 2, 11, 8, 14);
default -> VoxelShapes.fullCube();
};
}