baby_turtle hitbox fix
This commit is contained in:
@@ -25,14 +25,10 @@ public class babyTurtleBlock extends HorizontalDirectionalBlock {
|
|||||||
private ImmutableMap<BlockState, VoxelShape> makeShapes() {
|
private ImmutableMap<BlockState, VoxelShape> makeShapes() {
|
||||||
return this.getShapeForEachState(state -> {
|
return this.getShapeForEachState(state -> {
|
||||||
return switch (state.getValue(FACING)) {
|
return switch (state.getValue(FACING)) {
|
||||||
case NORTH -> Shapes.or(box(6.46339, 0, 7.13839, 9.46339, 2, 10.13839), box(6.96339, 2, 9.88839, 8.96339, 2.5, 10.38839), box(6.96339, 0.5, 10.13839, 8.96339, 2, 10.63839), box(9.46339, 1, 7.88839, 9.96339, 2, 9.88839),
|
case NORTH -> Shapes.or(box(6.5, 0.1, 4, 9.5, 3.1, 7), box(6, 0.1, 7, 10, 2.1, 11));
|
||||||
box(5.96339, 1, 7.88839, 6.46339, 2, 9.88839), box(6.96339, 1.5, 5.63839, 8.96339, 3.5, 7.63839), box(7.46339, 1.75, 5.13839, 8.46339, 2.25, 6.13839));
|
case EAST -> Shapes.or(box(9, 0.1, 6.5, 12, 3.1, 9.5), box(5, 0.1, 6, 9, 2.1, 10));
|
||||||
case EAST -> Shapes.or(box(5.86161, 0, 6.46339, 8.86161, 2, 9.46339), box(5.61161, 2, 6.96339, 6.11161, 2.5, 8.96339), box(5.36161, 0.5, 6.96339, 5.86161, 2, 8.96339), box(6.11161, 1, 9.46339, 8.11161, 2, 9.96339),
|
case WEST -> Shapes.or(box(4, 0.1, 6.5, 7, 3.1, 9.5), box(7, 0.1, 6, 11, 2.1, 10));
|
||||||
box(6.11161, 1, 5.96339, 8.11161, 2, 6.46339), box(8.36161, 1.5, 6.96339, 10.36161, 3.5, 8.96339), box(9.86161, 1.75, 7.46339, 10.86161, 2.25, 8.46339));
|
default -> Shapes.or(box(6.5, 0.1, 9, 9.5, 3.1, 12), box(6, 0.1, 5, 10, 2.1, 9));
|
||||||
case WEST -> Shapes.or(box(7.13839, 0, 6.53661, 10.13839, 2, 9.53661), box(9.88839, 2, 7.03661, 10.38839, 2.5, 9.03661), box(10.13839, 0.5, 7.03661, 10.63839, 2, 9.03661), box(7.88839, 1, 6.03661, 9.88839, 2, 6.53661),
|
|
||||||
box(7.88839, 1, 9.53661, 9.88839, 2, 10.03661), box(5.63839, 1.5, 7.03661, 7.63839, 3.5, 9.03661), box(5.13839, 1.75, 7.53661, 6.13839, 2.25, 8.53661));
|
|
||||||
default -> Shapes.or(box(6.53661, 0, 5.86161, 9.53661, 2, 8.86161), box(7.03661, 2, 5.61161, 9.03661, 2.5, 6.11161), box(7.03661, 0.5, 5.36161, 9.03661, 2, 5.86161), box(6.03661, 1, 6.11161, 6.53661, 2, 8.11161),
|
|
||||||
box(9.53661, 1, 6.11161, 10.03661, 2, 8.11161), box(7.03661, 1.5, 8.36161, 9.03661, 3.5, 10.36161), box(7.53661, 1.75, 9.86161, 8.53661, 2.25, 10.86161));
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user