Struct LevelDimensionType
pub struct LevelDimensionType {Show 33 fields
pub id: String,
pub min_y: i32,
pub height: i32,
pub logical_height: i32,
pub has_skylight: bool,
pub has_ceiling: bool,
pub has_fixed_time: bool,
pub has_ender_dragon_fight: bool,
pub coordinate_scale: f64,
pub ambient_light: f32,
pub infiniburn: String,
pub monster_spawn_light_level: Option<(i32, i32)>,
pub monster_spawn_block_light_limit: i32,
pub skybox: String,
pub cardinal_light: String,
pub water_evaporates: bool,
pub fast_lava: bool,
pub respawn_anchor_works: bool,
pub nether_portal_spawns_piglin: bool,
pub piglins_zombify: bool,
pub snow_golem_melts: bool,
pub can_start_raid: bool,
pub sky_light_level: f32,
pub timelines: Vec<String>,
pub default_clock: Option<String>,
pub bed_can_sleep: String,
pub bed_can_set_spawn: String,
pub bed_destroy_on_use: bool,
pub bed_destroy_on_leave: bool,
pub straw_bed_can_sleep: String,
pub straw_bed_can_set_spawn: String,
pub straw_bed_destroy_on_use: bool,
pub straw_bed_destroy_on_leave: bool,
}Expand description
A level’s dimension type as the game uses it (Level.dimensionType() and the gameplay attributes
of its environment), as level.dimension_type(host) reads it: the fields of
DimensionSettings that apply, plus the type’s id.
Fields§
§id: StringThe dimension type’s id (minecraft:the_nether, or a mod’s or pack’s).
min_y: i32The lowest buildable block Y.
height: i32The build height in blocks.
logical_height: i32How far up portals and chorus fruit reach.
has_skylight: boolWhether the sky lights the level.
has_ceiling: boolWhether the level has a bedrock ceiling.
has_fixed_time: boolWhether the sky’s time does not advance.
has_ender_dragon_fight: boolWhether the level runs the End’s dragon fight.
coordinate_scale: f64What a portal divides this level’s coordinates by.
ambient_light: f32The light every block gets, 0 to 1.
infiniburn: StringThe block tag whose blocks burn forever.
monster_spawn_light_level: Option<(i32, i32)>The range monsters’ spawn light is drawn from, when it is a constant or a uniform range.
monster_spawn_block_light_limit: i32The block light above which monsters do not spawn.
skybox: Stringoverworld, end or none.
cardinal_light: Stringdefault or nether.
water_evaporates: boolWhether water placed here boils away.
fast_lava: boolWhether lava flows at the Nether’s speed.
respawn_anchor_works: boolWhether respawn anchors can be used.
nether_portal_spawns_piglin: boolWhether nether portals spawn zombified piglins.
piglins_zombify: boolWhether piglins turn into zombified piglins here.
snow_golem_melts: boolWhether snow golems take damage here.
can_start_raid: boolWhether a bad omen can start a raid here.
sky_light_level: f32The sky light that daylight is measured against, 0 to 15.
timelines: Vec<String>The timelines the dimension type names, as ids (minecraft:day).
default_clock: Option<String>The clock /time reads here, if the dimension type has a default one.
bed_can_sleep: StringWhen a player can sleep in a bed: always, when_dark or never.
bed_can_set_spawn: StringWhen a bed sets the respawn point: always, when_dark or never.
bed_destroy_on_use: boolWhether a bed explodes when a player tries to use it.
bed_destroy_on_leave: boolWhether a bed is destroyed when the player leaves it.
straw_bed_can_sleep: StringWhen a player can sleep in a straw bed: always, when_dark or never.
straw_bed_can_set_spawn: StringWhen a straw bed sets the respawn point: always, when_dark or never.
straw_bed_destroy_on_use: boolWhether a straw bed explodes when a player tries to use it.
straw_bed_destroy_on_leave: boolWhether a straw bed is destroyed when the player leaves it.
Trait Implementations§
§impl Clone for LevelDimensionType
impl Clone for LevelDimensionType
§fn clone(&self) -> LevelDimensionType
fn clone(&self) -> LevelDimensionType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more