Drop @MinItems from the options whose empty list means none

70 options carried @MinItems(1) but default to an empty list, and packs write
[] for them, such as the cave profile's modules or a decorator's blacklist.
Only the three palettes that default to a block keep it: PaletteSpec.palette,
PaletteLayer.palette and Decorator.palette. The loader enforces @MinItems now.
This commit is contained in:
piexel committed 2026-11-06 14:34:26 +01:00
1 parent d4704817a5
commit 6d18d51076
37 files changed
-106

No files matched your search

@@ -22,7 +22,6 @@ import com.volmit.block.BlockSpec;
import com.volmit.block.PaletteSpec;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinItems;
import com.volmit.config.MinNumber;
import com.volmit.config.Required;
import com.volmit.config.Snippet;
@@ -34,7 +33,6 @@ import java.util.List;
@Snippet("iris/blocks/object-block-replacer")
@Desc("Find and replace object materials")
public final class ObjectReplace {
@MinItems(1)
@Required
@Desc("Find this block")
private List<BlockSpec> find = List.of();
@@ -22,7 +22,6 @@ import com.volmit.config.Level;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MinItems;
import java.util.Collections;
import java.util.List;
@@ -34,7 +33,6 @@ import java.util.List;
@Desc("Decorators are used for things like tall grass, bisected flowers, and even kelp or cactus (random heights)")
@Feature(id = "iris:decorant", name = "Decorators", key = "decorators", root = "decorators", targets = Level.BIOME)
public final class DecorantSettings implements IrisFeature {
@MinItems(1)
@Desc("Decorators are used for things like tall grass, bisected flowers, and even kelp or cactus (random heights)")
private List<Decorator> decorators = List.of();
@@ -52,11 +52,9 @@ public final class Decorator {
@Desc("Forced the surface block of this decorant to be the specified block. Assumes forcePlace.")
private BlockSpec forceBlock;
@MinItems(1)
@Desc("When set, the decorator can only place onto any of these blocks.")
private List<BlockSpec> whitelist;
@MinItems(1)
@Desc("When set, the decorator will never place onto any of these blocks.")
private List<BlockSpec> blacklist;
@@ -102,7 +100,6 @@ public final class Decorator {
@Desc("The palette of blocks to pick from when this decorator needs to place.")
private List<BlockSpec> palette = List.of(BlockSpec.of(DEFAULT_BLOCK));
@MinItems(1)
@Desc("The palette of blocks used at the very top of a 'stackMax' of higher than 1. For example, bamboo tops.")
private List<BlockSpec> topPalette = List.of();
@@ -20,7 +20,6 @@ package art.arcane.iris.builtin.loot;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinItems;
import com.volmit.config.MinNumber;
import com.volmit.config.Ref;
import com.volmit.config.Reference;
@@ -72,19 +71,15 @@ public final class LootEntry {
@Desc("Set this to true to prevent it from being broken")
private boolean unbreakable = false;
@MinItems(1)
@Desc("The item flags to add")
private List<String> itemFlags = List.of();
@MinItems(1)
@Desc("Apply enchantments to this item")
private List<LootEnchantment> enchantments = List.of();
@MinItems(1)
@Desc("Apply attribute modifiers to this item")
private List<ItemAttributeModifier> attributes = List.of();
@MinItems(1)
@Desc("Add lore to this item")
private List<String> lore = List.of();
@@ -20,7 +20,6 @@ package art.arcane.iris.builtin.loot;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinItems;
import com.volmit.config.MinNumber;
import com.volmit.config.Required;
@@ -56,7 +55,6 @@ public final class LootTable {
@Desc("The maximum amount of tries to generate loot, from 1 to 256")
private int maxTries = 10;
@MinItems(1)
@Desc("The loot in this table")
private List<LootEntry> loot = List.of();
@@ -20,7 +20,6 @@ package art.arcane.iris.builtin.loot;
import com.volmit.block.BlockSpec;
import com.volmit.config.Desc;
import com.volmit.config.MinItems;
import com.volmit.config.MinNumber;
import com.volmit.config.Required;
import com.volmit.config.ResourceRef;
@@ -32,7 +31,6 @@ import java.util.List;
@Snippet("iris/loot/object-loot")
@Desc("Represents loot within this object")
public final class ObjectLoot implements ObjectLootEntry {
@MinItems(1)
@Desc("The list of blocks this loot table should apply to")
private List<BlockSpec> filter = List.of();
@Desc("Exactly match the block data or not")
@@ -20,7 +20,6 @@ package art.arcane.iris.builtin.loot;
import com.volmit.block.BlockSpec;
import com.volmit.config.Desc;
import com.volmit.config.MinItems;
import com.volmit.config.MinNumber;
import com.volmit.config.Ref;
import com.volmit.config.Reference;
@@ -33,7 +32,6 @@ import java.util.List;
@Snippet("iris/loot/object-vanilla-loot")
@Desc("Represents vanilla loot within this object")
public final class ObjectVanillaLoot implements ObjectLootEntry {
@MinItems(1)
@Desc("The list of blocks this loot table should apply to")
private List<BlockSpec> filter = List.of();
@Desc("Exactly match the block data or not")
@@ -20,7 +20,6 @@ package art.arcane.iris.builtin.objects;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinItems;
import com.volmit.config.MinNumber;
import com.volmit.config.Required;
import com.volmit.config.Snippet;
@@ -67,7 +66,6 @@ public final class HeightmapNoise {
@MinNumber(1)
@Desc("Multiple octaves for multple generators of changing zooms added together")
private int octaves = 1;
@MinItems(1)
@Desc("Apply a child noise generator to fracture the input coordinates of this generator")
private List<HeightmapNoise> fracture = List.of();
@@ -42,7 +42,6 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinItems;
import com.volmit.config.MinNumber;
import com.volmit.config.Required;
import com.volmit.config.ResourceRef;
@@ -75,7 +74,6 @@ public final class ObjectPlacement {
private static final int DEFAULT_SURFACE_SUPPORT_DEPTH = 2;
@Required
@MinItems(1)
@ResourceRef(GeneratedObject.class)
@Desc("List of objects to place")
private List<String> place = List.of();
@@ -116,7 +114,6 @@ public final class ObjectPlacement {
@MinNumber(0)
@Desc("When bore is enabled, expand max-y of the cuboid it removes")
private int boreExtendMaxY = 0;
@MinItems(1)
@Desc("Add markers to blocks in this object")
private List<PlacementMarker> markers = List.of();
@MaxNumber(64)
@@ -159,29 +156,23 @@ public final class ObjectPlacement {
private NoiseStyle warp = NoiseStyle.of(NoiseStyle.FLAT);
@Desc("The placement mode")
private ObjectPlaceMode mode = ObjectPlaceMode.CENTER_HEIGHT;
@MinItems(1)
@Desc("Find and replace blocks")
private List<ObjectReplace> edit = List.of();
@Desc("Translate this object's placement")
private ObjectTranslate translate = new ObjectTranslate();
@Desc("Scale Objects")
private ObjectScale scale = new ObjectScale();
@MinItems(1)
@Desc("The loot tables to apply to these objects")
private List<ObjectLoot> loot = List.of();
@MinItems(1)
@Desc("The vanilla loot tables to apply to these objects")
private List<ObjectVanillaLoot> vanillaLoot = List.of();
@Desc("Whether the given loot tables override any and all other loot tables available in the dimension, region or biome.")
private boolean overrideGlobalLoot = false;
@MinItems(1)
@Desc("This object / these objects override the following trees when they grow...")
private List<TreeOverride> trees = List.of();
@MinItems(1)
@ResourceRef(GeneratedObject.class)
@Desc("List of objects to this object is allowed to collied with")
private List<String> allowedCollisions = List.of();
@MinItems(1)
@ResourceRef(GeneratedObject.class)
@Desc("List of objects to this object is forbidden to collied with")
private List<String> forbiddenCollisions = List.of();
@@ -22,7 +22,6 @@ import com.volmit.config.Level;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MinItems;
import java.util.Collections;
import java.util.List;
@@ -34,7 +33,6 @@ import java.util.List;
@Desc("Objects define what schematics (iob files) iris will place here")
@Feature(id = "iris:objects", name = "Objects", key = "objects", root = "objects", targets = {Level.REGION, Level.BIOME})
public final class ObjectSettings implements IrisFeature {
@MinItems(1)
@Desc("Objects define what schematics (iob files) iris will place here")
private List<ObjectPlacement> objects = List.of();
@@ -19,7 +19,6 @@
package art.arcane.iris.builtin.objects;
import com.volmit.config.Desc;
import com.volmit.config.MinItems;
import com.volmit.config.Required;
import com.volmit.config.Snippet;
@@ -31,12 +30,10 @@ import java.util.List;
@Desc("Tree replace options for this object placer")
public final class TreeOverride {
@Required
@MinItems(1)
@Desc("The types of trees overwritten by this object")
private List<String> treeTypes = List.of();
@Required
@MinItems(1)
@Desc("The size of the square of saplings this applies to (2 means a 2 * 2 sapling area)")
private List<TreeSize> sizes = List.of();
@@ -20,7 +20,6 @@ package art.arcane.iris.builtin.spawn;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinItems;
import com.volmit.config.MinNumber;
import com.volmit.config.Required;
import com.volmit.config.Snippet;
@@ -32,7 +31,6 @@ import java.util.List;
@Desc("Represents a casting location for a command")
public final class EffectCommands {
@Required
@MinItems(1)
@Desc("Run commands, at the exact location of the player")
private List<SpawnCommand> rawCommands = List.of();
@@ -22,7 +22,6 @@ import art.arcane.iris.builtin.loot.ItemAttributeModifier;
import art.arcane.iris.builtin.loot.LootEntry;
import art.arcane.iris.builtin.loot.LootSettings;
import com.volmit.config.Desc;
import com.volmit.config.MinItems;
import com.volmit.config.Ref;
import com.volmit.config.Reference;
import com.volmit.config.Required;
@@ -89,11 +88,9 @@ public final class EntityDefinition {
@Desc("Entity off hand equipment")
private LootEntry offHand = null;
@MinItems(1)
@Desc("Make other entities ride this entity")
private List<EntityDefinition> passengers = List.of();
@MinItems(1)
@Desc("Attribute modifiers for this entity")
private List<ItemAttributeModifier> attributes = List.of();
@@ -131,7 +128,6 @@ public final class EntityDefinition {
@Desc("Set to true if you want to apply all of the settings here to the mob, even though an external plugin has already done so.")
private boolean applySettingsToCustomMobAnyways = false;
@MinItems(1)
@Desc("Run raw commands when this entity is spawned. Use {x}, {y}, and {z} for location. /summon pig {x} {y} {z}")
private List<SpawnCommand> rawCommands = List.of();
@@ -21,7 +21,6 @@ package art.arcane.iris.builtin.spawn;
import com.volmit.block.BlockSpec;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinItems;
import com.volmit.config.MinNumber;
import com.volmit.config.Required;
import com.volmit.config.ResourceRef;
@@ -34,7 +33,6 @@ import java.util.List;
@Snippet("iris/spawn/object-marker")
@Desc("Find blocks to mark")
public final class PlacementMarker {
@MinItems(1)
@Required
@Desc("Find block types to mark")
private List<BlockSpec> mark = List.of();
@@ -19,7 +19,6 @@
package art.arcane.iris.builtin.spawn;
import com.volmit.config.Desc;
import com.volmit.config.MinItems;
import com.volmit.config.Required;
import com.volmit.config.Snippet;
@@ -30,7 +29,6 @@ import java.util.List;
@Desc("Represents a set of Iris commands")
public final class SpawnCommand {
@Required
@MinItems(1)
@Desc("List of commands. Iris replaces {x} {y} and {z} with the location of the entity spawn")
private List<String> commands = List.of();
@@ -19,7 +19,6 @@
package art.arcane.iris.builtin.spawn;
import com.volmit.config.Desc;
import com.volmit.config.MinItems;
import com.volmit.config.ResourceRef;
import java.util.Collections;
@@ -30,7 +29,6 @@ import java.util.List;
public final class SpawnMarker {
@Desc("A list of spawners to add to anywhere this marker is.")
@ResourceRef(Spawner.class)
@MinItems(1)
private List<String> spawners = List.of();
@Desc("Remove this marker when the block it's assigned to is changed.")
@@ -19,7 +19,6 @@
package art.arcane.iris.builtin.spawn;
import com.volmit.config.Desc;
import com.volmit.config.MinItems;
import com.volmit.config.Range;
import java.util.Collections;
@@ -28,11 +27,9 @@ import java.util.List;
/** A spawner of the pack, one file of {@code spawners/}: which entities appear where, when and how often. */
@Desc("Represents an entity spawn during initial chunk generation")
public final class Spawner {
@MinItems(1)
@Desc("The entity spawns to add")
private List<EntitySpawn> spawns = List.of();
@MinItems(1)
@Desc("The entity spawns to add initially. EXECUTES PER CHUNK!")
private List<EntitySpawn> initialSpawns = List.of();
@@ -20,7 +20,6 @@ package art.arcane.iris.builtin.structure;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinItems;
import com.volmit.config.MinNumber;
import com.volmit.config.Ref;
import com.volmit.config.Reference;
@@ -31,7 +30,6 @@ import java.util.Optional;
/** One entry of {@link StructureSettings#adjustments()}: how the platform's own starts of the structures it matches are moved and fitted. */
@Desc("A per-structure adjustment applied to vanilla, mod, and datapack structures that still generate natively (those NOT suppressed by an Iris 'structures' placement). Vertical shifts move the structure start, pieces, bounds, and jigsaw metadata together before references and placement. Intersecting trees are cleared automatically inside structure piece envelopes; optional postprocessing can build palette-driven foundation columns.")
public final class StructureAdjustment {
@MinItems(1)
@Ref(Reference.STRUCTURE_PREFIX)
@Desc("Structure keys this adjustment applies to, e.g. 'minecraft:stronghold'. A namespace:path prefix also matches, so 'minecraft:village' adjusts every village variant and 'minecraft:ruined_portal' adjusts every ruined portal. Empty matches nothing.")
private List<String> match = List.of();
@@ -20,7 +20,6 @@ package art.arcane.iris.builtin.structure;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinItems;
import com.volmit.config.MinNumber;
import com.volmit.config.ResourceRef;
import com.volmit.world.PackBiome;
@@ -36,12 +35,10 @@ import java.util.Optional;
*/
@Desc("Attaches structures to a biome, region or dimension and controls where and how often they generate. This is independent of a structure's own native generation, so you can add custom placements in tandem with native generation or instead of it.")
public final class StructurePlacement {
@MinItems(1)
@IrisStructureRef
@Desc("Editable Iris assembly resources offered by this placement. Leave empty when nativeStructures supplies the source.")
private List<String> structures = List.of();
@MinItems(1)
@Desc("Live registered vanilla, datapack, and modded structures offered by this placement. Minecraft runs their native generator directly, independent of normal biome or dimension eligibility.")
private List<NativeStructureSource> nativeStructures = List.of();
@@ -95,7 +92,6 @@ public final class StructurePlacement {
@Desc("Vertical anchor policy. LEGACY preserves the underground boolean. Cave modes search existing carved-space data and implicitly behave as underground placements.")
private StructureAnchorMode anchor = StructureAnchorMode.LEGACY;
@MinItems(1)
@ResourceRef(PackBiome.class)
@Desc("Optional cave-biome allowlist for cave anchor modes. Empty accepts the cave biome resolved at the selected anchor. Entries match by load key, including prefix matches.")
private List<String> caveBiomes = List.of();
@@ -22,7 +22,6 @@ import com.volmit.config.Level;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MinItems;
import java.util.Collections;
import java.util.List;
@@ -35,7 +34,6 @@ import java.util.List;
@Feature(id = "iris:structure/placements", name = "Structure placements", key = "structures", root = "placements",
targets = {Level.DIMENSION, Level.REGION, Level.BIOME})
public final class StructurePlacementSettings implements IrisFeature {
@MinItems(1)
@Desc("Iris structure placements, each independent of the others.")
private List<StructurePlacement> placements = List.of();
@@ -23,7 +23,6 @@ import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinItems;
import com.volmit.config.MinNumber;
import com.volmit.config.Ref;
import com.volmit.config.Reference;
@@ -40,12 +39,10 @@ import java.util.List;
@Desc("Controls native vanilla, mod, and ingested datapack structure generation for this dimension. Every registered structure generates through its native placement unless its key matches 'disabled', equals a key in 'disabledExact', or a viable dimension-level Iris placement explicitly replaces its source. Family matching uses namespace, slash, or underscore boundaries, while exact matching compares normalized complete keys only. Run '/iris module structure list' to dump every valid key. Only affects newly generated chunks and is separate from Iris structure placements.")
@Feature(id = "iris:structure", name = "Structures", key = "importedStructures", targets = Level.DIMENSION)
public final class StructureSettings implements IrisFeature {
@MinItems(1)
@Ref(Reference.STRUCTURE_PREFIX)
@Desc("Structure keys to deny explicitly, e.g. 'minecraft:stronghold'. A namespace:path prefix also matches, so 'minecraft:village' disables every village variant and 'minecraft:ruined_portal' disables every ruined portal. Every key not matched here remains enabled.")
private List<String> disabled = List.of();
@MinItems(1)
@Ref(Reference.STRUCTURE)
@Desc("Exact structure keys to deny after trimming and case normalization. Unlike 'disabled', entries never match key families, so 'minecraft:ruined_portal' does not disable 'minecraft:ruined_portal_nether'.")
private List<String> disabledExact = List.of();
@@ -58,11 +55,9 @@ public final class StructureSettings implements IrisFeature {
@Desc("Controls whether ingested datapacks may replace minecraft-namespaced structure definitions, sets, pools, and templates. When false, those overrides are stripped from installed datapack copies so vanilla definitions stay intact. Non-minecraft structures from datapacks and mods remain governed by disabled because namespace alone cannot identify their origin. Resolved globally across loaded packs: if any dimension sets this false, minecraft-namespaced overrides are stripped from every installed datapack copy.")
private boolean datapackOverrides = true;
@MinItems(1)
@Desc("Exact registered structure-set frequency overrides for native generation. The last entry for a normalized structure-set key wins. These do not convert native structures into Iris placements and affect only newly generated chunks.")
private List<StructureSetFrequency> frequencyOverrides = List.of();
@MinItems(1)
@Desc("Per-structure adjustments applied to vanilla, mod, and datapack structures that still generate natively. Vertical shifts from every matching entry stack. A matching preserveSourceY option disables Iris burial repositioning for that structure. The last matching entry with stilt settings controls foundation columns, and likewise for terrain and yBand settings. A structure suppressed by an Iris placement is unaffected.")
private List<StructureAdjustment> adjustments = List.of();
@@ -18,7 +18,6 @@
package art.arcane.iris.engine.procedural.part;
import com.volmit.block.PaletteSpec;
import com.volmit.config.MinItems;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinNumber;
@@ -37,7 +36,6 @@ public final class ProceduralDecoration {
@Desc("A noise palette to place.")
private PaletteSpec palette;
@MinItems(1)
@Desc("The roles to decorate. Empty decorates every block.")
private List<String> on = List.of();
@@ -18,7 +18,6 @@
package art.arcane.iris.engine.procedural.part;
import com.volmit.block.PaletteSpec;
import com.volmit.config.MinItems;
import com.volmit.config.Desc;
import com.volmit.config.MinNumber;
import com.volmit.config.Ref;
@@ -45,7 +44,6 @@ public final class ProceduralMaterial {
@Desc("If above 0, the palette changes every this many blocks of height, for strata.")
private int bands = 0;
@MinItems(1)
@Desc("Swaps for blocks that meet conditions; the first rule that applies wins.")
private List<MaterialRule> rules = List.of();
@@ -17,7 +17,6 @@
*/
package art.arcane.iris.engine.procedural.part;
import com.volmit.config.MinItems;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinNumber;
@@ -36,15 +35,12 @@ public final class ProceduralObject {
private long seed = 1337;
@MinItems(1)
@Desc("The blocks of each role. A part whose role has no material uses the first one.")
private List<ProceduralMaterial> materials = List.of();
@MinItems(1)
@Desc("The parts the object grows from, each starting at the object's base.")
private List<ProceduralPart> parts = List.of();
@MinItems(1)
@Desc("Blocks placed against the finished object, such as vines, moss or fruit.")
private List<ProceduralDecoration> decorations = List.of();
@@ -17,7 +17,6 @@
*/
package art.arcane.iris.engine.procedural.part;
import com.volmit.config.MinItems;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinNumber;
@@ -69,7 +68,6 @@ public final class ProceduralPart {
@Desc("Copies of a part placed around this spot.")
private PartCluster cluster;
@MinItems(1)
@Desc("The parts that grow from this one.")
private List<ProceduralPart> children = List.of();
@@ -22,7 +22,6 @@ import com.volmit.config.Level;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MinItems;
import com.volmit.config.PackSettings;
import com.volmit.resource.PackResources;
import com.volmit.resource.ResourceId;
@@ -40,7 +39,6 @@ import java.util.Set;
@Desc("Dimension-level cave biome carving overrides with absolute world Y ranges")
@Feature(id = "iris:carve/bands", name = "Cave biome bands", key = "carving", root = "entries", targets = Level.DIMENSION)
public final class CarvingSettings implements IrisFeature, LinkedBiomes {
@MinItems(1)
@Desc("Dimension-level cave biome carving overrides with absolute world Y ranges")
private List<CarvingEntry> entries = List.of();
@@ -26,7 +26,6 @@ import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinItems;
import com.volmit.config.MinNumber;
import com.volmit.config.Range;
import com.volmit.config.Snippet;
@@ -141,7 +140,6 @@ public final class CaveProfile implements IrisFeature {
@Desc("Minimum depth below terrain surface required for cave-only object anchor placement.")
private int objectMinDepthBelowSurface = 6;
@MinItems(1)
@Desc("Additional layered cave-density modules.")
private List<CaveFieldModule> modules = List.of();
@@ -21,7 +21,6 @@ package art.arcane.iris.modules.deposit;
import com.volmit.block.BlockSpec;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinItems;
import com.volmit.config.MinNumber;
import com.volmit.config.Required;
import com.volmit.config.Snippet;
@@ -105,7 +104,6 @@ public final class DepositGenerator {
private double discardChanceOnAirExposure = 0;
@Required
@MinItems(1)
@Desc("The palette of blocks to be used in this deposit generator. Each entry is picked uniformly; the per-entry weight field is ignored here.")
private List<BlockSpec> palette = List.of();
@@ -114,18 +112,15 @@ public final class DepositGenerator {
@Desc("Ore varience is how many different objects clumps iris will create")
private int varience = 3;
@MinItems(1)
@Desc("Optional block ids this deposit may replace. An empty list retains Iris's any-solid behavior.")
private List<String> replaceableBlocks = List.of();
@Desc("Chooses whether includedBiomes and excludedBiomes inspect the surface biome or the cave biome at the deposit origin.")
private DepositBiomeScope biomeScope = DepositBiomeScope.CAVE;
@MinItems(1)
@Desc("Optional Iris biome keys or vanilla derivative ids allowed for this deposit.")
private List<String> includedBiomes = List.of();
@MinItems(1)
@Desc("Optional Iris biome keys or vanilla derivative ids denied for this deposit.")
private List<String> excludedBiomes = List.of();
@@ -22,7 +22,6 @@ import com.volmit.config.Level;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MinItems;
import java.util.Collections;
import java.util.List;
@@ -35,7 +34,6 @@ import java.util.List;
@Feature(id = "iris:deposit/variants", name = "Deposit variants", key = "depositVariants", root = "variants",
targets = {Level.DIMENSION, Level.REGION, Level.BIOME})
public final class DepositVariantSettings implements IrisFeature {
@MinItems(1)
@Desc("Deposit ore remap rules. Each entry declares a vertical band and a source->replacement block id map. Applied biome first, then region, then dimension; first matching rule wins.")
private List<DepositVariant> variants = List.of();
@@ -22,7 +22,6 @@ import art.arcane.iris.builtin.objects.ObjectPlacement;
import art.arcane.iris.builtin.terrain.PaletteLayer;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinItems;
import com.volmit.config.MinNumber;
import com.volmit.config.Ref;
import com.volmit.config.Reference;
@@ -147,7 +146,6 @@ public final class FloatingChildBiome {
@Desc("Controls the material palette near the island underside. DEPTH keeps the old top-down depth behavior. MIRROR_TOP uses the target biome's shallow/top palette from the underside upward. CUSTOM uses bottomPalette near the underside while keeping the target biome palette near the top.")
private FloatingBottomPaletteMode bottomPaletteMode = FloatingBottomPaletteMode.DEPTH;
@MinItems(1)
@Desc("Custom palette layers used near the underside when bottomPaletteMode=CUSTOM. The layer format is the same as normal biome layers.")
private List<PaletteLayer> bottomPalette = List.of();
@@ -193,11 +191,9 @@ public final class FloatingChildBiome {
@Desc("Uniform shrink factor applied to every object placed on this floating island (inherited, extra, and free-floating). 1.0 = native size, 0.5 = half size, 0.25 = quarter. Useful for making small floating biomes feel believable.")
private double objectShrinkFactor = 1.0;
@MinItems(1)
@Desc("Additional object placements anchored to the island top.")
private List<ObjectPlacement> extraObjects = List.of();
@MinItems(1)
@Desc("Additional object placements that float freely in air, independent of the island. Forced to ObjectPlaceMode.FLOATING.")
private List<ObjectPlacement> floatingObjects = List.of();
@@ -210,11 +206,9 @@ public final class FloatingChildBiome {
@Desc("Controls how bottomObjectOverrides are combined. INHERIT_ONLY (default) = no bottom objects placed (there is no inherited bottom set). MERGE = same as REPLACE for bottom (no inherited source). REPLACE = uses bottomObjectOverrides list only.")
private OverrideMode bottomObjectMode = OverrideMode.INHERIT_ONLY;
@MinItems(1)
@Desc("Object placements that override or supplement the inherited surface objects on the island TOP. Behaviour depends on topObjectMode. INHERIT_ONLY = this list is ignored. MERGE = appended after inherited. REPLACE = used instead of inherited.")
private List<ObjectPlacement> topObjectOverrides = List.of();
@MinItems(1)
@Desc("Object placements anchored to the island BOTTOM face. Each entry is auto-inverted 180 degrees around the X axis and placed flush against the lowest solid face of the island, so objects appear to hang upside-down from the underside. WARNING: directional blocks (stairs, doors, slabs) will not render correctly when flipped — use non-directional content (logs, leaves, stone, mycelium, ice, glass) for bottom placements.")
private List<ObjectPlacement> bottomObjectOverrides = List.of();
@@ -23,7 +23,6 @@ import com.volmit.config.Level;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MinItems;
import com.volmit.config.PackSettings;
import com.volmit.resource.PackResources;
import com.volmit.resource.ResourceId;
@@ -42,7 +41,6 @@ import java.util.Set;
@Desc("Floating child biomes that procedurally generate above this biome's terrain. Each entry references a target biome whose layers, decorators, and objects drive the floating island's visual design, while the config here drives size, shape, altitude, rarity, and water level. Multiple entries are supported and selected by rarity per column unless mergeFloatingChildBiomes is enabled.")
@Feature(id = "iris:floating/children", name = "Floating child biomes", key = "floatingChildBiomes", root = "children", targets = Level.BIOME)
public final class FloatingChildSettings implements IrisFeature, LinkedBiomes {
@MinItems(1)
@Desc("Floating child biomes that procedurally generate above this biome's terrain. Each entry references a target biome whose layers, decorators, and objects drive the floating island's visual design, while the config here drives size, shape, altitude, rarity, and water level. Multiple entries are supported and selected by rarity per column unless mergeFloatingChildBiomes is enabled.")
private List<FloatingChildBiome> children = List.of();
@@ -21,7 +21,6 @@ package art.arcane.iris.modules.loot;
import art.arcane.iris.builtin.loot.LootEntry;
import com.volmit.block.BlockSpec;
import com.volmit.config.Desc;
import com.volmit.config.MinItems;
import com.volmit.config.Required;
import com.volmit.config.Snippet;
@@ -32,14 +31,12 @@ import java.util.List;
@Desc("Represents a block drop list")
public final class BlockDrop {
@Required
@MinItems(1)
@Desc("The blocks that drop loot")
private List<BlockSpec> blocks = List.of();
@Desc("If exact blocks is set to true, minecraft:barrel[axis=x] will only drop for that axis. When exact is false (default) any barrel will drop the defined drops.")
private boolean exactBlocks = false;
@MinItems(1)
@Desc("Add in specific items to drop")
private List<LootEntry> drops = List.of();
@@ -22,7 +22,6 @@ import com.volmit.config.Level;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MinItems;
import java.util.Collections;
import java.util.List;
@@ -35,7 +34,6 @@ import java.util.List;
@Desc("Define custom block drops for this area")
@Feature(id = "iris:loot/drops", name = "Block drops", key = "blockDrops", root = "drops", targets = {Level.DIMENSION, Level.REGION, Level.BIOME})
public final class BlockDropSettings implements IrisFeature {
@MinItems(1)
@Desc("Define custom block drops for this area")
private List<BlockDrop> drops = List.of();
@@ -23,7 +23,6 @@ import com.volmit.config.Level;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MinItems;
import java.util.Collections;
import java.util.List;
@@ -35,7 +34,6 @@ import java.util.List;
@Desc("Effects are ambient effects such as potion effects, random sounds, or even particles around each player. All of these effects are played via packets so two players won't see/hear each others effects.\nDue to performance reasons, effects will play arround the player even if where the effect was played is no longer in the biome the player is in.")
@Feature(id = "iris:spawn/effects", name = "Effects", key = "effects", root = "effects", targets = {Level.REGION, Level.BIOME})
public final class EffectSettings implements IrisFeature {
@MinItems(1)
@Desc("Effects are ambient effects such as potion effects, random sounds, or even particles around each player.")
private List<AmbientEffect> effects = List.of();
@@ -23,7 +23,6 @@ import com.volmit.config.Level;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MinItems;
import com.volmit.config.ResourceRef;
import java.util.Collections;
@@ -36,7 +35,6 @@ import java.util.List;
@Desc("Entity spawners that fire in this area")
@Feature(id = "iris:spawn", name = "Entity spawners", key = "entitySpawners", root = "spawners", targets = {Level.DIMENSION, Level.REGION, Level.BIOME})
public final class SpawnerSettings implements IrisFeature {
@MinItems(1)
@ResourceRef(Spawner.class)
@Desc("Entity spawners to add to this area")
private List<String> spawners = List.of();
@@ -22,7 +22,6 @@ import com.volmit.config.Level;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MinItems;
import java.util.Collections;
import java.util.List;
@@ -35,7 +34,6 @@ import java.util.List;
@Desc("Collection of ores to be generated")
@Feature(id = "iris:terrain/ores", name = "Ores", key = "ores", root = "generators", targets = {Level.DIMENSION, Level.REGION, Level.BIOME})
public final class OreSettings implements IrisFeature {
@MinItems(1)
@Desc("Collection of ores to be generated")
private List<OreGenerator> generators = List.of();
@@ -22,7 +22,6 @@ import com.volmit.config.Level;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MinItems;
import com.volmit.vanilla.DecorationStep;
import java.util.Collections;
@@ -39,15 +38,12 @@ public final class ImportedFeaturesSettings implements IrisFeature {
@Desc("Master switch. False (the default) means no native placed feature generates and chunk output is identical to a pack without this block at all. True runs the vanilla decoration feature pass over Iris terrain.")
private boolean enabled = false;
@MinItems(1)
@Desc("Placed feature keys to deny explicitly, e.g. 'minecraft:ore_diamond'. A namespace:path prefix also matches, so 'minecraft:ore' denies every vanilla ore and 'minecraft:trees' denies every tree placement. Every key not matched here generates while 'enabled' is true.")
private List<String> disabled = List.of();
@MinItems(1)
@Desc("Restrict feature generation to these decoration steps only. Empty (the default) means every step is eligible. Use this to import ores without importing vegetation: set it to UNDERGROUND_ORES.")
private List<DecorationStep> steps = List.of();
@MinItems(1)
@Desc("Decoration steps to deny. Applied after 'steps', so a step listed here never generates even if 'steps' allows it. VEGETAL_DECORATION is the usual entry for packs that grow their own trees.")
private List<DecorationStep> disabledSteps = List.of();