API reference Obsidian.API.Registry.Codecs.Dimensions
DimensionElement record
The parts of a 1.21.11 dimension type the server uses. Its environment attributes, timelines, skybox and cardinal light are only sent to clients, for plugins' entries.
public sealed record DimensionElement : INbtSerializable, IEquatable<DimensionElement>
In Obsidian.API.
Constructors
public DimensionElement();Properties
AmbientLight
public float AmbientLight { get; set; }How much light the dimension has, 0.0 to 1.0.
CoordinateScale
public double CoordinateScale { get; set; }The multiplier applied to coordinates when leaving the dimension, 0.00001 to 30,000,000.
DefaultClock
public string DefaultClock { get; set; }The world clock selected by commands in this dimension, or null when none is configured.
FixedTime
public long? FixedTime { get; set; }The fixed time of day. Not part of 1.21.11's dimension types, so null unless set in code.
GameplayAttributes
public IReadOnlyDictionary<string, bool> GameplayAttributes { get; set; }The boolean minecraft:gameplay/... attributes the server applies, by identifier, as the type's own map sets them (its values applied to the attributes' defaults); null for vanilla's types, which the server knows. Not written, like DimensionElement.Timelines.
HasCeiling
public bool HasCeiling { get; set; }Whether the dimension has a bedrock ceiling.
HasEnderDragonFight
public bool HasEnderDragonFight { get; set; }Whether this dimension runs an Ender Dragon fight.
HasFixedTime
public bool? HasFixedTime { get; set; }Whether the type's time is fixed (its has_fixed_time), so it's never dark outside for beds; null for vanilla's types, which the server knows. Not written, like DimensionElement.Timelines.
HasSkylight
public bool HasSkylight { get; set; }Whether the dimension has sky light.
Height
public int Height { get; set; }How many blocks high the dimension is: a multiple of 16 from 16 to 4064, with DimensionElement.MinY + height at most 2032.
Infiniburn
public string Infiniburn { get; set; }The block tag of blocks fire burns on forever, like #minecraft:infiniburn_overworld.
LogicalHeight
public int LogicalHeight { get; set; }The highest chorus fruits and nether portals can take players, at most DimensionElement.Height.
MinY
public int MinY { get; set; }The lowest Y blocks can be at: a multiple of 16 from -2032 to 2016.
MonstersBurn
public bool MonstersBurn { get; set; }Whether undead monsters burn in daylight at any time of day: the type's own minecraft:gameplay/monsters_burn attribute, which the overworld's day timeline otherwise sets by day. Not written, like DimensionElement.Timelines.
MonsterSpawnBlockLightLimit
public int MonsterSpawnBlockLightLimit { get; set; }The block light level at or below which monsters can spawn, 0 to 15.
MonsterSpawnLightLevel
public MonsterSpawnLightLevel MonsterSpawnLightLevel { get; set; }The light level monsters can spawn at, 0 to 15.
MonsterSpawnLightProvider
public IIntProvider MonsterSpawnLightProvider { get; set; }The monster spawn light level as the provider a plugin's type decodes to, which the server samples; null for vanilla's types and ones made in code, whose DimensionElement.MonsterSpawnLightLevel is sampled. Not written: clients get DimensionElement.MonsterSpawnLightLevel.
PiglinSafe
public bool PiglinSafe { get; set; }Whether piglins don't turn into zombified piglins. Not part of 1.21.11's dimension types (its minecraft:gameplay/piglins_zombify attribute), so false unless set in code.
SkyLightLevel
public float? SkyLightLevel { get; set; }The type's own minecraft:gameplay/sky_light_level attribute applied to its default of 15, before the day and the weather change it; null for vanilla's types, which the server knows. Not written, like DimensionElement.Timelines.
Timelines
public string Timelines { get; set; }The tag of a plugin's dimension type's timelines, like #minecraft:in_overworld, or null for none or for vanilla's types. The server reads it for the day cycle. It isn't written: clients get it from the type's data.
Ultrawarm
public bool Ultrawarm { get; set; }Whether water evaporates, sponges dry and lava flows faster. Not part of 1.21.11's dimension types (its minecraft:gameplay/water_evaporates attribute), so false unless set in code.
Methods
Write(INbtWriter)
public void Write(INbtWriter writer);Writes the fields this element models as vanilla's DimensionType.NETWORK_CODEC does. Clients get vanilla's dimension types by name, and plugins' with the data their files decode to, attributes included.