2nd try at submitting; hopefully WEB-1087 won't happen this time.
Currently there are only three options for spawning custom template pools, each of which causes the game to treat it as a specific type of structure that it very well might not be. You can have the game treat your custom structure as either a village, a pillager outpost, or a bastion remnant.
Villages and pillager outposts will only spawn on the topmost ground of the world, which makes them unusable in any dimension with a ceiling. While I haven't tested this to verify, I assume they also have the side effects of triggering raids and spawning pillagers respectively. (Edit: not triggering raids actually.)
The other option is to treat it as a bastion remnant. In this case, it will always spawn at y=31, so it will work in caves. But if you want it to spawn at a different height, you'll need to work around it somehow, using structure_voids and/or terrain_matching. (And the one time I tried it, it didn't even work, though it's likely I just messed up somehow.) It also has the side effect of giving the "Those Were the Days" advancement when you enter the structure, though that's a more minor side effect than the other two.
Finally, things can become tricky if you want multiple types of structures to spawn in a biome, with different spawning rules.
I'd be surprised if this isn't planned already, but I thought I'd suggest it here just in case: there should be a generic type, with configurable options for placement rules.
Please sign in to leave a comment.
1 Comments