Adding biomes

This commit is contained in:
DaanV2
2021-02-04 11:21:51 +01:00
parent c90101f35b
commit 3e788aedcf
6 changed files with 143 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "minecraft.behavior.biomes.1.12.0",
"type": "object",
"title": "Biomes",
"description": "The definition of a biome",
"additionalProperties": {
"title": "Tag",
"type": "object",
"description": "Components with no namespace are treated as 'tags': any name consisting of alphanumeric characters, '.' and '_' is permitted; the tag is attached to the biome so that either code or data may check for its existence; tag components may not have member fields.",
"additionalProperties": false
},
"properties": {
"minecraft:climate": { "$ref": "./components/minecraft.climate.json" },
"minecraft:forced_features": { "$ref": "./components/minecraft.forced_features.json" },
"minecraft:overworld_height": { "$ref": "./components/minecraft.overworld_height.json" }
}
}

View File

@@ -0,0 +1,51 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "minecraft.behavior.biomes.1.12.0.components.minecraft.climate",
"title": "Climate",
"description": "Describes temperature, humidity, precipitation, etc. Biomes without this component will have default values.",
"type": "object",
"minProperties": 0,
"maxProperties": 7,
"additionalProperties": false,
"properties": {
"temperature" : {
"title": "Temperature",
"description": "UNDOCUMENATED",
"type": "number"
},
"downfall" : {
"title": "Downfall",
"description": "UNDOCUMENATED",
"type": "number"
},
"red_spores" : {
"title": "Red spores",
"description": "UNDOCUMENATED",
"type": "number"
},
"blue_spores" : {
"title": "Blue spores",
"description": "UNDOCUMENATED",
"type": "number"
},
"ash" : {
"title": "Ash",
"description": "UNDOCUMENATED",
"type": "number"
},
"white_ash" : {
"title": "White ash",
"description": "UNDOCUMENATED",
"type": "number"
},
"snow_accumulation": {
"title": "Snow accumulation",
"description": "UNDOCUMENATED",
"type": "array",
"items": [
{ "type": "number"},
{ "type": "number"}
]
}
}
}

View File

@@ -0,0 +1,13 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "minecraft.behavior.biomes.1.12.0.components.minecraft.forced_features",
"title": "Forced features",
"description": "Force specific decorative features (trees, plants, etc.) to appear in this Biome, regardless of normal decoration rules.",
"type": "object",
"minProperties": 0,
"maxProperties": 2,
"additionalProperties": false,
"properties": {
}
}

View File

@@ -0,0 +1,40 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "minecraft.behavior.biomes.1.12.0.components.minecraft.overworld_height",
"title": "Overworld height",
"description": "Noise parameters used to drive terrain height in the Overworld.",
"type": "object",
"minProperties": 0,
"maxProperties": 2,
"additionalProperties": false,
"properties": {
"noise_params": {
"title": "Noise params",
"description": "UNDOCUMENATED",
"type": "array",
"items": [{ "type": "number" }, { "type": "number" }]
},
"noise_type": {
"title": "Noise type",
"description": "UNDOCUMENATED",
"type": "string",
"enum": [
"stone_beach",
"deep_ocean",
"default",
"default_mutated",
"lowlands",
"river",
"ocean",
"taiga",
"mountains",
"highlands",
"mushroom",
"less_extreme",
"extreme",
"beach",
"swamp"
]
}
}
}

View File

@@ -0,0 +1,17 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "minecraft.behavior.biomes",
"type": "object",
"examples": [{ "plains": { "format_version": "1.12.0" } }],
"additionalProperties": {
"type": "object",
"title": "Biome",
"description": "A biome definition",
"allOf": [
{
"if": { "properties": { "format_version": { "type": "string", "const": "1.12.0" } } },
"then": { "$ref": "./1.12.0/biomes.json" }
}
]
}
}

View File

@@ -104,6 +104,10 @@
"Source": "./behaviour/animations/animations.json", "Source": "./behaviour/animations/animations.json",
"Destination": "../behaviour/animations/animations.json" "Destination": "../behaviour/animations/animations.json"
}, },
{
"Source": "./behaviour/biomes/biomes.json",
"Destination": "../behaviour/biomes/biomes.json"
},
{ {
"Source": "./behaviour/loot_tables/loot_tables.json", "Source": "./behaviour/loot_tables/loot_tables.json",
"Destination": "../behaviour/loot_tables/loot_tables.json" "Destination": "../behaviour/loot_tables/loot_tables.json"