How to make a feature/structure only spawn on specific chunk coordinates?

Started by NonoyaBusiness on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a feature/structure only spawn on specific chunk coordinates?

I'm making a custom checkerboard biome and I need to make sure the checkerboard doesn't get offset. How do i do that?

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i plan on doing something…
Tue, 07/29/2025 - 13:39

i plan on doing something similiar for my mod someday. you can make a chessboard block, thats black and white colored, and is used as grass block for that biome, or as floor for the structures. on block update, check if absolute(x+z)MOD2 is 0, replace itself with white block, else, replace itself with black block.