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

@@ -117,7 +117,7 @@ public class IrisStructureLocateCommandContractTest {
@Test
public void unregisteredDiagnosticExplainsEveryRejectedRoute() {
assertEquals(
"Native structure minecraft:village is disabled by this dimension's importedStructures settings or a module of the pack.",
"Native structure minecraft:village is not imported by this dimension's importedStructures settings or is disabled by a module of the pack.",
CommandFind.describeStructureExclusion(
CommandFind.StructureLookupRoute.POLICY_DISABLED, "minecraft:village",
NativeStructureGenerationStatus.DISABLED_BY_PACK,
@@ -213,7 +213,7 @@ public class IrisStructureLocateCommandContractTest {
@Test
public void findNativePolicyMessagesMatchModdedDiagnostics() {
assertEquals(
"Native structure minecraft:village_plains is disabled by this dimension's importedStructures settings or a module of the pack.",
"Native structure minecraft:village_plains is not imported by this dimension's importedStructures settings or is disabled by a module of the pack.",
NativeStructureGenerationPolicy.generationStatusMessage(
"minecraft:village_plains", NativeStructureGenerationStatus.DISABLED_BY_PACK));
assertEquals(