mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-01 02:04:51 +00:00
Generate every world through built-in module stages and remove the world modes
The overworld pipeline becomes ten built-in modules with typed ordering: biome, terrain, carve, post, floating, deposit, matter, decorant, perfection and custom. The world modes and the dimension's mode setting are gone; a pack's mode key now gets the unknown-key warning. iris:biome, iris:deposit and the cave planning of iris:carve are full ports. Deposits are settings of their own (iris:deposit, written as "deposits": [...]) that stack: a chunk gets the dimension's, the region's and the biome's at its centre column. Cave planning is a mantle stage with a reach of one block, its work done by CaveCarving. The other stages wrap the existing actuators and modifiers. Perfection no longer checks for an overworld.
This commit is contained in:
1 parent
70a69fadad
commit
a77a097baf
34 files changed
+1012
-545
No files matched your search
@@ -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 art.arcane.iris.engine.object.terrain.deposit.IrisDepositGenerator;
|
||||
import com.volmit.FeatureAttachment.Target;
|
||||
import com.volmit.IrisFeature;
|
||||
import com.volmit.config.Desc;
|
||||
import com.volmit.config.Feature;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* The deposits one dimension, region or biome declares, written as {@code "deposits": [...]}. Levels stack:
|
||||
* a chunk gets the deposits of its dimension, its centre column's region and that column's biome.
|
||||
*/
|
||||
@Desc("Ores and other deposits generated in every chunk where this applies")
|
||||
@Feature(id = "iris:deposit", name = "Deposits", alias = "deposits", targets = {Target.DIMENSION, Target.REGION, Target.BIOME})
|
||||
public final class DepositSettings implements IrisFeature {
|
||||
@Desc("Define deposit generators that this applies to chunks")
|
||||
private List<IrisDepositGenerator> generators = List.of();
|
||||
|
||||
public DepositSettings() {
|
||||
}
|
||||
|
||||
public DepositSettings(List<IrisDepositGenerator> generators) {
|
||||
this.generators = List.copyOf(generators);
|
||||
}
|
||||
|
||||
public List<IrisDepositGenerator> generators() {
|
||||
return generators;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* 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.stage.ChunkStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:deposit}: ores and other deposits. */
|
||||
public final class DepositStages {
|
||||
/**
|
||||
* Places the deposits every level declares at the chunk's centre column, the dimension's, the region's and
|
||||
* the biome's, each with its own clumps. Active where any column of the chunk has deposits.
|
||||
*/
|
||||
public static final ChunkStage<Void> ORES = Stage.chunk("iris:deposit/ores");
|
||||
|
||||
private DepositStages() {
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user