I am trying to create a custom world generation plugin, and currently the generation for worlds is working. However, I am trying to create a specific world generator which is a flat world, but at 16 chunk intervals there is a random structure. The structures also work. I have no idea how I could make a structure appear every 16 chunks though.
"work"?? you could do it like every X chunk there MUST be a structure or like every time before spawning a structure make sure there's none in X chunks near you probably need to reference how PC did their generations and somehow port that to PMMP sorry i have no clue how and neither most people either
I figured out what I need. I completely forgot about the % operator :O All I needed to do was check if chunkx % 16 === 0 and chunkz % 16 === 0 which would create a recursive pattern so each structure would generate exactly 16 chunks apart.