#How To Make A Structure A Unary Structure

1 messages · Page 1 of 1 (latest)

jagged oriole
#

I'm trying to create structures that will only appear once in any given world, similar to the Stronghold. How would I do that?

obsidian plazaBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1724091252:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

echo rock
#

use the concentric rings generation type

#

I think

sharp walrus
#

Well

#

So strongholds don't generate once in a given world, they generate exactly 128 times

sharp walrus
#

You can make a structure generate only once, but it will always be at the center of the world

echo rock
#

you can do it using a load function tho

#

you can use the place function to place a structure

#

and have that structure not generate

sharp walrus
#

hmm oh wait

echo rock
#

using macros, you can load those chunks

sharp walrus
#

I was misremembering, the count field is the total number that will spawn, not the number per ring like I thought

echo rock
#

oh

#

so it does work

jagged oriole
#

lets the people talk

echo rock
sharp walrus
#

So yeah you can do just one. You'll use the concentric_rings spread type in your structure_set file, with a count of 1 and whatever spread and distance value you want

jagged oriole
#

And it won't always generate in the same place?

#

(coordinate wise)

echo rock
#

nope

sharp walrus
#

No, but it may always generate in the same circular coordinate range

#

Probably in what would be the first "ring"

sharp walrus
#

But whether that's positive/negative X/Z will still vary

echo rock
#

but if you set the distance values very high you wouldn't notice it

sharp walrus
#

You can learn more about how the concentric_rings placement type works here
https://minecraft.wiki/w/Structure_set

Minecraft Wiki

A structure set is used to determine the position of structures in the world during world generation. They are configured using JSON files stored within a data pack in the path data/<namespace>/worldgen/structure_set. Structure sets are not referenced in a dimension or biome. Instead, the existence of the resource is enough to make the structure...

jagged oriole
#

I'll definitely look into it. Thank you both.

echo rock
#

np

obsidian plazaBOT
obsidian plazaBOT
# obsidian plaza
Question Closed

Your question, #1275148323392848015 (How To Make A Structure A Unary Structure), was resolved!

Original Message

#1275148323392848015 message

Duration open

15m

jagged oriole
#

Spread: How many attempts are on the closest ring to spawn. Value between 0 and 1023 (inclusive). The number of attempts on the Nth ring is: spread * (N^2 + 3 * N + 2) / 6, until the number of attempts reaches the total count.

Would I be reading this correctly if I interpreted it as "if you set spread to 0, it will never attempt to place the structure"? given that

0 *<anything> = 0?

obsidian plazaBOT
jagged oriole
#

Having considered this, and done the math, I'll probably just use the Stronghold spawning mechanics. 1 Stronghold per 28,125,000 sq kilometers seems reasonable. O.O

My lord I'd never even considered it in that scale... It's freaking ginormous.

obsidian plazaBOT