Advertisement
Scouter456

Untitled

Jul 4th, 2023 (edited)
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.31 KB | None | 0 0
  1. private static final SurfaceRules.RuleSource TIDE_POOL = SurfaceRules.ifTrue(SurfaceRules.isBiome(BOBiomesRK.TIDE_POOL),
  2.             //Check if continentalness is not too high so we dont get weird landscape in the middle of a jungle
  3.             // SurfaceRules.ifTrue(SurfaceRules.not( SurfaceRules.noiseCondition(Noises.CONTINENTALNESS, 0.0,1.0)),
  4.             SurfaceRules.sequence(
  5.                     //Make sure ceiling blocks dont spawn above y 63
  6.                     SurfaceRules.ifTrue(SurfaceRules.ON_CEILING,
  7.                             SurfaceRules.ifTrue(SurfaceRules.not(ABOVE_63),
  8.                                     SEASTONE)),
  9.                     //Above y 64 only air also
  10.                     SurfaceRules.ifTrue(ABOVE_64, AIR),
  11.                     //Between y 64 and 61 use noise to get the landscape we want
  12.                     between(64, 61, SurfaceRules.sequence(SurfaceRules.ifTrue(SurfaceRules.noiseCondition(Noises.SWAMP, 0.075D), SurfaceRules.sequence(TIDE_ROCK)),
  13.                             between(63, 61, SurfaceRules.ifTrue(SurfaceRules.noiseCondition(Noises.SWAMP, 0.035D), SurfaceRules.sequence(TIDE_ROCK))),
  14.                             between(62, 61, SurfaceRules.ifTrue(SurfaceRules.noiseCondition(Noises.SWAMP, 0.00D), SEASTONE)),
  15.                             between(62, 61, SurfaceRules.ifTrue(SurfaceRules.noiseCondition(Noises.SWAMP, -0.025D), GRAVEL)),
  16.                             between(63, 61, SurfaceRules.ifTrue(SurfaceRules.noiseCondition(Noises.ICE, 0.25D), TIDE_ROCK)),
  17.                             between(62, 61, SurfaceRules.ifTrue(SurfaceRules.noiseCondition(Noises.ICE, 0.0D), TIDE_ROCK))
  18.                             //If nothing else has to spawn we put air above y 63
  19.                             , SurfaceRules.ifTrue(ABOVE_63, AIR),
  20.                             //If all else is done we put water in
  21.                             WATER)),
  22.                     //The final touches for the normal blocks this can be changed to w/e
  23.                     //Check if y level is not above y 61 then we will put green wool
  24.                     SurfaceRules.ifTrue(SurfaceRules.not(ABOVE_61), SAND),
  25.                     //Just Test
  26.                     SurfaceRules.ifTrue(SurfaceRules.steep(),RW),
  27.                     //Finally if we missed anything we just put sand
  28.                     SAND));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement