From 6757cbdd0f3e915ba55daa666bf3954013c52d0f Mon Sep 17 00:00:00 2001 From: piexel Date: Sat, 10 Oct 2026 08:05:00 +0200 Subject: [PATCH] Reference.TEMPLATE_POOL: JigsawOverrides.startPool names one of the platform's template pools Studio completes the pool again from the platform's registered template pools, as the Iris class's native jigsaw pool annotation did. A pack's own jigsaw pools are not valid here: the override replaces the start pool of a vanilla, datapack or modded jigsaw structure. --- README.md | 2 +- src/main/java/com/volmit/config/Reference.java | 2 ++ src/main/java/com/volmit/vanilla/JigsawOverrides.java | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7875cf4e7..68a0bd7e3 100644 --- a/README.md +++ b/README.md @@ -407,7 +407,7 @@ public final class FloraSettings implements IrisFeature { concrete collections such as `ArrayList`, and maps with other keys. - `@Ref(Reference.X)` says what a `String` or `ResourceId` names, also on lists, sets and arrays of them, so studio offers the right list: `BLOCK`, `ITEM`, `ENTITY`, `BIOME`, `STRUCTURE`, `STRUCTURE_PREFIX` - (a structure or a family prefix such as `minecraft:village`), `STRUCTURE_SET`, + (a structure or a family prefix such as `minecraft:village`), `STRUCTURE_SET`, `TEMPLATE_POOL` (a jigsaw template pool), `POTION_EFFECT` or `ENCHANTMENT` from the server's registries, `NOISE_STYLE` from the host's noise styles, or `PACK_BIOME`, `PACK_REGION`, `PACK_OBJECT`, `PACK_EXPRESSION` or `PACK_IMAGE_MAP` of the pack. The pack kinds fit `String` only, in the form packs use (`desert/dunes`), never `ResourceId`. `BlockState` fields name blocks without it. `@Ref` on any other field fails diff --git a/src/main/java/com/volmit/config/Reference.java b/src/main/java/com/volmit/config/Reference.java index 2f26937c5..a98134652 100644 --- a/src/main/java/com/volmit/config/Reference.java +++ b/src/main/java/com/volmit/config/Reference.java @@ -21,6 +21,8 @@ public enum Reference { STRUCTURE_PREFIX, /** A platform structure set, such as {@code minecraft:villages}. */ STRUCTURE_SET, + /** A platform jigsaw template pool, such as {@code minecraft:village/plains/town_centers}. */ + TEMPLATE_POOL, /** A potion effect type, such as {@code minecraft:speed}. */ POTION_EFFECT, /** An enchantment, such as {@code minecraft:sharpness}. */ diff --git a/src/main/java/com/volmit/vanilla/JigsawOverrides.java b/src/main/java/com/volmit/vanilla/JigsawOverrides.java index fb87cf1f2..31a366cc1 100644 --- a/src/main/java/com/volmit/vanilla/JigsawOverrides.java +++ b/src/main/java/com/volmit/vanilla/JigsawOverrides.java @@ -1,6 +1,8 @@ package com.volmit.vanilla; import com.volmit.config.Desc; +import com.volmit.config.Ref; +import com.volmit.config.Reference; import com.volmit.config.MaxNumber; import com.volmit.config.MinNumber; import java.util.Objects; @@ -50,6 +52,7 @@ public final class JigsawOverrides { } @Desc("Optional registered template-pool key used instead of the source jigsaw's start pool. Empty preserves the source pool.") + @Ref(Reference.TEMPLATE_POOL) private String startPool = ""; @Desc("Optional start connector name. Empty preserves the source value; the literal NONE removes the source constraint.")