Glowing grasslands update

This commit is contained in:
paulevsGitch 2021-01-20 18:08:36 +03:00
parent 31163e7658
commit 77c56433cc
57 changed files with 382 additions and 107 deletions

View file

@ -121,9 +121,10 @@ public class BlockProperties {
}
public static enum LumecornShape implements StringIdentifiable {
LIGHT1("light1", 15),
LIGHT2("light2", 14),
LIGHT3("light3", 13),
LIGHT_TOP("light_top", 10),
LIGHT_TOP_MIDDLE("light_top_middle", 13),
LIGHT_MIDDLE("light_middle", 15),
LIGHT_BOTTOM("light_bottom", 10),
MIDDLE("middle", 0),
BOTTOM_BIG("bottom_big", 0),
BOTTOM_SMALL("bottom_small", 0);

View file

@ -46,10 +46,10 @@ public class LumecornBlock extends BaseBlockNotFull implements IRenderTypeable {
@Override
public VoxelShape getOutlineShape(BlockState state, BlockView view, BlockPos pos, ShapeContext ePos) {
LumecornShape shape = state.get(SHAPE);
if (shape == LumecornShape.LIGHT3) {
if (shape == LumecornShape.LIGHT_MIDDLE) {
return SHAPE_SMALL;
}
else if (shape == LumecornShape.LIGHT2) {
else if (shape == LumecornShape.LIGHT_TOP_MIDDLE) {
return SHAPE_MEDIUM;
}
else {