Dimension type - hotwopik/WorldMagic GitHub Wiki

Dimension type files are located in dimension-types plugin subfolder and has formate yml.
They configure main world properties and loads upon plugin enable.
File definition fully except field id based on vanilla dimension type file.

Example

id: some_id
ultrawarm: false
natural: true
coordinate_scale: 2.0
has_skylight: true
has_ceiling: false
ambient_light: 0

monster_spawn_light_level: 0
monster_spawn_block_light_limit: 0

piglin_safe: true
bed_works: true
respawn_anchor_works: true
has_raids: false

min_y: 0
height: 256
logical_height: 100

infiniburn: "#infiniburn_overworld"
effects: overworld

Definition

  • id - dimension type id, namespaced key, required

  • ultrawarm - should water evaporates, sponges dry and lava be faster, bool, required

  • natural - should zombified piglins spawns in nether portal, creaking hearts spawn creakings, bool, required

  • coordinate_scale - coordinate scaling realative to other dimensions, double between 0.00001 and 30000000 inclusive, required

  • has_skylight - should skylight engine be enabled in the world, bool, required

  • has_ceiling - should be enabled checks for bedrock ceiling in the world, bool, required

  • ambient_light - minimum render light level, float between 0 and 1 inclusive, required

  • fixed_time - if defined day time is fixed to field value, long, optional

  • monster_spawn_light_level - global light level limit for monster spawns, global light level computes by formula max( skyLight - 10, blockLight ) in thunder and max( skyLight, blockLight ) in other weather, int or int provider between 0 and 15 inclusive, required

  • monster_spawn_block_light_limit - block light level limit for monster spawns, int between 0 and 15 inclusive, required

  • piglin_safe - should piglins and hoglins zombificating in the world, bool, required

  • bed_works - if false beds blew up when players tries to sleep, bool, required

  • respawn_anchor_works - if false respawn anchors blew up when players tries to set spawn point on it, bool, required

  • has_raids - should raid engine be enabled in the world, bool, required

  • min_y - minimum y build level, should be a multiple of 16 to match the division into cubechunks, int between -2032 and 2031 inclusive, required

  • height - maximum y build level from min_y, should be a multiple of 16 to match the division into cubechunks, int between 16 and 4064, required

  • logical_height - maximum y build level from min_y that limits chorus fruits teleportation and nether portal spawn, cannot be greater than height, int, required

  • infiniburn - reference to block tag starting with # that defines which blocks makes fire burns infinitly, namepsaced key starting with #, required

  • effects - determines which skybox and weather engine should use the world, can be overworld, the_nether or the_end, required

Int provider definition

  • type - determines type of int provider, can be constant, uniform, biased_to_bottom, clamped, clamped_normal or weighted_list, required

If type is constant

  • value - constant value, int, required

If type is uniform or biased_to_bottom

  • min_inclusive - minimum allowed value, int, required
  • max_inclusive - maximum allowed value, cannot be less that min_inclusive, int, required

If type is clamped

  • min_inclusive - minimum allowed value, int, required
  • max_inclusive - maximum allowed value, cannot be less that min_inclusive, int, required
  • source - clamped value, int or int provider, required

If type is clamped_normal

  • min_inclusive - minimum allowed value, int, required
  • max_inclusive - maximum allowed value, cannot be less that min_inclusive, int, required
  • mean - normal distribution mean value, float, required
  • deviation - normal distribution deviation value, float, required

If type is weighted_list

  • distribution - list of possible values, required
    • list element
      • data - case value, int or int provider, required
      • weight - case weight, int, required