Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static final SurfaceRules.RuleSource TIDE_POOL = SurfaceRules.ifTrue(SurfaceRules.isBiome(BOBiomesRK.TIDE_POOL),
- //Check if continentalness is not too high so we dont get weird landscape in the middle of a jungle
- // SurfaceRules.ifTrue(SurfaceRules.not( SurfaceRules.noiseCondition(Noises.CONTINENTALNESS, 0.0,1.0)),
- SurfaceRules.sequence(
- //Make sure ceiling blocks dont spawn above y 63
- SurfaceRules.ifTrue(SurfaceRules.ON_CEILING,
- SurfaceRules.ifTrue(SurfaceRules.not(ABOVE_63),
- SEASTONE)),
- //Above y 64 only air also
- SurfaceRules.ifTrue(ABOVE_64, AIR),
- //Between y 64 and 61 use noise to get the landscape we want
- between(64, 61, SurfaceRules.sequence(SurfaceRules.ifTrue(SurfaceRules.noiseCondition(Noises.SWAMP, 0.075D), SurfaceRules.sequence(TIDE_ROCK)),
- between(63, 61, SurfaceRules.ifTrue(SurfaceRules.noiseCondition(Noises.SWAMP, 0.035D), SurfaceRules.sequence(TIDE_ROCK))),
- between(62, 61, SurfaceRules.ifTrue(SurfaceRules.noiseCondition(Noises.SWAMP, 0.00D), SEASTONE)),
- between(62, 61, SurfaceRules.ifTrue(SurfaceRules.noiseCondition(Noises.SWAMP, -0.025D), GRAVEL)),
- between(63, 61, SurfaceRules.ifTrue(SurfaceRules.noiseCondition(Noises.ICE, 0.25D), TIDE_ROCK)),
- between(62, 61, SurfaceRules.ifTrue(SurfaceRules.noiseCondition(Noises.ICE, 0.0D), TIDE_ROCK))
- //If nothing else has to spawn we put air above y 63
- , SurfaceRules.ifTrue(ABOVE_63, AIR),
- //If all else is done we put water in
- WATER)),
- //The final touches for the normal blocks this can be changed to w/e
- //Check if y level is not above y 61 then we will put green wool
- SurfaceRules.ifTrue(SurfaceRules.not(ABOVE_61), SAND),
- //Just Test
- SurfaceRules.ifTrue(SurfaceRules.steep(),RW),
- //Finally if we missed anything we just put sand
- SAND));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement