Skip to content

API reference Obsidian.API.Configuration

NewWorldConfiguration class

Settings of the NewWorld section: how an integrated server creates its world when the world folder has no level.dat yet. They're ignored for existing worlds.

public sealed class NewWorldConfiguration

In Obsidian.API.

Constructors

public NewWorldConfiguration();

Properties

AllowCommands

public bool AllowCommands { get; set; }

Whether the world allows commands (cheats), which decides the local player's operator level.

BonusChest

public bool BonusChest { get; set; }

Stored in level.dat; Obsidian doesn't place the bonus chest.

public Difficulty Difficulty { get; set; }

FlatPreset

public string FlatPreset { get; set; }

Vanilla's superflat layer string or preset id. Obsidian's superflat generator has fixed layers, so it's ignored.

public GameMode GameMode { get; set; }

GameRules

public Dictionary<string, string> GameRules { get; set; }

Game rules by vanilla id without the minecraft: namespace (configuration keys can't contain colons), e.g. keep_inventory = true.

public bool GenerateStructures { get; set; }public bool Hardcore { get; set; }

LevelName

public string LevelName { get; set; }

The world's display name; the folder name when empty.

Seed

public string Seed { get; set; }

The seed as the player typed it: a number is used as-is, other text is hashed like Java's String.hashCode, and an empty seed picks a random one.

WorldType

public string WorldType { get; set; }

Vanilla's world preset without its namespace: default or flat (the others aren't supported yet).

On this page