How do I make a block spawn only next to water?

Started by .-pluto-. on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a block spawn only next to water?

I'm trying to make an ore that spawns only in water, but I'm not very adept when it comes to code. I've tried setting the biomes it can spawn in to only oceans, but it still spawns in caves. Could someone help me out?

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could try changing theā€¦
Sun, 01/14/2024 - 19:18

you could try changing the blocks it can transform, usually the block will be stone and it's other counterparts, however you could remove those and make it a water block, this should be in the generations tab with the world chunk graphic, hope this helped.