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.
This commit is contained in:
piexel committed 2026-10-10 08:05:00 +02:00
1 parent 6f52a20b25
commit 6757cbdd0f
3 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -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
@@ -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}. */
@@ -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.")