Merge master (T, C, L) into wave3/s: iris:post reads T's post and terrain settings, iris:perfection C's hideOresForHiddenOre; a layer's block picks move into the shared, portable LayerBlocks so terrain, caves and post keep one noise per layer; PendingSettings is gone

This commit is contained in:
piexel committed 2026-10-10 13:35:48 +02:00
commit 2148eb28cd
140 files changed
+5658 -3746

No files matched your search

@@ -1,65 +0,0 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin;
import com.volmit.block.BlockState;
import com.volmit.world.PackWorld;
import java.util.Optional;
/**
* Transitional: settings Iris's built-in modules read that still live on Iris's dimension and biome classes while
* wave 3a moves them into module settings, {@code hideOresForHiddenOre} (agent C) and {@code postProcessingWalls},
* {@code postProcessingSlabs} and a biome's {@code wall} and {@code slab} (agent T). Iris's worlds implement it. When
* those settings land, each method gives way to a read of its module setting and this type is deleted; nothing else
* may use it.
*/
public interface PendingSettings {
/** The pending settings of {@code world}, which must be a world Iris generates. */
static PendingSettings of(PackWorld world) {
if (world instanceof PendingSettings pending) {
return pending;
}
throw new IllegalArgumentException("Built-in modules generate Iris's own worlds, not " + world);
}
/** The dimension's {@code hideOresForHiddenOre}. */
boolean hidesOres();
/** The dimension's {@code postProcessingWalls}. */
boolean postProcessingWalls();
/** The dimension's {@code postProcessingSlabs}. */
boolean postProcessingSlabs();
/** The {@code wall} of the surface biome of the column at {@code x}, {@code z}; empty when its palette lists no block. */
Optional<BiomeLayer> wall(int x, int z);
/** The {@code slab} of the surface biome of the column at {@code x}, {@code z}. */
BiomeLayer slab(int x, int z);
/** One of a biome's palette layers, picking as Iris always picked it, with the world's post-processing seed. */
interface BiomeLayer {
/** The block the layer picks at {@code x}, {@code y}, {@code z}; empty when none of its blocks exists. */
Optional<BlockState> at(double x, double y, double z);
/** Whether the layer's slope condition holds where the terrain's slope is {@code slope}. */
boolean allowsSlope(double slope);
}
}
@@ -0,0 +1,54 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.carve;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.LinkedBiomes;
import com.volmit.config.Ref;
import com.volmit.config.Reference;
import java.util.Set;
/** A biome's {@code carvingBiome}, written as the biome key: it registers that biome with the pack's layout and is not applied as a substitute under carvings. */
@Desc("Registers the referenced biome with this pack's reachable biome set. It is NOT applied as a substitute under carvings; cave biomes come from the region's caveBiomes list.")
@Feature(id = "iris:carve/biome", name = "Carving biome", key = "carvingBiome", root = "biome", targets = Target.BIOME)
public final class CarvingBiomeSettings implements IrisFeature, LinkedBiomes {
@Ref(Reference.PACK_BIOME)
@Desc("Registers the referenced biome with this pack's reachable biome set. It is NOT applied as a substitute under carvings; cave biomes come from the region's caveBiomes list.")
private String biome = "";
public CarvingBiomeSettings() {
}
public CarvingBiomeSettings(String biome) {
this.biome = biome;
}
public String biome() {
return biome == null ? "" : biome;
}
@Override
public Set<String> treeBiomes() {
return Set.of(biome());
}
}
@@ -0,0 +1,43 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.carve;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
/** A dimension's {@code carvingEnabled}, written as the bare boolean. */
@Desc("Enable or disable all carving for this dimension")
@Feature(id = "iris:carve/enabled", name = "Carving enabled", key = "carvingEnabled", root = "enabled", targets = Target.DIMENSION)
public final class CarvingEnabledSettings implements IrisFeature {
@Desc("Enable or disable all carving for this dimension")
private boolean enabled = true;
public CarvingEnabledSettings() {
}
public CarvingEnabledSettings(boolean enabled) {
this.enabled = enabled;
}
public boolean enabled() {
return enabled;
}
}
@@ -0,0 +1,103 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.carve;
import com.volmit.config.Desc;
import com.volmit.config.Range;
import com.volmit.config.Ref;
import com.volmit.config.Reference;
import com.volmit.config.Snippet;
import com.volmit.noise.NoiseStyle;
import java.util.Collections;
import java.util.List;
/**
* One dimension-level cave biome override, an entry of {@code carving}: a pack biome that replaces the cave biome within a band
* of world Y, optionally split into child entries by a noise pattern. IrisApi types only; {@code CarvingResolver} picks
* the entry for a position.
*/
@Snippet("dimension-carving-entry")
@Desc("Dimension-level cave biome override with absolute world Y bounds.")
public final class CarvingEntry {
private static final double DEFAULT_WORLD_Y_MIN = -64;
private static final double DEFAULT_WORLD_Y_MAX = 320;
private static final double DEFAULT_CHILD_SHRINK_FACTOR = 1.5;
private static final int DEFAULT_CHILD_RECURSION_DEPTH = 3;
@Desc("Stable id for this carving entry")
private String id = "";
@Desc("Enable or disable this carving entry")
private boolean enabled = true;
@Ref(Reference.PACK_BIOME)
@Desc("Cave biome to apply when world Y falls within worldYRange")
private String biome = "";
@Desc("Absolute world Y bounds where this carving entry applies")
private Range worldYRange = Range.of(DEFAULT_WORLD_Y_MIN, DEFAULT_WORLD_Y_MAX);
@Desc("If this carving entry has child carving entries, this controls how small those child carving patches are.")
private double childShrinkFactor = DEFAULT_CHILD_SHRINK_FACTOR;
@Desc("If this carving entry has child carving entries, this controls the shape pattern used to pick them.")
private NoiseStyle childStyle = NoiseStyle.of("CELLULAR_IRIS_DOUBLE");
@Desc("Child carving entry ids. Child ids can point back to parent ids to create cycles; recursion is bounded by childRecursionDepth.")
private List<String> children = List.of();
@Desc("Maximum recursion depth when resolving child carving entries from this entry.")
private int childRecursionDepth = DEFAULT_CHILD_RECURSION_DEPTH;
public CarvingEntry() {
}
public String id() {
return id == null ? "" : id;
}
public boolean enabled() {
return enabled;
}
public String biome() {
return biome == null ? "" : biome;
}
public Range worldYRange() {
return worldYRange;
}
public double childShrinkFactor() {
return childShrinkFactor;
}
public NoiseStyle childStyle() {
return childStyle;
}
public List<String> children() {
return children == null ? List.of() : Collections.unmodifiableList(children);
}
public int childRecursionDepth() {
return childRecursionDepth;
}
}
@@ -0,0 +1,80 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.carve;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.LinkedBiomes;
import com.volmit.config.MinItems;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
/**
* The cave biome overrides a dimension declares, written as {@code "carving": [...]}, the list of {@link CarvingEntry}s.
* The biome of every enabled entry takes part in the pack's layout like any biome the dimension reaches.
*/
@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 = Target.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();
public CarvingSettings() {
}
public CarvingSettings(List<CarvingEntry> entries) {
this.entries = List.copyOf(entries);
}
public List<CarvingEntry> entries() {
return entries == null ? List.of() : Collections.unmodifiableList(entries);
}
/**
* The biome key {@code reference} stands for: the biome of the entry with that id, ignoring surrounding blanks, or
* {@code reference} itself when no entry has the id. When several entries share an id the last one counts.
*/
public String biomeOf(String reference) {
CarvingEntry entry = null;
for (CarvingEntry candidate : entries()) {
if (candidate != null && !candidate.id().isBlank() && candidate.id().trim().equals(reference)) {
entry = candidate;
}
}
return entry == null ? reference : entry.biome();
}
@Override
public Set<String> usedBiomes(Collection<IrisFeature> dimension) {
Set<String> biomes = new LinkedHashSet<>();
for (CarvingEntry entry : entries()) {
if (entry != null && entry.enabled()) {
biomes.add(entry.biome());
}
}
return biomes;
}
}
@@ -0,0 +1,47 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.carve;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinNumber;
/** A biome's {@code caveMinDepthBelowSurface}, written as the bare number of blocks. */
@Desc("Minimum depth below terrain surface required before this cave biome can be selected.")
@Feature(id = "iris:carve/min-depth", name = "Cave minimum depth", key = "caveMinDepthBelowSurface", root = "depth", targets = Target.BIOME)
public final class CaveDepthSettings implements IrisFeature {
@MinNumber(0)
@MaxNumber(256)
@Desc("Minimum depth below terrain surface required before this cave biome can be selected.")
private int depth = 0;
public CaveDepthSettings() {
}
public CaveDepthSettings(int depth) {
this.depth = depth;
}
public int depth() {
return depth;
}
}
@@ -19,7 +19,10 @@
package art.arcane.iris.builtin.carve;
import art.arcane.iris.builtin.anchor.ObjectPlaceMode;
import com.volmit.FeatureAttachment.Target;
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;
@@ -35,11 +38,13 @@ import java.util.Optional;
/**
* A 3D cave profile as packs write it for a dimension, region or biome ({@code caveProfile}) or under
* {@code snippet/cave-profile/}: the noise fields that decide where caves are, how they meet the surface, where
* cave fluid may sit and how objects find anchors in them. IrisApi types only; the carving module builds the noise.
* cave fluid may sit and how objects find anchors in them. A level that writes none has no profile, which is the
* same as one that is not {@code enabled}. IrisApi types only; the carving module builds the noise.
*/
@Snippet("cave-profile")
@Desc("Represents a configurable 3D cave profile.")
public final class CaveProfile {
@Feature(id = "iris:carve/profile", name = "Cave profile", key = "caveProfile", targets = {Target.DIMENSION, Target.REGION, Target.BIOME})
public final class CaveProfile implements IrisFeature {
@Desc("Enable profile-driven cave carving.")
private boolean enabled = false;
@@ -18,6 +18,7 @@
package art.arcane.iris.builtin.decorant;
import art.arcane.iris.builtin.prepare.SlopeClip;
import com.volmit.block.BlockSpec;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
@@ -60,7 +61,7 @@ public final class Decorator {
private List<BlockSpec> blacklist;
@Desc("The slope at which this decorator can be placed. Range from 0 to 10 by default. Calculated from a 3-block radius from the center of the decorator placement.")
private DecoratorSlope slopeCondition = new DecoratorSlope();
private SlopeClip slopeCondition = new SlopeClip();
@Desc("If stackMax is set to true, use this to limit its max height for large caverns")
private int absoluteMaxStack = 30;
@@ -143,8 +144,8 @@ public final class Decorator {
return blacklist != null;
}
public DecoratorSlope slopeCondition() {
return slopeCondition == null ? new DecoratorSlope() : slopeCondition;
public SlopeClip slopeCondition() {
return slopeCondition == null ? new SlopeClip() : slopeCondition;
}
public int absoluteMaxStack() {
@@ -1,64 +0,0 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.decorant;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinNumber;
/** The terrain slopes a decorator may be placed on, as packs write it in a decorator's {@code slopeCondition}. */
@Desc("Limits placement to a minimum and maximum terrain slope")
public final class DecoratorSlope {
private static final double UNLIMITED_MINIMUM = 0;
private static final double UNLIMITED_MAXIMUM = 10;
@MinNumber(0)
@MaxNumber(1024)
@Desc("The minimum slope for placement")
private double minimumSlope = UNLIMITED_MINIMUM;
@MinNumber(0)
@MaxNumber(1024)
@Desc("The maximum slope for placement")
private double maximumSlope = UNLIMITED_MAXIMUM;
public DecoratorSlope() {
}
public double minimumSlope() {
return minimumSlope;
}
public double maximumSlope() {
return maximumSlope;
}
/** Whether every slope passes: the limits are the defaults, or looser. */
public boolean isDefault() {
return minimumSlope <= UNLIMITED_MINIMUM && maximumSlope >= UNLIMITED_MAXIMUM;
}
public boolean isValid(double slope) {
if (isDefault()) {
return true;
}
return !(minimumSlope > slope) && !(maximumSlope < slope);
}
}
@@ -0,0 +1,67 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.deposit;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinNumber;
import com.volmit.config.Required;
import com.volmit.config.Snippet;
import java.util.Collections;
import java.util.Map;
/**
* One deposit ore remap rule, an entry of {@code depositVariants}: within a vertical band, ore blocks are rewritten to
* alternate blocks. A value of IrisApi types only; {@code ResolvedDepositVariant} resolves the blocks.
*/
@Snippet("deposit-variant")
@Desc("Remaps ore block ids to alternate block ids within a vertical band. Ores declared at dimension, region, and biome scope can be rewritten at placement time (for example, iron_ore -> deepslate_iron_ore inside a deep carving band, or yourmod:iron -> yourmod:moon_iron inside a lunar biome).")
public final class DepositVariant {
@Required
@MinNumber(-2048)
@MaxNumber(8192)
@Desc("Inclusive minimum world Y this variant applies at.")
private int minHeight = 0;
@Required
@MinNumber(-2048)
@MaxNumber(8192)
@Desc("Inclusive maximum world Y this variant applies at.")
private int maxHeight = 0;
@Required
@Desc("Source block id (for example `minecraft:iron_ore`) -> replacement block id (for example `minecraft:deepslate_iron_ore`). Any block id the data loader resolves is accepted, including external/mod blocks. Source match is by material only, so block properties on the source key are ignored.")
private Map<String, String> remap = Map.of();
public DepositVariant() {
}
public int minHeight() {
return minHeight;
}
public int maxHeight() {
return maxHeight;
}
public Map<String, String> remap() {
return remap == null ? Map.of() : Collections.unmodifiableMap(remap);
}
}
@@ -0,0 +1,52 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.deposit;
import com.volmit.FeatureAttachment.Target;
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;
/**
* The deposit ore remap rules one dimension, region or biome declares, written as {@code "depositVariants": [...]}, the list
* of {@link DepositVariant}s. The biome's rules apply first, then the region's, then the dimension's; the first matching rule wins.
*/
@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.")
@Feature(id = "iris:deposit/variants", name = "Deposit variants", key = "depositVariants", root = "variants",
targets = {Target.DIMENSION, Target.REGION, Target.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();
public DepositVariantSettings() {
}
public DepositVariantSettings(List<DepositVariant> variants) {
this.variants = List.copyOf(variants);
}
public List<DepositVariant> variants() {
return variants == null ? List.of() : Collections.unmodifiableList(variants);
}
}
@@ -0,0 +1,49 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.deposit;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinNumber;
/** A biome's {@code oreDepositFrequencyMultiplier}, written as the bare number. */
@Desc("Multiplier applied to the frequency of every ore deposit whose center is inside this biome. A value of 0.4 keeps 40% of ore veins while leaving non-ore deposits unchanged.")
@Feature(id = "iris:deposit/ore-frequency", name = "Ore deposit frequency", key = "oreDepositFrequencyMultiplier", root = "multiplier", targets = Target.BIOME)
public final class OreFrequencySettings implements IrisFeature {
private static final double UNCHANGED = 1D;
@MinNumber(0)
@MaxNumber(1)
@Desc("Multiplier applied to the frequency of every ore deposit whose center is inside this biome. A value of 0.4 keeps 40% of ore veins while leaving non-ore deposits unchanged.")
private double multiplier = UNCHANGED;
public OreFrequencySettings() {
}
public OreFrequencySettings(double multiplier) {
this.multiplier = multiplier;
}
public double multiplier() {
return multiplier;
}
}
@@ -0,0 +1,49 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.deposit;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinNumber;
/** A biome's {@code oreDepositSizeMultiplier}, written as the bare number. */
@Desc("Multiplier applied to the block count of every ore deposit whose center is inside this biome. Non-ore deposits are unchanged.")
@Feature(id = "iris:deposit/ore-size", name = "Ore deposit size", key = "oreDepositSizeMultiplier", root = "multiplier", targets = Target.BIOME)
public final class OreSizeSettings implements IrisFeature {
private static final double UNCHANGED = 1D;
@MinNumber(0.01)
@MaxNumber(16)
@Desc("Multiplier applied to the block count of every ore deposit whose center is inside this biome. Non-ore deposits are unchanged.")
private double multiplier = UNCHANGED;
public OreSizeSettings() {
}
public OreSizeSettings(double multiplier) {
this.multiplier = multiplier;
}
public double multiplier() {
return multiplier;
}
}
@@ -19,7 +19,7 @@
package art.arcane.iris.builtin.floating;
import art.arcane.iris.engine.object.placement.IrisObjectPlacement;
import art.arcane.iris.engine.object.terrain.IrisBiomePaletteLayer;
import art.arcane.iris.builtin.terrain.PaletteLayer;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinItems;
@@ -149,7 +149,7 @@ public final class FloatingChildBiome {
@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<IrisBiomePaletteLayer> bottomPalette = List.of();
private List<PaletteLayer> bottomPalette = List.of();
@MinNumber(1)
@MaxNumber(512)
@@ -315,7 +315,7 @@ public final class FloatingChildBiome {
return bottomPaletteMode == null ? FloatingBottomPaletteMode.DEPTH : bottomPaletteMode;
}
public List<IrisBiomePaletteLayer> bottomPalette() {
public List<PaletteLayer> bottomPalette() {
return bottomPalette == null ? List.of() : Collections.unmodifiableList(bottomPalette);
}
@@ -0,0 +1,70 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.floating;
import art.arcane.iris.builtin.carve.CarvingSettings;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.LinkedBiomes;
import com.volmit.config.MinItems;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
/**
* The floating child biomes one biome declares, written as {@code "floatingChildBiomes": [...]}, the list of
* {@link FloatingChildBiome}s. The target biome of every child, and the biome its {@code carving} names, take part in the
* pack's layout like any biome a dimension reaches.
*/
@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 = Target.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();
public FloatingChildSettings() {
}
public FloatingChildSettings(List<FloatingChildBiome> children) {
this.children = List.copyOf(children);
}
public List<FloatingChildBiome> children() {
return children == null ? List.of() : Collections.unmodifiableList(children);
}
@Override
public Set<String> usedBiomes(Collection<IrisFeature> dimension) {
CarvingSettings carving = dimension.stream().filter(CarvingSettings.class::isInstance).map(CarvingSettings.class::cast).findFirst().orElse(null);
Set<String> biomes = new LinkedHashSet<>();
for (FloatingChildBiome child : children()) {
if (child != null) {
biomes.add(child.biome());
biomes.add(carving == null ? child.carving() : carving.biomeOf(child.carving()));
}
}
return biomes;
}
}
@@ -0,0 +1,43 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.floating;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
/** A biome's {@code mergeFloatingChildBiomes}, written as the bare boolean. */
@Desc("When true, every floating child entry is sampled independently and their solid masks are unioned, so multiple floating islands can stack, overlap, and collide instead of the picker choosing only one child per column.")
@Feature(id = "iris:floating/merge", name = "Merge floating child biomes", key = "mergeFloatingChildBiomes", root = "merge", targets = Target.BIOME)
public final class MergeFloatingChildrenSettings implements IrisFeature {
@Desc("When true, every floating child entry is sampled independently and their solid masks are unioned, so multiple floating islands can stack, overlap, and collide instead of the picker choosing only one child per column.")
private boolean merge = false;
public MergeFloatingChildrenSettings() {
}
public MergeFloatingChildrenSettings(boolean merge) {
this.merge = merge;
}
public boolean merge() {
return merge;
}
}
@@ -0,0 +1,73 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
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.Required;
import com.volmit.config.Snippet;
import java.util.Collections;
import java.util.List;
@Snippet("block-drops")
@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();
@Desc("If this is in a biome, setting skipParents to true will ignore the drops in the region and dimension for this block type. The default (false) will allow all three nodes to fire and add to a list of drops.")
private boolean skipParents = false;
@Desc("Removes the default vanilla block drops and only drops the given items & any parent loot tables specified for this block type.")
private boolean replaceVanillaDrops = false;
public BlockDrop() {
}
public List<BlockSpec> blocks() {
return blocks == null ? List.of() : Collections.unmodifiableList(blocks);
}
public boolean exactBlocks() {
return exactBlocks;
}
public List<LootEntry> drops() {
return drops == null ? List.of() : Collections.unmodifiableList(drops);
}
public boolean skipParents() {
return skipParents;
}
public boolean replaceVanillaDrops() {
return replaceVanillaDrops;
}
}
@@ -0,0 +1,48 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.loot;
import com.volmit.FeatureAttachment.Target;
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;
/**
* The block drops one dimension, region or biome declares, written as {@code "blockDrops": [...]}, the list of
* {@link BlockDrop}s. A broken block drops those of its biome, then, unless one of them skips its parents, those of its
* region and dimension.
*/
@Desc("Define custom block drops for this area")
@Feature(id = "iris:loot/drops", name = "Block drops", key = "blockDrops", root = "drops", targets = {Target.DIMENSION, Target.REGION, Target.BIOME})
public final class BlockDropSettings implements IrisFeature {
@MinItems(1)
@Desc("Define custom block drops for this area")
private List<BlockDrop> drops = List.of();
public BlockDropSettings() {
}
public List<BlockDrop> drops() {
return drops == null ? List.of() : Collections.unmodifiableList(drops);
}
}
@@ -0,0 +1,78 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.loot;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinNumber;
import com.volmit.config.Required;
import com.volmit.config.Snippet;
@Snippet("attribute-modifier")
@Desc("Represents an attribute modifier for an item or an entity. This allows you to create modifications to basic game attributes such as MAX_HEALTH or ARMOR_VALUE.")
public final class ItemAttributeModifier {
@Required
@Desc("The Attribute type key such as max_health or minecraft:armor. This type is pulled from the game attributes. Zombie & Horse attributes will not work on non-zombie/horse entities.\nUsing an attribute on an item will have affects when held, or worn. There is no way to specify further granularity as the game picks this depending on the item type.")
private String attribute = null;
@Required
@Desc("The Attribute Name is used internally only for the game. This value should be unique to all other attributes applied to this item/entity. It is not shown in game.")
private String name = "";
@Desc("The application operation: ADD_NUMBER (default), ADD_SCALAR or MULTIPLY_SCALAR_1. Add Number adds to the default value. \nAdd scalar_1 will multiply by 1 for example if the health is 20 and you multiply_scalar_1 by 0.5, the health will result in 30, not 10. Use negative values to achieve that.")
private String operation = "ADD_NUMBER";
@Desc("Minimum amount for this modifier. Iris randomly chooses an amount, this is the minimum it can choose randomly for this attribute.")
private double minAmount = 1;
@Desc("Maximum amount for this modifier Iris randomly chooses an amount, this is the maximum it can choose randomly for this attribute.")
private double maxAmount = 1;
@MinNumber(0)
@MaxNumber(1)
@Desc("The chance that this attribute is applied (0 to 1). If the chance is 0.5 (50%), then Iris will only apply this attribute 50% of the time.")
private double chance = 1;
public ItemAttributeModifier() {
}
public String attribute() {
return attribute;
}
public String name() {
return name;
}
public String operation() {
return operation;
}
public double minAmount() {
return minAmount;
}
public double maxAmount() {
return maxAmount;
}
public double chance() {
return chance;
}
}
@@ -0,0 +1,68 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.loot;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinNumber;
import com.volmit.config.Ref;
import com.volmit.config.Reference;
import com.volmit.config.Required;
import com.volmit.config.Snippet;
@Snippet("enchantment")
@Desc("Represents an enchantment & level")
public final class LootEnchantment {
@Required
@Ref(Reference.ENCHANTMENT)
@Desc("The enchantment")
private String enchantment;
@MinNumber(1)
@Desc("Minimum amount of this loot")
private int minLevel = 1;
@MinNumber(1)
@Desc("Maximum amount of this loot")
private int maxLevel = 1;
@MinNumber(0)
@MaxNumber(1)
@Desc("The chance that this enchantment is applied (0 to 1)")
private double chance = 1;
public LootEnchantment() {
}
public String enchantment() {
return enchantment;
}
public int minLevel() {
return minLevel;
}
public int maxLevel() {
return maxLevel;
}
public double chance() {
return chance;
}
}
@@ -0,0 +1,181 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
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;
import com.volmit.config.Required;
import com.volmit.config.Snippet;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@Snippet("loot")
@Desc("Represents a loot entry")
public final class LootEntry {
public static final int MAX_AMOUNT = 64;
@Desc("The target inventory slot types to fill this loot with. World generation only ever fills STORAGE; the other values are inert during worldgen.")
private LootSlot slotTypes = LootSlot.STORAGE;
@MinNumber(1)
@Desc("The sub rarity of this loot. Calculated after this loot table has been picked.")
private int rarity = 1;
@MinNumber(1)
@MaxNumber(MAX_AMOUNT)
@Desc("Minimum amount of this loot, from 1 to 64")
private int minAmount = 1;
@MinNumber(1)
@MaxNumber(MAX_AMOUNT)
@Desc("Maximum amount of this loot, from 1 to 64")
private int maxAmount = 1;
@Desc("The display name of this item")
private String displayName = null;
@MinNumber(0)
@MaxNumber(1)
@Desc("Minimum durability percent")
private double minDurability = 0;
@MinNumber(0)
@MaxNumber(1)
@Desc("Maximum durability percent")
private double maxDurability = 1;
@Desc("Define a custom model identifier 1.14+ only")
private Integer customModel = null;
@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();
@Ref(Reference.ITEM)
@Required
@Desc("This is the item or block type. Does not accept minecraft:*, only materials such as DIAMOND_SWORD or DIRT. The exception are modded materials, as they require a namespace.")
private String type = "";
@Desc("The dye color")
private String dyeColor = null;
@Desc("The leather armor color")
private String leatherColor = null;
@Desc("Defines a custom NBT Tag for the item.")
private Map<String, Object> customNbt;
public LootEntry() {
}
public LootSlot slotTypes() {
return slotTypes == null ? LootSlot.STORAGE : slotTypes;
}
public int rarity() {
return rarity;
}
public int minAmount() {
return minAmount;
}
public int maxAmount() {
return maxAmount;
}
public String displayName() {
return displayName;
}
public double minDurability() {
return minDurability;
}
public double maxDurability() {
return maxDurability;
}
public Integer customModel() {
return customModel;
}
public boolean unbreakable() {
return unbreakable;
}
public List<String> itemFlags() {
return listOrEmpty(itemFlags);
}
public List<LootEnchantment> enchantments() {
return listOrEmpty(enchantments);
}
public List<ItemAttributeModifier> attributes() {
return listOrEmpty(attributes);
}
public List<String> lore() {
return listOrEmpty(lore);
}
/** The authored item key, exactly as written in the pack. Each platform resolves it against its own item registry. */
public String type() {
return type;
}
public String dyeColor() {
return dyeColor;
}
public String leatherColor() {
return leatherColor;
}
/** The custom data of the item; empty when unset. */
public Map<String, Object> customNbt() {
return customNbt == null ? Map.of() : Collections.unmodifiableMap(customNbt);
}
private static <T> List<T> listOrEmpty(List<T> list) {
return list == null ? List.of() : Collections.unmodifiableList(list);
}
}
@@ -0,0 +1,33 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.loot;
import com.volmit.config.Desc;
@Desc("A loot mode is used to describe what to do with the existing loot layers before adding this loot. ADD appends to the building list of tables (dimension tables, then region tables, then biome tables). REPLACE swaps the parent tables for this reference's tables. CLEAR suppresses loot entirely at this point.")
public enum LootMode {
@Desc("Add to the existing parent loot tables")
ADD,
@Desc("Clear all parent loot tables and contribute nothing at this level. Any tables listed here are ignored.")
CLEAR,
@Desc("Replace all parent loot tables with this reference's tables")
REPLACE,
@Desc("Only use when there was no loot table defined by an object")
FALLBACK
}
@@ -0,0 +1,72 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.loot;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinNumber;
import com.volmit.config.ResourceRef;
import com.volmit.config.Snippet;
import java.util.Collections;
import java.util.List;
/**
* The loot tables one dimension, region or biome adds to the containers it covers, written as
* {@code "loot": {"mode": "ADD", "tables": [...], "multiplier": 1}}. Levels stack, dimension first, then region and
* biome; {@link LootMode} says what each does with the tables before it. An entity's {@code loot} has the same shape.
*/
@Snippet("loot-registry")
@Desc("Reference loot tables in this area")
@Feature(id = "iris:loot", name = "Loot", key = "loot", targets = {Target.DIMENSION, Target.REGION, Target.BIOME})
public final class LootSettings implements IrisFeature {
public static final double MAX_MULTIPLIER = 16D;
@Desc("ADD = add on top of parent tables. REPLACE = clear parent tables, then add these. CLEAR = clear parent tables and add nothing, even if tables are listed. FALLBACK = only used when nothing else defined a table.")
private LootMode mode = LootMode.ADD;
@ResourceRef(LootTable.class)
@Desc("Add loot table registries here")
private List<String> tables = List.of();
@MinNumber(0)
@MaxNumber(MAX_MULTIPLIER)
@Desc("Scale loot sources in this area from 0 to 16 times their normal count")
private double multiplier = 1D;
/** Nothing added, nothing scaled: what a level without loot settings means. */
public LootSettings() {
}
public LootMode mode() {
return mode == null ? LootMode.ADD : mode;
}
/** The keys of the loot tables, in order. */
public List<String> tables() {
return tables == null ? List.of() : Collections.unmodifiableList(tables);
}
public double multiplier() {
return multiplier;
}
}
@@ -0,0 +1,38 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.loot;
import com.volmit.config.Desc;
@Desc("An inventory slot type is used to represent a type of slot for items to fit into in any given inventory.")
public enum LootSlot {
@Desc("Typically the one you want to go with. Storage represnents most slots in inventories.")
STORAGE,
@Desc("Used for the fuel slot in Furnaces, Blast furnaces, smokers etc.")
FUEL,
@Desc("Used for the cook slot in furnaces")
FURNACE,
@Desc("Used for the cook slot in blast furnaces")
BLAST_FURNACE,
@Desc("Used for the cook slot in smokers")
SMOKER,
}
@@ -0,0 +1,89 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
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;
import java.util.Collections;
import java.util.List;
/** A loot table of the pack, one file of {@code loot/}. */
@Desc("Represents a loot table. Biomes, Regions & Objects can add or replace the virtual table with these loot tables")
public final class LootTable {
public static final int MAX_PICKED = 64;
public static final int MAX_TRIES = 256;
@Required
@Desc("The name of this loot table")
private String name = "";
@MinNumber(1)
@Desc("The rarity as in 1 in X chance")
private int rarity = 1;
@MinNumber(1)
@MaxNumber(MAX_PICKED)
@Desc("The maximum amount of loot that can be picked in this table at a time, from 1 to 64")
private int maxPicked = 5;
@MinNumber(0)
@MaxNumber(MAX_PICKED)
@Desc("The minimum amount of loot that can be picked in this table at a time, from 0 to 64")
private int minPicked = 1;
@MinNumber(1)
@MaxNumber(MAX_TRIES)
@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();
public LootTable() {
}
public String name() {
return name == null ? "" : name;
}
public int rarity() {
return rarity;
}
public int maxPicked() {
return maxPicked;
}
public int minPicked() {
return minPicked;
}
public int maxTries() {
return maxTries;
}
public List<LootEntry> loot() {
return loot == null ? List.of() : Collections.unmodifiableList(loot);
}
}
@@ -27,9 +27,10 @@
* subpackage per built-in module, named after the module path, such as {@code art.arcane.iris.builtin.deposit}
* for {@code iris:deposit}.
* <p>
* Besides those, it holds narrow facades only Iris's own built-ins use, interfaces Iris's worlds implement, for what
* they need from Iris's internals and no pack module does: {@link art.arcane.iris.builtin.IrisSeed}, and the transitional
* {@link art.arcane.iris.builtin.PendingSettings}. Keep them few: each is a promise.
* Besides those, it holds what the compiled-in built-ins and the built-ins jar must share, since each sees its own copy
* of every other class: narrow facades only Iris's own built-ins use, interfaces Iris's worlds implement
* ({@link art.arcane.iris.builtin.IrisSeed}), and per-world state several of them use
* ({@link art.arcane.iris.builtin.terrain.LayerBlocks}). Keep them few: each is a promise.
* <p>
* Some built-in stages produce Iris's own types, such as the placement settings of {@code iris:prepare}. A
* pack module can require such a stage to run after it, but cannot read its output: the pack load rejects
@@ -0,0 +1,44 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.post;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
/**
* Whether a dimension is post processed, written as {@code "postProcessing": true}. Iris has never read this flag: surface smoothing runs
* whatever it says, so it is declared to keep the key valid in packs.
*/
@Desc("Use post processing or not")
@Feature(id = "iris:post/enabled", name = "Post processing", key = "postProcessing", root = "enabled", targets = Target.DIMENSION)
public final class PostProcessingSettings implements IrisFeature {
public static final boolean DEFAULT_ENABLED = true;
@Desc("Use post processing or not")
private boolean enabled = DEFAULT_ENABLED;
public PostProcessingSettings() {
}
public boolean enabled() {
return enabled;
}
}
@@ -0,0 +1,43 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.post;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
/**
* Whether post processing adds slabs on steps in a dimension, written as {@code "postProcessingSlabs": false}. A dimension without the key adds them.
*/
@Desc("Add slabs in post processing")
@Feature(id = "iris:post/slabs", name = "Post processing slabs", key = "postProcessingSlabs", root = "enabled", targets = Target.DIMENSION)
public final class PostProcessingSlabsSettings implements IrisFeature {
public static final boolean DEFAULT_ENABLED = true;
@Desc("Add slabs in post processing")
private boolean enabled = DEFAULT_ENABLED;
public PostProcessingSlabsSettings() {
}
public boolean enabled() {
return enabled;
}
}
@@ -0,0 +1,43 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.post;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
/**
* Whether post processing paints walls on steep faces in a dimension, written as {@code "postProcessingWalls": false}. A dimension without the key paints them.
*/
@Desc("Add painted walls in post processing")
@Feature(id = "iris:post/walls", name = "Post processing walls", key = "postProcessingWalls", root = "enabled", targets = Target.DIMENSION)
public final class PostProcessingWallsSettings implements IrisFeature {
public static final boolean DEFAULT_ENABLED = true;
@Desc("Add painted walls in post processing")
private boolean enabled = DEFAULT_ENABLED;
public PostProcessingWallsSettings() {
}
public boolean enabled() {
return enabled;
}
}
@@ -23,7 +23,7 @@ import com.volmit.config.MaxNumber;
import com.volmit.config.MinNumber;
import com.volmit.config.Snippet;
/** The terrain slopes a placement or decorator may sit on, written as its {@code slopeCondition}. */
/** The terrain slopes an object placement, a decorator or a terrain layer may sit on, written as its {@code slopeCondition}. */
@Snippet("slope-clip")
@Desc("Limits placement to a minimum and maximum terrain slope")
public final class SlopeClip {
@@ -0,0 +1,247 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.spawn;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinNumber;
import com.volmit.config.Ref;
import com.volmit.config.Reference;
import com.volmit.config.Required;
import com.volmit.config.Snippet;
/**
* A sound, particles, potion effect or commands that play now and then around the players in an area. The same
* settings make the effect an entity shows when it appears ({@link EntityDefinition#spawnEffect()}).
*/
@Snippet("effect")
@Desc("An iris effect")
public final class AmbientEffect {
@Ref(Reference.POTION_EFFECT)
@Desc("The potion effect to apply in this area")
private String potionEffect = "";
@Desc("The particle effect to apply in the area")
private String particleEffect = null;
@MinNumber(-32)
@MaxNumber(32)
@Desc("Randomly offset from the surface to this surface+value")
private int particleOffset = 0;
@MinNumber(-8)
@MaxNumber(8)
@Desc("The alt x, usually represents motion if the particle count is zero. Otherwise an offset.")
private double particleAltX = 0;
@MinNumber(-8)
@MaxNumber(8)
@Desc("The alt y, usually represents motion if the particle count is zero. Otherwise an offset.")
private double particleAltY = 0;
@MinNumber(-8)
@MaxNumber(8)
@Desc("The alt z, usually represents motion if the particle count is zero. Otherwise an offset.")
private double particleAltZ = 0;
@Desc("Randomize the altX by -altX to altX")
private boolean randomAltX = true;
@Desc("Randomize the altY by -altY to altY")
private boolean randomAltY = false;
@Desc("Randomize the altZ by -altZ to altZ")
private boolean randomAltZ = true;
@Desc("The sound to play")
private String sound = null;
@MinNumber(0)
@MaxNumber(512)
@Desc("The max distance from the player the sound will play")
private int soundDistance = 12;
@MinNumber(0.01)
@MaxNumber(1.99)
@Desc("The minimum sound pitch")
private double minPitch = 0.5D;
@MinNumber(0.01)
@MaxNumber(1.99)
@Desc("The max sound pitch")
private double maxPitch = 1.5D;
@MinNumber(0.001)
@MaxNumber(512)
@Desc("The sound volume.")
private double volume = 1.5D;
@MinNumber(0)
@MaxNumber(512)
@Desc("The particle count. Try setting to zero for using the alt xyz to a motion value instead of an offset")
private int particleCount = 0;
@MinNumber(0)
@MaxNumber(64)
@Desc("How far away from the player particles can play")
private int particleDistance = 20;
@MinNumber(0)
@MaxNumber(128)
@Desc("How wide the particles can play (player's view left and right) RADIUS")
private int particleDistanceWidth = 24;
@Desc("An extra value for some particles... Which bukkit doesn't even document.")
private double extra = 0;
@MinNumber(-1)
@MaxNumber(1024)
@Desc("The Potion Strength or -1 to disable")
private int potionStrength = -1;
@MinNumber(1)
@Desc("The max time the potion will last for")
private int potionTicksMax = 155;
@MinNumber(1)
@Desc("The min time the potion will last for")
private int potionTicksMin = 75;
@Required
@MinNumber(0)
@Desc("The effect interval in milliseconds")
private int interval = 150;
@MinNumber(0)
@MaxNumber(16)
@Desc("The effect distance start away")
private int particleAway = 5;
@Required
@MinNumber(1)
@Desc("The chance is 1 in CHANCE per interval")
private int chance = 50;
@Desc("Run commands, with configurable location parameters")
private EffectCommands commandRegistry = null;
public AmbientEffect() {
}
public String potionEffect() {
return potionEffect;
}
public String particleEffect() {
return particleEffect;
}
public int particleOffset() {
return particleOffset;
}
public double particleAltX() {
return particleAltX;
}
public double particleAltY() {
return particleAltY;
}
public double particleAltZ() {
return particleAltZ;
}
public boolean randomAltX() {
return randomAltX;
}
public boolean randomAltY() {
return randomAltY;
}
public boolean randomAltZ() {
return randomAltZ;
}
public String sound() {
return sound;
}
public int soundDistance() {
return soundDistance;
}
public double minPitch() {
return minPitch;
}
public double maxPitch() {
return maxPitch;
}
public double volume() {
return volume;
}
public int particleCount() {
return particleCount;
}
public int particleDistance() {
return particleDistance;
}
public int particleDistanceWidth() {
return particleDistanceWidth;
}
public double extra() {
return extra;
}
public int potionStrength() {
return potionStrength;
}
public int potionTicksMax() {
return potionTicksMax;
}
public int potionTicksMin() {
return potionTicksMin;
}
public int interval() {
return interval;
}
public int particleAway() {
return particleAway;
}
public int chance() {
return chance;
}
/** The commands the effect runs; null for none. */
public EffectCommands commandRegistry() {
return commandRegistry;
}
}
@@ -0,0 +1,100 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
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;
import java.util.Collections;
import java.util.List;
@Snippet("command-registry")
@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();
@MinNumber(-8)
@MaxNumber(8)
@Desc("The alt x, usually represents motion if the particle count is zero. Otherwise an offset.")
private double commandOffsetX = 0;
@MinNumber(-8)
@MaxNumber(8)
@Desc("The alt y, usually represents motion if the particle count is zero. Otherwise an offset.")
private double commandOffsetY = 0;
@MinNumber(-8)
@MaxNumber(8)
@Desc("The alt z, usually represents motion if the particle count is zero. Otherwise an offset.")
private double commandOffsetZ = 0;
@Desc("Randomize the altX from -altX to altX")
private boolean commandRandomAltX = true;
@Desc("Randomize the altY from -altY to altY")
private boolean commandRandomAltY = false;
@Desc("Randomize the altZ from -altZ to altZ")
private boolean commandRandomAltZ = true;
@Desc("Randomize location for all separate commands (true), or run all on the same location (false)")
private boolean commandAllRandomLocations = true;
public EffectCommands() {
}
public List<SpawnCommand> rawCommands() {
return rawCommands == null ? List.of() : Collections.unmodifiableList(rawCommands);
}
public double commandOffsetX() {
return commandOffsetX;
}
public double commandOffsetY() {
return commandOffsetY;
}
public double commandOffsetZ() {
return commandOffsetZ;
}
public boolean commandRandomAltX() {
return commandRandomAltX;
}
public boolean commandRandomAltY() {
return commandRandomAltY;
}
public boolean commandRandomAltZ() {
return commandRandomAltZ;
}
public boolean commandAllRandomLocations() {
return commandAllRandomLocations;
}
}
@@ -0,0 +1,47 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.spawn;
import com.volmit.FeatureAttachment.Target;
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;
/**
* The ambient effects one region or biome declares, written as {@code "effects": [...]}, the list of
* {@link AmbientEffect}s. They play around every player in the area.
*/
@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 = {Target.REGION, Target.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();
public EffectSettings() {
}
public List<AmbientEffect> effects() {
return effects == null ? List.of() : Collections.unmodifiableList(effects);
}
}
@@ -0,0 +1,274 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.spawn;
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;
import java.util.Collections;
import java.util.List;
/** An entity of the pack, one file of {@code entities/}: what spawners and markers spawn, with its equipment, attributes, passengers and loot. */
@Desc("Represents an iris entity.")
public final class EntityDefinition {
@Required
@Ref(Reference.ENTITY)
@Desc("The namespaced key of the entity type to spawn, such as minecraft:zombie or alexsmobs:grizzly_bear. To spawn a mob from another plugin or provider, set this type to unknown and define the special type.")
private String type = null;
@Desc("The SpawnReason name to spawn the entity with, such as NATURAL or COMMAND.")
private String reason = null;
@Desc("The custom name of this entity")
private String customName = "";
@Desc("Should the name on this entity be visible even if you arent looking at it.")
private boolean customNameVisible = false;
@Desc("If this entity type is a mob, should it be aware of it's surroundings & interact with the world.")
private boolean aware = true;
@Desc("If this entity type is a creature, should it have ai goals.")
private boolean ai = true;
@Desc("Should this entity be glowing")
private boolean glowing = false;
@Desc("Should gravity apply to this entity")
private boolean gravity = true;
@Desc("When an entity is invulnerable it can only be damaged by players increative mode.")
private boolean invulnerable = false;
@Desc("When an entity is silent it will not produce any sound.")
private boolean silent = false;
@Desc("Should this entity be allowed to pickup items")
private boolean pickupItems = false;
@Desc("Should this entity be removed when far away")
private boolean removable = false;
@Desc("Entity helmet equipment")
private LootEntry helmet = null;
@Desc("Entity chestplate equipment")
private LootEntry chestplate = null;
@Desc("Entity boots equipment")
private LootEntry boots = null;
@Desc("Entity leggings equipment")
private LootEntry leggings = null;
@Desc("Entity main hand equipment")
private LootEntry mainHand = null;
@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();
@Desc("Loot tables for drops. Only the tables list is honored for entities; mode and multiplier are ignored, and the tables replace vanilla drops entirely.")
private LootSettings loot = new LootSettings();
@Desc("If specified, this entity will be leashed by this entity. I.e. THIS ENTITY Leashed by SPECIFIED. This has no effect on EnderDragons, Withers, Players, or Bats.Non-living entities excluding leashes will not persist as leashholders.")
private EntityDefinition leashHolder = null;
@Desc("If specified, this entity will spawn with an effect")
private AmbientEffect spawnEffect = null;
@Desc("Simply moves the entity from below the surface slowly out of the ground as a spawn-in effect")
private boolean spawnEffectRiseOutOfGround = false;
@Desc("The main gene for a panda if the entity type is a panda. One of NORMAL, LAZY, WORRIED, PLAYFUL, BROWN, WEAK or AGGRESSIVE.")
private String pandaMainGene = null;
@Desc("The hidden gene for a panda if the entity type is a panda. One of NORMAL, LAZY, WORRIED, PLAYFUL, BROWN, WEAK or AGGRESSIVE.")
private String pandaHiddenGene = null;
@Desc("The this entity is ageable, set it's baby status")
private boolean baby = false;
@Desc("If the entity should never be culled.")
private boolean keepEntity = false;
@Desc("The surface type to spawn this mob on")
private SpawnSurface surface = SpawnSurface.LAND;
@Ref(Reference.SPECIAL_ENTITY)
@Desc("Create a mob from another plugin, such as Mythic Mobs. Should be in the format of a namespace of PluginName:MobName")
private String specialType = "";
@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();
public EntityDefinition() {
}
public String type() {
return type;
}
public String reason() {
return reason;
}
public String customName() {
return customName;
}
public boolean customNameVisible() {
return customNameVisible;
}
public boolean aware() {
return aware;
}
public boolean ai() {
return ai;
}
public boolean glowing() {
return glowing;
}
public boolean gravity() {
return gravity;
}
public boolean invulnerable() {
return invulnerable;
}
public boolean silent() {
return silent;
}
public boolean pickupItems() {
return pickupItems;
}
public boolean removable() {
return removable;
}
public LootEntry helmet() {
return helmet;
}
public LootEntry chestplate() {
return chestplate;
}
public LootEntry boots() {
return boots;
}
public LootEntry leggings() {
return leggings;
}
public LootEntry mainHand() {
return mainHand;
}
public LootEntry offHand() {
return offHand;
}
public List<EntityDefinition> passengers() {
return passengers == null ? List.of() : Collections.unmodifiableList(passengers);
}
public List<ItemAttributeModifier> attributes() {
return attributes == null ? List.of() : Collections.unmodifiableList(attributes);
}
/** The loot the entity drops when it dies; only its tables count. */
public LootSettings loot() {
return loot == null ? new LootSettings() : loot;
}
public EntityDefinition leashHolder() {
return leashHolder;
}
public AmbientEffect spawnEffect() {
return spawnEffect;
}
public boolean spawnEffectRiseOutOfGround() {
return spawnEffectRiseOutOfGround;
}
public String pandaMainGene() {
return pandaMainGene;
}
public String pandaHiddenGene() {
return pandaHiddenGene;
}
public boolean baby() {
return baby;
}
public boolean keepEntity() {
return keepEntity;
}
public SpawnSurface surface() {
return surface == null ? SpawnSurface.LAND : surface;
}
public String specialType() {
return specialType;
}
/** Whether the entity is a mob of another plugin. */
public boolean isSpecialType() {
return specialType != null && !specialType.isEmpty();
}
public boolean applySettingsToCustomMobAnyways() {
return applySettingsToCustomMobAnyways;
}
public List<SpawnCommand> rawCommands() {
return rawCommands == null ? List.of() : Collections.unmodifiableList(rawCommands);
}
}
@@ -0,0 +1,66 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.spawn;
import com.volmit.config.Desc;
import com.volmit.config.MinNumber;
import com.volmit.config.Required;
import com.volmit.config.ResourceRef;
import com.volmit.config.Snippet;
@Snippet("entity-spawn")
@Desc("Represents an entity spawn during initial chunk generation")
public final class EntitySpawn {
@ResourceRef(EntityDefinition.class)
@Required
@Desc("The entity")
private String entity = "";
@MinNumber(1)
@Desc("The 1 in RARITY chance for this entity to spawn")
private int rarity = 1;
@MinNumber(1)
@Desc("The minumum of this entity to spawn")
private int minSpawns = 1;
@MinNumber(1)
@Desc("The max of this entity to spawn")
private int maxSpawns = 1;
public EntitySpawn() {
}
/** The key of the entity of the pack. */
public String entity() {
return entity;
}
public int rarity() {
return rarity;
}
public int minSpawns() {
return minSpawns;
}
public int maxSpawns() {
return maxSpawns;
}
}
@@ -0,0 +1,78 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
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;
import java.util.Collections;
import java.util.List;
@Snippet("command")
@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();
@Desc("The delay for running the command. Instant by default")
private long delay = 0;
@Desc("If this should be repeated (indefinitely, cannot be cancelled). This does not persist with server-restarts, so it only repeats when the chunk is generated.")
private boolean repeat = false;
@Desc("The delay between repeats, in server ticks (by default 100, so 5 seconds)")
private long repeatDelay = 100;
@Desc("The block of 24 hour time in which the command should execute.")
private SpawnTimeBlock timeBlock = new SpawnTimeBlock();
@Desc("The weather that is required for the command to execute.")
private SpawnWeather weather = SpawnWeather.ANY;
public SpawnCommand() {
}
public List<String> commands() {
return commands == null ? List.of() : Collections.unmodifiableList(commands);
}
public long delay() {
return delay;
}
public boolean repeat() {
return repeat;
}
public long repeatDelay() {
return repeatDelay;
}
public SpawnTimeBlock timeBlock() {
return timeBlock == null ? new SpawnTimeBlock() : timeBlock;
}
public SpawnWeather weather() {
return weather == null ? SpawnWeather.ANY : weather;
}
}
@@ -0,0 +1,80 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.spawn;
import com.volmit.config.Desc;
import com.volmit.config.Snippet;
import java.util.concurrent.TimeUnit;
@Snippet("duration")
@Desc("Represents a combined duration. Fill each property to add time into a single duration")
public final class SpawnDuration {
private static final long MILLISECONDS_PER_MINECRAFT_TICK = 50L;
private static final long MILLISECONDS_PER_MINECRAFT_HOUR = 50_000L;
private static final long MILLISECONDS_PER_MINECRAFT_DAY = 1_200_000L;
private static final long MILLISECONDS_PER_MINECRAFT_WEEK = 8_400_000L;
private static final long MILLISECONDS_PER_MINECRAFT_LUNAR_CYCLE = 9_600_000L;
@Desc("Milliseconds (1000ms = 1 second)")
private int milliseconds = 0;
@Desc("Minecraft Ticks (20 minecraft ticks = 1 second)")
private int minecraftTicks = 0;
@Desc("Seconds (60 seconds = 1 minute)")
private int seconds = 0;
@Desc("Minutes (60 minutes = 1 hour)")
private int minutes = 0;
@Desc("Minecraft Hours (about 50 real seconds)")
private int minecraftHours = 0;
@Desc("Hours (24 hours = 1 day)")
private int hours = 0;
@Desc("Minecraft Days (1 minecraft day = 20 real minutes)")
private int minecraftDays = 0;
@Desc("Minecraft Weeks (7 minecraft days = 2 real hours and 20 real minutes)")
private int minecraftWeeks = 0;
@Desc("Minecraft Lunar Cycles (8 minecraft days = 2 real hours and 40 real minutes)")
private int minecraftLunarCycles = 0;
@Desc("REAL (not minecraft) Days")
private int days = 0;
public SpawnDuration() {
}
public long toMilliseconds() {
return milliseconds
+ TimeUnit.SECONDS.toMillis(seconds)
+ TimeUnit.MINUTES.toMillis(minutes)
+ TimeUnit.HOURS.toMillis(hours)
+ TimeUnit.DAYS.toMillis(days)
+ (minecraftTicks * MILLISECONDS_PER_MINECRAFT_TICK)
+ (minecraftHours * MILLISECONDS_PER_MINECRAFT_HOUR)
+ (minecraftDays * MILLISECONDS_PER_MINECRAFT_DAY)
+ (minecraftWeeks * MILLISECONDS_PER_MINECRAFT_WEEK)
+ (minecraftLunarCycles * MILLISECONDS_PER_MINECRAFT_LUNAR_CYCLE);
}
}
@@ -0,0 +1,36 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.spawn;
import com.volmit.config.Desc;
@Desc("Terrain modes are used to decide the generator type currently used")
public enum SpawnGroup {
@Desc("Spawns on the terrain surface")
NORMAL,
@Desc("Spawns in cave-air and low light level areas")
CAVE,
@Desc("Spawns underwater")
UNDERWATER,
@Desc("Spawns in beaches")
BEACH
}
@@ -0,0 +1,64 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
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;
import java.util.List;
/** A marker of the pack, one file of {@code markers/}: object placements put markers in the world and a marker names the spawners that fire there. */
@Desc("Represents a marker")
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.")
private boolean removeOnChange = true;
@Desc("If true, markers will only be placed here if there is 2 air blocks above it.")
private boolean emptyAbove = true;
@Desc("If this marker is used, what is the chance it removes itself. For example 25% (0.25) would mean that on average 4 uses will remove a specific marker. Set this below 0 (-1) to never exhaust & set this to 1 or higher to always exhaust on first use.")
private double exhaustionChance = 0;
public SpawnMarker() {
}
/** The keys of the spawners that fire at the marker. */
public List<String> spawners() {
return spawners == null ? List.of() : Collections.unmodifiableList(spawners);
}
public boolean removeOnChange() {
return removeOnChange;
}
public boolean emptyAbove() {
return emptyAbove;
}
public double exhaustionChance() {
return exhaustionChance;
}
}
@@ -0,0 +1,50 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.spawn;
import com.volmit.config.Desc;
import com.volmit.config.Snippet;
@Snippet("rate")
@Desc("Represents a count of something per time duration")
public final class SpawnRate {
@Desc("The amount of things. Leave 0 for infinite (meaning always spawn whenever)")
private int amount = 0;
@Desc("The time interval. Leave blank for infinite 0 (meaning always spawn all the time)")
private SpawnDuration per = new SpawnDuration();
public SpawnRate() {
}
/** The milliseconds between two things: the interval divided by the amount, at least 1. */
public long interval() {
long t = duration().toMilliseconds() / (amount == 0 ? 1 : amount);
return Math.abs(t <= 0 ? 1 : t);
}
/** Whether there is no limit: no interval was given. */
public boolean isInfinite() {
return duration().toMilliseconds() == 0;
}
private SpawnDuration duration() {
return per == null ? new SpawnDuration() : per;
}
}
@@ -0,0 +1,40 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.spawn;
import com.volmit.config.Desc;
@Desc("The type of surface entities should spawn on")
public enum SpawnSurface {
@Desc("Land surfaces")
LAND,
@Desc("Any surfaces animals can spawn on, such as dirt, grass and podzol")
ANIMAL,
@Desc("Within the water")
WATER,
@Desc("On land or on water")
OVERWORLD,
@Desc("Within lava")
LAVA
}
@@ -0,0 +1,50 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.spawn;
import com.volmit.config.Desc;
import com.volmit.config.Snippet;
@Snippet("time-block")
@Desc("Represents a time of day (24h time, not 12h am/pm). Set both to the same number for any time. If they are both set to -1, it will always be not allowed.")
public final class SpawnTimeBlock {
private static final double NEVER = -1;
@Desc("The beginning hour. Set both to the same number for any time. If they are both set to -1, it will always be not allowed.")
private double startHour = 0;
@Desc("The ending hour. Set both to the same number for any time. If they are both set to -1, it will always be not allowed.")
private double endHour = 0;
public SpawnTimeBlock() {
}
/** Whether {@code hour}, a time of day from 0 to 24, lies in the block; a block that wraps past midnight includes both ends. */
public boolean contains(double hour) {
if (startHour == endHour) {
return endHour != NEVER;
}
if (startHour > endHour) {
return hour >= startHour || hour <= endHour;
}
return hour >= startHour && hour <= endHour;
}
}
@@ -0,0 +1,46 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.spawn;
import com.volmit.config.Desc;
@Desc("Represents a weather type")
public enum SpawnWeather {
@Desc("Represents when weather is not causing downfall")
NONE,
@Desc("Represents rain or snow")
DOWNFALL,
@Desc("Represents rain or snow with thunder")
DOWNFALL_WITH_THUNDER,
@Desc("Any weather")
ANY;
/** Whether the weather of a world, which is {@code storming} and {@code thundering} or neither, is this one. */
public boolean matches(boolean storming, boolean thundering) {
return switch (this) {
case NONE -> !storming && !thundering;
case DOWNFALL -> storming;
case DOWNFALL_WITH_THUNDER -> storming && thundering;
case ANY -> true;
};
}
}
@@ -0,0 +1,98 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
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;
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();
@Desc("This spawner will not spawn in a given chunk if that chunk has more than the defined amount of living entities.")
private int maxEntitiesPerChunk = 1;
@Desc("The block of 24 hour time to contain this spawn in.")
private SpawnTimeBlock timeBlock = new SpawnTimeBlock();
@Desc("The weather condition required for this spawner to fire.")
private SpawnWeather weather = SpawnWeather.ANY;
@Desc("The maximum rate this spawner can fire")
private SpawnRate maximumRate = new SpawnRate();
@Desc("The maximum rate this spawner can fire on a specific chunk")
private SpawnRate maximumRatePerChunk = new SpawnRate();
@Desc("The light levels this spawn is allowed to run in (0-15 inclusive)")
private Range allowedLightLevels = Range.of(0, 15);
@Desc("Where should these spawns be placed")
private SpawnGroup group = SpawnGroup.NORMAL;
public Spawner() {
}
public List<EntitySpawn> spawns() {
return spawns == null ? List.of() : Collections.unmodifiableList(spawns);
}
public List<EntitySpawn> initialSpawns() {
return initialSpawns == null ? List.of() : Collections.unmodifiableList(initialSpawns);
}
public int maxEntitiesPerChunk() {
return maxEntitiesPerChunk;
}
public SpawnTimeBlock timeBlock() {
return timeBlock == null ? new SpawnTimeBlock() : timeBlock;
}
public SpawnWeather weather() {
return weather == null ? SpawnWeather.ANY : weather;
}
public SpawnRate maximumRate() {
return maximumRate == null ? new SpawnRate() : maximumRate;
}
public SpawnRate maximumRatePerChunk() {
return maximumRatePerChunk == null ? new SpawnRate() : maximumRatePerChunk;
}
public Range allowedLightLevels() {
return allowedLightLevels == null ? Range.of(0, 15) : allowedLightLevels;
}
public SpawnGroup group() {
return group == null ? SpawnGroup.NORMAL : group;
}
}
@@ -0,0 +1,49 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.spawn;
import com.volmit.FeatureAttachment.Target;
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;
import java.util.List;
/**
* The spawners one dimension, region or biome lists, written as {@code "entitySpawners": [...]}, the keys of the
* {@link Spawner}s. A chunk may fire the spawners of its dimension, region and biome.
*/
@Desc("Entity spawners that fire in this area")
@Feature(id = "iris:spawn", name = "Entity spawners", key = "entitySpawners", root = "spawners", targets = {Target.DIMENSION, Target.REGION, Target.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();
public SpawnerSettings() {
}
public List<String> spawners() {
return spawners == null ? List.of() : Collections.unmodifiableList(spawners);
}
}
@@ -0,0 +1,43 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.terrain;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import java.util.List;
/**
* The layers of material on the ceilings of caves in a biome, written as {@code "caveCeilingLayers": [...]}, the list of layers.
*/
@Desc("Layers of materials placed on cave ceilings in this biome, indexed upward from the ceiling surface. Must not have more entries than layers, whose height generators it reuses. Omitting this leaves cave ceilings unchanged.")
@Feature(id = "iris:terrain/cave-ceiling-layers", name = "Cave ceiling layers", key = "caveCeilingLayers", root = "layers", targets = Target.BIOME)
public final class CaveCeilingLayersSettings implements IrisFeature {
@Desc("Layers of materials placed on cave ceilings in this biome, indexed upward from the ceiling surface. Must not have more entries than layers, whose height generators it reuses. Omitting this leaves cave ceilings unchanged.")
private List<PaletteLayer> layers = List.of();
public CaveCeilingLayersSettings() {
}
public List<PaletteLayer> layers() {
return layers == null ? List.of() : layers;
}
}
@@ -0,0 +1,47 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.terrain;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.block.BlockSpec;
import com.volmit.block.PaletteSpec;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import java.util.List;
/**
* The blocks that fill ocean columns and cave aquifers of a dimension, written as {@code "fluidPalette": {...}}, a palette. A dimension without the key is water.
*/
@Desc("The dimension fluid block palette used for ocean columns and cave aquifers.")
@Feature(id = "iris:terrain/fluid-palette", name = "Fluid palette", key = "fluidPalette", root = "palette", targets = Target.DIMENSION)
public final class FluidPaletteSettings implements IrisFeature {
private static final String DEFAULT_BLOCK = "water";
@Desc("The dimension fluid block palette used for ocean columns and cave aquifers.")
private PaletteSpec palette = PaletteSpec.of(List.of(BlockSpec.of(DEFAULT_BLOCK)));
public FluidPaletteSettings() {
}
public PaletteSpec palette() {
return palette == null ? PaletteSpec.of(List.of(BlockSpec.of(DEFAULT_BLOCK))) : palette;
}
}
@@ -0,0 +1,46 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.terrain;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
/**
* A dimension's {@code hideOresForHiddenOre}: whether every ore block the generator would place is replaced with its base
* material. Written as the bare boolean.
*/
@Desc("When true, every ore block the generator would place (terrain ores, deposits, ores inside objects) is replaced with its base material such as stone, deepslate or netherrack, so drop-control plugins like HiddenOre can manage ore rewards themselves")
@Feature(id = "iris:terrain/hide-ores", name = "Hide ores", key = "hideOresForHiddenOre", root = "hide", targets = Target.DIMENSION)
public final class HideOresSettings implements IrisFeature {
@Desc("When true, every ore block the generator would place (terrain ores, deposits, ores inside objects) is replaced with its base material such as stone, deepslate or netherrack, so drop-control plugins like HiddenOre can manage ore rewards themselves")
private boolean hide = false;
public HideOresSettings() {
}
public HideOresSettings(boolean hide) {
this.hide = hide;
}
public boolean hide() {
return hide;
}
}
@@ -0,0 +1,129 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.terrain;
import art.arcane.volmlib.util.math.RNG;
import com.volmit.block.BlockRegistry;
import com.volmit.block.BlockSpec;
import com.volmit.block.BlockState;
import com.volmit.noise.NoiseSampler;
import com.volmit.resource.PackResources;
import com.volmit.world.PackWorld;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* What the blocks of the biomes' palette layers ({@link PaletteLayer}) are in one world, and which of them a layer picks
* where. Terrain, caves and post processing all pick from the same layers (a biome's wall is painted in caves and on
* cliffs), and a layer's block noise is built once per world, from the random of whichever of them asks first, as layers
* always were. So the picks live here, in the world's state under this class, which the compiled-in built-ins and the
* built-ins jar both see: one place, one noise per layer, whichever module asks.
*/
public final class LayerBlocks {
/** A layer without blocks picks none. */
public static final int NONE = -1;
private final PackResources resources;
private final Map<PaletteLayer, Picks> picks = new ConcurrentHashMap<>();
private LayerBlocks(PackResources resources) {
this.resources = resources;
}
/** The layer blocks of {@code world}. */
public static LayerBlocks of(PackWorld world) {
return world.state(LayerBlocks.class, created -> new LayerBlocks(created.resources()));
}
/** The layer's blocks resolved for the world's pack, each repeated by its weight: what an index from {@link #pick} names. */
public List<BlockState> blocks(PaletteLayer layer) {
return picksOf(layer).blocks();
}
/**
* The index into {@link #blocks(PaletteLayer)} the layer picks at the position, or {@link #NONE} when it has no block.
* The noise is seeded from {@code parent} and {@code signature} the first time anyone asks about this layer; a pick
* outside the palette falls back to its first block.
*/
public int pick(PaletteLayer layer, RNG parent, int signature, double x, double y, double z) {
Picks layerPicks = picksOf(layer);
int size = layerPicks.blocks().size();
if (size <= 1) {
return size - 1;
}
double zoom = layer.zoom();
double noise = layerPicks.noise(parent, signature).sample(x / zoom, y / zoom, z / zoom);
int index = (int) Math.round(noise * (size - 1));
return index < 0 || index >= size ? 0 : index;
}
private Picks picksOf(PaletteLayer layer) {
Picks known = picks.get(layer);
if (known != null) {
return known;
}
return picks.computeIfAbsent(layer, declared -> new Picks(declared, weighted(resources.blocks(), declared.palette()), resources));
}
private static List<BlockState> weighted(BlockRegistry registry, List<BlockSpec> palette) {
List<BlockState> weighted = new ArrayList<>();
for (BlockSpec spec : palette) {
BlockState block = registry.resolve(spec);
for (int n = 0; n < spec.weight(); n++) {
weighted.add(block);
}
}
return List.copyOf(weighted);
}
/** One layer's blocks and its block noise, built by the first caller. */
private static final class Picks {
private final PaletteLayer layer;
private final List<BlockState> blocks;
private final PackResources resources;
private volatile NoiseSampler noise;
Picks(PaletteLayer layer, List<BlockState> blocks, PackResources resources) {
this.layer = layer;
this.blocks = blocks;
this.resources = resources;
}
List<BlockState> blocks() {
return blocks;
}
NoiseSampler noise(RNG parent, int signature) {
NoiseSampler built = noise;
if (built != null) {
return built;
}
synchronized (this) {
if (noise == null) {
long seed = parent.nextParallelRNG(signature).nextParallelRNG(layer.minHeight() + layer.maxHeight() + blocks.size()).getSeed();
noise = resources.noise().sampler(layer.style(), seed);
}
return noise;
}
}
}
}
@@ -0,0 +1,44 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.terrain;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import java.util.List;
/**
* The layers of material a biome is made of below its surface, written as {@code "layers": [...]}, the list of layers. A biome
* that declares none gets one layer of grass, so the settings class default is what a biome without the key has.
*/
@Desc("This defines the layers of materials in this biome. Each layer has a palette and min/max height and some other properties. Usually a grassy/sandy layer then a dirt layer then a stone layer. Iris will fill in the remaining blocks below your layers with stone.")
@Feature(id = "iris:terrain/layers", name = "Layers", key = "layers", root = "layers", targets = Target.BIOME)
public final class LayersSettings implements IrisFeature {
@Desc("This defines the layers of materials in this biome. Each layer has a palette and min/max height and some other properties. Usually a grassy/sandy layer then a dirt layer then a stone layer. Iris will fill in the remaining blocks below your layers with stone.")
private List<PaletteLayer> layers = List.of(new PaletteLayer());
public LayersSettings() {
}
public List<PaletteLayer> layers() {
return layers == null ? List.of() : layers;
}
}
@@ -0,0 +1,41 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.terrain;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
/** How many layers a locked biome iterates below the surface, written as {@code "lockLayersMax": 7}. A biome without the key iterates seven. */
@Desc("The max layers to iterate below the surface for locked layer biomes (mesa).")
@Feature(id = "iris:terrain/lock-layers-max", name = "Lock layers max", key = "lockLayersMax", root = "layers", targets = Target.BIOME)
public final class LockLayersMaxSettings implements IrisFeature {
public static final int DEFAULT_LAYERS = 7;
@Desc("The max layers to iterate below the surface for locked layer biomes (mesa).")
private int layers = DEFAULT_LAYERS;
public LockLayersMaxSettings() {
}
public int layers() {
return layers;
}
}
@@ -0,0 +1,39 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.terrain;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
/** Whether a biome's layers are locked to its highest possible height, written as {@code "lockLayers": true}. A biome without the key is not locked. */
@Desc("Layers no longer descend from the surface block, they descend from the max possible height the biome can produce (constant) creating mesa like layers.")
@Feature(id = "iris:terrain/lock-layers", name = "Lock layers", key = "lockLayers", root = "locked", targets = Target.BIOME)
public final class LockLayersSettings implements IrisFeature {
@Desc("Layers no longer descend from the surface block, they descend from the max possible height the biome can produce (constant) creating mesa like layers.")
private boolean locked = false;
public LockLayersSettings() {
}
public boolean locked() {
return locked;
}
}
@@ -0,0 +1,80 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.terrain;
import com.volmit.block.PaletteSpec;
import com.volmit.config.Desc;
import com.volmit.config.MaxNumber;
import com.volmit.config.MinNumber;
import com.volmit.config.Range;
import com.volmit.noise.NoiseStyle;
import java.util.List;
/**
* One ore generator of a dimension, region or biome, an entry of its {@code ores} list: single ore blocks scattered
* through the terrain by a noise field, in a vertical band. A value of IrisApi types only; the terrain module resolves
* its blocks and builds its noise ({@code ResolvedOre}).
*/
@Desc("Scatters single ore blocks through terrain by sampling a noise field at every block in a vertical band. Defined on dimensions, regions, or biomes; the most specific level wins.")
public final class OreGenerator {
private static final double DEFAULT_THRESHOLD = 0.5;
private static final double DEFAULT_RANGE_MIN = 30;
private static final double DEFAULT_RANGE_MAX = 80;
@Desc("The ore blocks to place. An empty palette generates nothing, so this must be set for the generator to have any effect.")
private PaletteSpec palette = PaletteSpec.of(List.of());
@Desc("The noise style sampled per block to decide where ore appears. STATIC gives independent random speckle; smoother styles give veiny clusters.")
private NoiseStyle chanceStyle = NoiseStyle.of("STATIC");
@Desc("When true this generator also replaces surface-layer blocks (it runs before layers and fluid); when false it only replaces underground rock.")
private boolean generateSurface = false;
@MinNumber(0)
@MaxNumber(1)
@Desc("Noise cutoff: a block becomes ore when the sampled noise is at or below this value, so higher means more ore. 0 disables, 1 replaces everything in range.")
private double threshold = DEFAULT_THRESHOLD;
@Desc("Vertical band (min, max) this ore can generate in, in engine-local Y where 0 is the bottom of the dimension, not world Y.")
private Range range = Range.of(DEFAULT_RANGE_MIN, DEFAULT_RANGE_MAX);
public OreGenerator() {
}
public PaletteSpec palette() {
return palette;
}
public NoiseStyle chanceStyle() {
return chanceStyle;
}
public boolean generateSurface() {
return generateSurface;
}
public double threshold() {
return threshold;
}
public Range range() {
return range;
}
}
@@ -0,0 +1,52 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.terrain;
import com.volmit.FeatureAttachment.Target;
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;
/**
* The ore generators one dimension, region or biome declares, written as {@code "ores": [...]}, the list of generators.
* Levels stack: a column's ores come from its biome first, then its region, then the dimension. IrisApi types only,
* like {@link OreGenerator}.
*/
@Desc("Collection of ores to be generated")
@Feature(id = "iris:terrain/ores", name = "Ores", key = "ores", root = "generators", targets = {Target.DIMENSION, Target.REGION, Target.BIOME})
public final class OreSettings implements IrisFeature {
@MinItems(1)
@Desc("Collection of ores to be generated")
private List<OreGenerator> generators = List.of();
public OreSettings() {
}
public OreSettings(List<OreGenerator> generators) {
this.generators = List.copyOf(generators);
}
public List<OreGenerator> generators() {
return generators == null ? List.of() : Collections.unmodifiableList(generators);
}
}
@@ -0,0 +1,103 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.terrain;
import art.arcane.iris.builtin.prepare.SlopeClip;
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;
import com.volmit.noise.NoiseStyle;
import java.util.List;
/**
* One layer of surface or subsurface material of a biome, as packs write it in the biome's layers, sea layers, cave
* ceiling layers, slab and wall, in a floating island's bottom palette or under {@code snippet/biome-palette/}. A value of
* IrisApi types only; the terrain module resolves the blocks and builds the noise.
*/
@Snippet("biome-palette")
@Desc("A layer of surface / subsurface material in biomes")
public final class PaletteLayer {
private static final String STATIC_NOISE = "STATIC";
private static final String DEFAULT_BLOCK = "grass_block";
@Desc("The style of noise")
private NoiseStyle style = NoiseStyle.of(STATIC_NOISE);
@MinNumber(0)
@MaxNumber(2032)
@Desc("The min thickness of this layer")
private int minHeight = 1;
@MinNumber(1)
@MaxNumber(2032)
@Desc("The max thickness of this layer")
private int maxHeight = 1;
@Desc("If set, this layer only shows where the terrain slope is within these bounds; outside them the layer is skipped entirely. Thickness is not scaled by slope.")
private SlopeClip slopeCondition = new SlopeClip();
@MinNumber(0.0001)
@Desc("The terrain zoom mostly for zooming in on a wispy palette")
private double zoom = 5;
@Required
@MinItems(1)
@Desc("The palette of blocks to be used in this layer")
private List<BlockSpec> palette = List.of(BlockSpec.of(DEFAULT_BLOCK));
/** A layer with every option at its default, as packs get it from {@code {}}. */
public PaletteLayer() {
}
/** A layer with the default options and no block to place, which is what a biome without a slab or wall has. */
public static PaletteLayer withoutBlocks() {
PaletteLayer layer = new PaletteLayer();
layer.palette = List.of();
return layer;
}
public NoiseStyle style() {
return style == null ? NoiseStyle.of(STATIC_NOISE) : style;
}
public int minHeight() {
return minHeight;
}
public int maxHeight() {
return maxHeight;
}
public SlopeClip slopeCondition() {
return slopeCondition == null ? new SlopeClip() : slopeCondition;
}
public double zoom() {
return zoom;
}
public List<BlockSpec> palette() {
return palette == null ? List.of() : palette;
}
}
@@ -0,0 +1,47 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.terrain;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.block.BlockSpec;
import com.volmit.block.PaletteSpec;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import java.util.List;
/**
* The blocks that fill terrain below the layers of a dimension, written as {@code "rockPalette": {...}}, a palette. A dimension without the key is stone.
*/
@Desc("The palette of blocks for 'stone'")
@Feature(id = "iris:terrain/rock-palette", name = "Rock palette", key = "rockPalette", root = "palette", targets = Target.DIMENSION)
public final class RockPaletteSettings implements IrisFeature {
private static final String DEFAULT_BLOCK = "stone";
@Desc("The palette of blocks for 'stone'")
private PaletteSpec palette = PaletteSpec.of(List.of(BlockSpec.of(DEFAULT_BLOCK)));
public RockPaletteSettings() {
}
public PaletteSpec palette() {
return palette == null ? PaletteSpec.of(List.of(BlockSpec.of(DEFAULT_BLOCK))) : palette;
}
}
@@ -0,0 +1,43 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.terrain;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
import java.util.List;
/**
* The layers of material filling the water column of a sea biome, written as {@code "seaLayers": [...]}, the list of layers.
*/
@Desc("Layers of materials filling the water column of sea biomes, indexed downward from the water surface. Anything below the last layer is filled with the dimension fluid palette, not stone.")
@Feature(id = "iris:terrain/sea-layers", name = "Sea layers", key = "seaLayers", root = "layers", targets = Target.BIOME)
public final class SeaLayersSettings implements IrisFeature {
@Desc("Layers of materials filling the water column of sea biomes, indexed downward from the water surface. Anything below the last layer is filled with the dimension fluid palette, not stone.")
private List<PaletteLayer> layers = List.of();
public SeaLayersSettings() {
}
public List<PaletteLayer> layers() {
return layers == null ? List.of() : layers;
}
}
@@ -0,0 +1,41 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.terrain;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
/**
* The slab post processing places on steps in a biome, written as {@code "slab": {...}}, one layer. A biome without the key has no slab.
*/
@Desc("The default slab if iris decides to place a slab in this biome. Default is no slab.")
@Feature(id = "iris:terrain/slab", name = "Slab", key = "slab", root = "layer", targets = Target.BIOME)
public final class SlabSettings implements IrisFeature {
@Desc("The default slab if iris decides to place a slab in this biome. Default is no slab.")
private PaletteLayer layer = PaletteLayer.withoutBlocks();
public SlabSettings() {
}
public PaletteLayer layer() {
return layer == null ? PaletteLayer.withoutBlocks() : layer;
}
}
@@ -0,0 +1,42 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.terrain;
import com.volmit.FeatureAttachment.Target;
import com.volmit.IrisFeature;
import com.volmit.config.Desc;
import com.volmit.config.Feature;
/**
* The wall post processing paints on steep faces, and caves paint on their walls, in a biome, written as {@code "wall": {...}}, one layer.
* A biome without the key has no wall.
*/
@Desc("The default wall if iris decides to place a wall higher than 2 blocks (steep hills or possibly cliffs)")
@Feature(id = "iris:terrain/wall", name = "Wall", key = "wall", root = "layer", targets = Target.BIOME)
public final class WallSettings implements IrisFeature {
@Desc("The default wall if iris decides to place a wall higher than 2 blocks (steep hills or possibly cliffs)")
private PaletteLayer layer = PaletteLayer.withoutBlocks();
public WallSettings() {
}
public PaletteLayer layer() {
return layer == null ? PaletteLayer.withoutBlocks() : layer;
}
}