From 60d4deb0e990774f85278f1011066ce8dca7655f Mon Sep 17 00:00:00 2001 From: piexel Date: Sat, 10 Oct 2026 18:03:52 +0200 Subject: [PATCH] Reference.LOOT_TABLE: an option that names a loot table of the platform --- README.md | 2 +- src/main/java/com/volmit/config/Reference.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 170d8e7af..c65720678 100644 --- a/README.md +++ b/README.md @@ -455,7 +455,7 @@ public final class FloraSettings implements IrisFeature { - `@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`, `TEMPLATE_POOL` (a jigsaw template pool), - `POTION_EFFECT`, `ENCHANTMENT` or `SPECIAL_ENTITY` (a mob of another plugin) from the server's registries, `NOISE_STYLE` from the host's noise + `POTION_EFFECT`, `ENCHANTMENT`, `LOOT_TABLE` or `SPECIAL_ENTITY` (a mob of another plugin) 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 the load. diff --git a/src/main/java/com/volmit/config/Reference.java b/src/main/java/com/volmit/config/Reference.java index c6badee63..99bf500a9 100644 --- a/src/main/java/com/volmit/config/Reference.java +++ b/src/main/java/com/volmit/config/Reference.java @@ -27,6 +27,8 @@ public enum Reference { POTION_EFFECT, /** An enchantment, such as {@code minecraft:sharpness}. */ ENCHANTMENT, + /** A loot table of the platform, such as {@code minecraft:chests/simple_dungeon}; not a loot table of the pack. */ + LOOT_TABLE, /** A mob of another plugin or content provider, such as {@code mythicmobs:skeleton_king}. */ SPECIAL_ENTITY, /** A biome of the pack. */