Finished tree shape

This commit is contained in:
paulevsGitch 2021-01-12 18:33:16 +03:00
parent 418f048ed3
commit 34318e283b
19 changed files with 120 additions and 137 deletions

View file

@ -63,7 +63,7 @@ public class StructureGiantIceStar extends SDFStructureFeature {
final BlockState ancient = EndBlocks.ANCIENT_EMERALD_ICE.getDefaultState();
final SDF sdfCopy = sdf;
return sdf.setPostProcess((info) -> {
return sdf.addPostProcess((info) -> {
BlockPos bpos = info.getPos();
float px = bpos.getX() - center.getX();
float py = bpos.getY() - center.getY();

View file

@ -88,7 +88,7 @@ public class StructureGiantMossyGlowshroom extends SDFStructureFeature {
return new SDFRound().setRadius(1.5F).setSource(new SDFScale()
.setScale(scale)
.setSource(function))
.setPostProcess((info) -> {
.addPostProcess((info) -> {
if (EndBlocks.MOSSY_GLOWSHROOM.isTreeLog(info.getState())) {
if (random.nextBoolean() && info.getStateUp().getBlock() == EndBlocks.MOSSY_GLOWSHROOM_CAP) {
info.setState(EndBlocks.MOSSY_GLOWSHROOM_CAP.getDefaultState().with(MossyGlowshroomCapBlock.TRANSITION, true));