Custom Trees Generate Underwater

Started by A Peace Of Pie Mods on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Trees Generate Underwater

So, I am trying to make a swamp-like biome with lots of puddles, lakes, streams, etc. But the problem is - I want to make trees generate in water only if it (water) is 4 blocks deep, and not generate if the water source is deeper than that. Can someone help me with that? I've been trying to do that myself via conditions but the trees just generate underwater anyway or not generate at all.

Thanks in advance. :)

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
perhaps use structures, and…
Mon, 07/10/2023 - 18:48

perhaps use structures, and use the "additional condition" to make sure its only 4 blocks deep?

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Umm- yeah I know but- how do…
Thu, 07/27/2023 - 13:24

Umm- yeah I know but- how do I do that?

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello!  You could take the…
Thu, 07/27/2023 - 14:05

Hello! 

You could take the sea level[which is 63] -4, which would be 59, and just have the additional condition be Return Y > 59

Another thing you could do is to check if the block at Y+5 is a water block, and if true return False

Hope this helps!