let $ILostChunkInfo = Java.loadClass("mcjty.lostcities.api.ILostChunkInfo")
function rollDice(x) {
if (x <= 0) {
throw new Error("The maximum value must be greater than 0.");
}
return Math.floor(Math.random() * x) + 1;
}
MoreJSEvents.structureLoad((event) => {
//need city to be a bool that knows whether or not a city is here
if (city){
event.cancel()
}
})
//Dev posted here with some details
https://www.reddit.com/r/feedthebeast/comments/6oewy3/psa_worldgen_playing_nicely_with_the_lost_cities/
Lost Cities has an issue where structures placed in areas already occupied by cities override each other, creating a huge mess. I want to prevent my structures from spawning in these cities. The problem is, as far as I know, there's no way to get the chunk coordinates (ChunkX and ChunkZ) for the structures, so I can't check them against the locations of Lost Cities' cities.
