Skip to content

API reference Obsidian.API.World.Features

ConfiguredFeatureBase class

A feature type together with its settings, like vanilla's ConfiguredFeature.

public abstract class ConfiguredFeatureBase : IWorldFeature, IFeature

In Obsidian.API.

Remarks

Implementations are data-driven: the source generator instantiates them from Assets/worldgen/features/*.json and exposes them through ConfiguredFeatures.

Constructors

protected ConfiguredFeatureBase();

Properties

Identifier

public string Identifier { get; init; }

Registry id (e.g. minecraft:oak), or empty for features defined inline.

public abstract string Type { get; }

Methods

Place(FeatureContext)

public abstract bool Place(FeatureContext context);

Places the feature at FeatureContext.Origin. Returns whether anything was placed.

On this page