2020-11-18 10:00:43 +01:00
{
"$schema" : "http://json-schema.org/draft-07/schema" ,
"$id" : "blockception.minecraft.resource.1.16.100.resource" ,
"type" : "object" ,
"additionalProperties" : false ,
2021-04-04 14:00:43 +02:00
"title" : "Fog" ,
2020-11-18 10:00:43 +01:00
"description" : "TODO" ,
"definitions" : {
"colorHexOrArray" : {
2021-03-11 10:59:08 +01:00
"examples" : [ "#056bd1" ] ,
2020-11-18 10:00:43 +01:00
"oneOf" : [
{
"type" : "array" ,
"items" : [
{ "type" : "number" , "minimum" : 0 , "maximum" : 1 , "title" : "Red" } ,
{ "type" : "number" , "minimum" : 0 , "maximum" : 1 , "title" : "Green" } ,
{ "type" : "number" , "minimum" : 0 , "maximum" : 1 , "title" : "Blue" }
]
} ,
2021-03-21 15:18:38 +01:00
{ "type" : "string" , "format" : "color-hex" , "pattern" : "^\\#[0-9a-fA-F]{6}$" }
2020-11-18 10:00:43 +01:00
]
2021-03-11 10:59:08 +01:00
} ,
"defaultFogSettings" : {
"type" : "object" ,
"additionalProperties" : false ,
"required" : [ "fog_start" , "fog_end" , "fog_color" , "render_distance_type" ] ,
"examples" : [ { "fog_start" : 100 , "fog_end" : 200 , "fog_color" : "#056bd1" , "render_distance_type" : "render" } ] ,
"properties" : {
"fog_start" : {
2021-03-21 15:18:38 +01:00
"title" : "Fog Start" ,
2021-03-11 10:59:08 +01:00
"description" : "The distance from the player that the fog will begin to appear. 'fog_start' must be less than or equal to 'fog_end'." ,
"type" : "number" ,
"minimum" : 0
} ,
"fog_end" : {
2021-03-21 15:18:38 +01:00
"title" : "Fog End" ,
2021-03-11 10:59:08 +01:00
"description" : "The distance from the player that the fog will become fully opaque. 'fog_end' must be greater than or equal to 'fog_start'." ,
"type" : "number" ,
"minimum" : 0
} ,
2021-03-21 15:18:38 +01:00
"fog_color" : { "title" : "Fog Color" , "description" : "The color that the fog will take on." , "type" : "string" , "format" : "color-hex" } ,
2021-03-11 10:59:08 +01:00
"render_distance_type" : {
2021-03-21 15:18:38 +01:00
"title" : "Render Distance Type" ,
2021-03-11 10:59:08 +01:00
"description" : "Determines how distance value is used. Fixed distance is measured in blocks. Dynamic distance is multiplied by the current render distance." ,
"type" : "string" ,
"enum" : [ "fixed" , "render" ]
}
}
} ,
"volumeDensityObject" : {
"type" : "object" ,
"additionalProperties" : false ,
"required" : [ "max_density" ] ,
"examples" : [ { "max_density" : 0.25 } , { "max_density" : 0.25 , "max_density_height" : 128 , "zero_density_height" : 20 , "uniform" : true } ] ,
"properties" : {
"max_density" : {
2021-03-21 15:18:38 +01:00
"title" : "Max Density" ,
2021-03-11 10:59:08 +01:00
"description" : "The maximum amount of opaqueness that the ground fog will take on. A value from [0.0, 1.0]." ,
"minimum" : 0 ,
"maximum" : 1 ,
"type" : "number"
} ,
"max_density_height" : {
2021-03-21 15:18:38 +01:00
"title" : "Max Density Height" ,
2021-03-11 10:59:08 +01:00
"description" : "The height in blocks that the ground fog will become it's maximum density." ,
"minimum" : 0 ,
2021-04-08 21:57:04 +02:00
"maximum" : 128 ,
2021-03-11 10:59:08 +01:00
"type" : "number"
} ,
"zero_density_height" : {
2021-03-21 15:18:38 +01:00
"title" : "Zero Density Height" ,
2021-03-11 10:59:08 +01:00
"description" : "The height in blocks that the ground fog will be completely transparent and begin to appear. This value needs to be at least 1 higher than 'max_density_height'." ,
"minimum" : 0 ,
2021-04-08 21:57:04 +02:00
"maximum" : 128 ,
2021-03-11 10:59:08 +01:00
"type" : "number"
} ,
2021-03-21 15:18:38 +01:00
"uniform" : { "title" : "Uniform" , "description" : "When set to true, the density will be uniform across all heights." , "type" : "boolean" }
2021-03-11 10:59:08 +01:00
}
} ,
"volumeMediaObject" : {
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
2021-03-21 15:18:38 +01:00
"absorption" : { "title" : "Absorption" , "description" : "Proportion of light that is absorbed (lost) per block." , "$ref" : "#/definitions/colorHexOrArray" } ,
"scattering" : { "title" : "Scattering" , "description" : "Proportion of light that is scattered per block." , "$ref" : "#/definitions/colorHexOrArray" }
2021-03-11 10:59:08 +01:00
}
2020-11-18 10:00:43 +01:00
}
} ,
"properties" : {
2021-04-05 14:17:08 +02:00
"format_version" : {
"title" : "Format Version" ,
"description" : "A version that tells minecraft what type of data format can be expected when reading this file." ,
"type" : "string"
} ,
2020-11-18 10:00:43 +01:00
"minecraft:fog_settings" : {
2021-03-21 15:18:38 +01:00
"title" : "Fog Settings" ,
2021-03-11 10:59:08 +01:00
"description" : "The definition of a single fog" ,
2020-11-18 10:00:43 +01:00
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"description" : {
"title" : "Description" ,
"description" : "The identifying description of this fog settings" ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"identifier" : {
"type" : "string" ,
"title" : "Identifier" ,
2021-03-11 10:59:08 +01:00
"description" : "The identifier for these fog settings. The identifier must include a namespace." ,
2020-11-18 10:00:43 +01:00
"$ref" : "../../../general/fog/identifier.json"
}
}
} ,
"distance" : {
"title" : "Distance" ,
2021-03-11 10:59:08 +01:00
"description" : "The distance fog settings for different camera locations." ,
2020-11-18 10:00:43 +01:00
"type" : "object" ,
2021-03-11 10:59:08 +01:00
"additionalProperties" : false ,
"properties" : {
2021-03-21 15:18:38 +01:00
"air" : { "title" : "Air" , "description" : "The fog settings when the camera is in the air." , "$ref" : "#/definitions/defaultFogSettings" } ,
2021-03-11 10:59:08 +01:00
"weather" : {
"title" : "Weather" ,
"description" : " The fog settings for when the camera is in the air with active weather (rain, snow, etc..)." ,
2021-03-11 23:30:30 +01:00
"$ref" : "#/definitions/defaultFogSettings"
2021-03-11 10:59:08 +01:00
} ,
2021-03-21 15:18:38 +01:00
"water" : { "title" : "Water" , "description" : "The fog settings when the camera is in water." , "$ref" : "#/definitions/defaultFogSettings" } ,
"lava" : { "title" : "Lava" , "description" : "The fog settings when the camera is in lava." , "$ref" : "#/definitions/defaultFogSettings" } ,
2021-03-11 10:59:08 +01:00
"lava_resistance" : {
2021-03-21 15:18:38 +01:00
"title" : "Lava Resistance" ,
2021-03-11 10:59:08 +01:00
"description" : "The fog settings when the camera is in lava and the player has the lava resistance effect active." ,
2021-03-11 23:30:30 +01:00
"$ref" : "#/definitions/defaultFogSettings"
2021-03-11 10:59:08 +01:00
} ,
2021-03-21 15:18:38 +01:00
"powder_snow" : { "title" : "Powder Snow" , "description" : "The fog settings when the camera is inside a Powder Snow block." , "$ref" : "#/definitions/defaultFogSettings" }
2020-11-18 10:00:43 +01:00
}
} ,
"volumetric" : {
"title" : "Volumetric" ,
2021-03-11 10:59:08 +01:00
"description" : "The volumetric fog settings." ,
2020-11-18 10:00:43 +01:00
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"density" : {
"title" : "Density" ,
2021-03-11 10:59:08 +01:00
"description" : "The density settings for different camera locations." ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
2021-03-21 15:18:38 +01:00
"air" : { "title" : "Air" , "description" : "Fog density values as light passes through air blocks." , "$ref" : "#/definitions/volumeDensityObject" } ,
"water" : { "title" : "Water" , "description" : "Fog density values as light passes through water blocks." , "$ref" : "#/definitions/volumeDensityObject" } ,
"lava" : { "title" : "Lava" , "description" : "Fog density values as light passes through lava blocks." , "$ref" : "#/definitions/volumeDensityObject" } ,
2021-03-11 10:59:08 +01:00
"lava_resistance" : {
2021-03-21 15:18:38 +01:00
"title" : "Lava Resistance" ,
2021-03-11 10:59:08 +01:00
"description" : "Fog density values as light passes through lava blocks while the player has lava resistance." ,
"$ref" : "#/definitions/volumeDensityObject"
2020-11-18 10:00:43 +01:00
}
}
} ,
"media_coefficients" : {
2021-03-21 15:18:38 +01:00
"title" : "Media Coefficients" ,
2021-03-11 10:59:08 +01:00
"description" : "The coefficient settings for the volumetric fog in different blocks." ,
"additionalProperties" : false ,
"properties" : {
2021-03-21 15:18:38 +01:00
"air" : { "title" : "Air" , "description" : "Fog coefficient values while light passes through air." , "$ref" : "#/definitions/volumeMediaObject" } ,
"water" : { "title" : "Water" , "description" : "Fog coefficient values while light passes through water." , "$ref" : "#/definitions/volumeMediaObject" } ,
"cloud" : { "title" : "Cloud" , "description" : "Fog coefficient values while light passes through clouds." , "$ref" : "#/definitions/volumeMediaObject" }
2020-11-18 10:00:43 +01:00
}
}
}
}
}
}
}
}