Pillar model fix

This commit is contained in:
paulevsGitch 2020-11-08 02:03:23 +03:00
parent 76804a4f09
commit ef70376ed4
4 changed files with 6 additions and 2 deletions

View file

@ -165,7 +165,7 @@ public class BlockPedestal extends BlockBaseNotFull implements BlockEntityProvid
boolean hasPedestalOver = upState.getBlock() instanceof BlockPedestal; boolean hasPedestalOver = upState.getBlock() instanceof BlockPedestal;
boolean hasPedestalUnder = downState.getBlock() instanceof BlockPedestal; boolean hasPedestalUnder = downState.getBlock() instanceof BlockPedestal;
if (direction == Direction.UP) { if (direction == Direction.UP) {
upSideSolid = newState.isSideSolidFullSquare(world, posFrom, Direction.DOWN); upSideSolid = newState.isSideSolidFullSquare(world, posFrom, Direction.DOWN) || newState.isIn(BlockTags.WALLS);
hasPedestalOver = newState.getBlock() instanceof BlockPedestal; hasPedestalOver = newState.getBlock() instanceof BlockPedestal;
} else if (direction == Direction.DOWN) { } else if (direction == Direction.DOWN) {
hasPedestalUnder = newState.getBlock() instanceof BlockPedestal; hasPedestalUnder = newState.getBlock() instanceof BlockPedestal;

View file

@ -4,6 +4,7 @@ import net.minecraft.entity.EntityType;
import net.minecraft.particle.ParticleTypes; import net.minecraft.particle.ParticleTypes;
import net.minecraft.world.gen.feature.ConfiguredStructureFeatures; import net.minecraft.world.gen.feature.ConfiguredStructureFeatures;
import ru.betterend.registry.EndBlocks; import ru.betterend.registry.EndBlocks;
import ru.betterend.registry.EndEntities;
import ru.betterend.registry.EndFeatures; import ru.betterend.registry.EndFeatures;
import ru.betterend.registry.EndSounds; import ru.betterend.registry.EndSounds;
@ -31,7 +32,8 @@ public class BiomeShadowForest extends EndBiome {
.addFeature(EndFeatures.TAIL_MOSS) .addFeature(EndFeatures.TAIL_MOSS)
.addFeature(EndFeatures.TAIL_MOSS_WOOD) .addFeature(EndFeatures.TAIL_MOSS_WOOD)
.addStructureFeature(ConfiguredStructureFeatures.END_CITY) .addStructureFeature(ConfiguredStructureFeatures.END_CITY)
.addMobSpawn(EntityType.ENDERMAN, 80, 1, 4) .addMobSpawn(EntityType.ENDERMAN, 40, 1, 4)
.addMobSpawn(EndEntities.SHADOW_WALKER, 80, 2, 4)
.addMobSpawn(EntityType.PHANTOM, 1, 1, 2)); .addMobSpawn(EntityType.PHANTOM, 1, 1, 2));
} }
} }

View file

@ -58,6 +58,7 @@
"to": [ 15, 16, 15 ], "to": [ 15, 16, 15 ],
"faces": { "faces": {
"down": { "uv": [ 1, 1, 15, 15 ], "texture": "#base" }, "down": { "uv": [ 1, 1, 15, 15 ], "texture": "#base" },
"up": { "uv": [ 1, 1, 15, 15 ], "texture": "#base", "cullface": "up" },
"north": { "uv": [ 1, 14, 15, 16 ], "texture": "#base" }, "north": { "uv": [ 1, 14, 15, 16 ], "texture": "#base" },
"south": { "uv": [ 1, 14, 15, 16 ], "texture": "#base" }, "south": { "uv": [ 1, 14, 15, 16 ], "texture": "#base" },
"west": { "uv": [ 1, 14, 15, 16 ], "texture": "#base" }, "west": { "uv": [ 1, 14, 15, 16 ], "texture": "#base" },

View file

@ -33,6 +33,7 @@
"to": [ 15, 16, 15 ], "to": [ 15, 16, 15 ],
"faces": { "faces": {
"down": { "uv": [ 1, 1, 15, 15 ], "texture": "#base" }, "down": { "uv": [ 1, 1, 15, 15 ], "texture": "#base" },
"up": { "uv": [ 1, 1, 15, 15 ], "texture": "#base", "cullface": "up" },
"north": { "uv": [ 1, 14, 15, 16 ], "texture": "#base" }, "north": { "uv": [ 1, 14, 15, 16 ], "texture": "#base" },
"south": { "uv": [ 1, 14, 15, 16 ], "texture": "#base" }, "south": { "uv": [ 1, 14, 15, 16 ], "texture": "#base" },
"west": { "uv": [ 1, 14, 15, 16 ], "texture": "#base" }, "west": { "uv": [ 1, 14, 15, 16 ], "texture": "#base" },