mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-02 02:34:24 +00:00
Port v3e's parts-based procedural objects
The 37 part classes from v3e (dev) now live in engine/procedural, outside the host's own type package, so the built-ins jar may register them as a resource kind. ProceduralObjectCatalog reads iris:objects/procedural definitions from the pack's procedural/ folder and bakes their variants per world (or detached, for reach); ObjectPool places procedural/<path> and procedural/<path>#<n> keys like any object and warms them, and ObjectChunk keeps their baked leaves. ProceduralValue reads its forms (number, range, keyframes, curve shape) through IrisApi's @JsonForms codec instead of Gson. Trees: procedural/trees/ counts as a tree folder and TreeGrowing reports every variant it places as a tree. The v4-era kinds (tree, ruin, formation, coral, fungi, crystal), ProceduralPlacement, ProceduralObjectSettings and PlacementSource are removed; ObjectPlacement is the one placement.
This commit is contained in:
1 parent
501862b9ea
commit
d2ce5f4a05
126 files changed
+4031
-9036
No files matched your search
@@ -67,8 +67,9 @@ placement itself, read by the module decoder like any settings class, and the on
|
||||
stages into the chunk's mantle (on the surface, in a cave inside the cave's bounds, or hung from the terrain above), reading the
|
||||
carved space the cave carver planned, and the loot an object placed at a block defines; the layout, the settings of a column and
|
||||
the upper dimension's objects come from IrisApi (`TerrainSampler`, `FeatureSettings`, `UpperDimension`). `ObjectPlacing` and its helpers (`ChunkObjectPlacing`,
|
||||
`CaveAnchors`, `PlacementReach`) decide what to place and where. The procedural generators (`engine/object/procedural`) stay
|
||||
compiled in, behind `ProceduralPlacement`, until they build `GeneratedObject`s instead of Iris objects.
|
||||
`CaveAnchors`, `PlacementReach`) decide what to place and where. Procedural objects (`engine/procedural`, resource kind
|
||||
`iris:objects/procedural`, folder `procedural`) are definitions of parts that bake into variants; a placement names them as
|
||||
`procedural/<path>`, or `procedural/<path>#<index>` for one variant, like any object.
|
||||
`iris:loot` owns the loot table resource kind (`LootResources`, folder `loot`), checks the tables and the references to
|
||||
them (`LootValidator`), and provides `Loot` (`LootGiving`: which tables a container draws from and the `ItemDrop`s a
|
||||
table gives) and `BlockDrops` (`BlockDropping`). `iris:spawn` owns spawners, entities and markers (`SpawnResources`,
|
||||
|
||||
Reference in new issue
Block a user