Make native structure imports opt-in and mark them experimental

A dimension without importedStructures no longer gets vanilla, mod or
datapack structures in new chunks. Declaring the setting imports them,
and disabled/disabledExact still narrow it down. Iris placements that
place a vanilla structure themselves work without it.

The feature is named "Structures (experimental)" and its description
says so. The locate message for a blocked structure now says it is not
imported by importedStructures or is disabled by a pack module.
This commit is contained in:
piexel committed 2026-11-11 18:05:46 +01:00
1 parent 5915a968ff
commit e9b80420de
6 files changed
+55 -14

No files matched your search

@@ -61,7 +61,7 @@ public final class NativeStructureGenerationPolicy {
return switch (Objects.requireNonNull(status, "Native structure status must not be null")) {
case GENERATE_NATIVE -> "Native structure " + key + " generates natively.";
case DISABLED_BY_PACK -> "Native structure " + key
+ " is disabled by this dimension's importedStructures settings or a module of the pack.";
+ " is not imported by this dimension's importedStructures settings or is disabled by a module of the pack.";
case REPLACED_BY_IRIS -> "Native structure " + key
+ " is replaced by an Iris placement in this pack and locates through that explicit replacement.";
case INVALID_REGISTRY_KEY -> "Native structure registry key is invalid: " + key;