Added foliage and grass appearance components (#333)
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"$id": "blockception.minecraft.resource.biomes",
|
"$id": "blockception.minecraft.resource.biomes",
|
||||||
"title": "Client Biome",
|
"title": "Client Biome",
|
||||||
"description": "Minecraft client_biome files define client-side settings for biomes in resource packs. This is the new preferred location for per-biome settings that used to be in biomes_client.json.",
|
"description": "Minecraft client_biome files define client-side settings for biomes in resource packs. This is the new preferred location for per-biome settings that used to be in biomes_client.json.",
|
||||||
|
|||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"$id": "blockception.minecraft.resource.biomes.minecraft.foliage_appearance",
|
||||||
|
"title": "Foliage Appearance",
|
||||||
|
"description": "Set the foliage color or color map used during rendering. Biomes without this component will have default foliage appearance.",
|
||||||
|
"type": "object",
|
||||||
|
"required": ["color"],
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"color": {
|
||||||
|
"title": "Color",
|
||||||
|
"description": "RGB color of foliage, or a Foliage Color Map object.",
|
||||||
|
"default": { "color_map": "foliage" },
|
||||||
|
"examples": ["#FFFFFF", [255, 255, 255]],
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"format": "color-hex"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "array",
|
||||||
|
"minItems": 3,
|
||||||
|
"maxItems": 3,
|
||||||
|
"additionalItems": false,
|
||||||
|
"items": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0,
|
||||||
|
"maximum": 255
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"required": ["color_map"],
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"color_map": {
|
||||||
|
"title": "Color Map",
|
||||||
|
"description": "Color map from textures/colormap to determine color of foliage.",
|
||||||
|
"enum": ["birch", "evergreen", "foliage", "mangrove_swamp_foliage", "swamp_foliage"],
|
||||||
|
"default": "foliage"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"$id": "blockception.minecraft.resource.biomes.minecraft.grass_appearance",
|
||||||
|
"title": "Grass Appearance",
|
||||||
|
"description": "Set the grass color or color map used during rendering. Biomes without this component will have default grass appearance.",
|
||||||
|
"type": "object",
|
||||||
|
"required": ["color"],
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"color": {
|
||||||
|
"title": "Color",
|
||||||
|
"description": "RGB color of grass, or a Grass Color Map object.",
|
||||||
|
"default": { "color_map": "grass" },
|
||||||
|
"examples": ["#FFFFFF", [255, 255, 255]],
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"format": "color-hex"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "array",
|
||||||
|
"minItems": 3,
|
||||||
|
"maxItems": 3,
|
||||||
|
"additionalItems": false,
|
||||||
|
"items": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0,
|
||||||
|
"maximum": 255
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"required": ["color_map"],
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"color_map": {
|
||||||
|
"title": "Color Map",
|
||||||
|
"description": "Color map from textures/colormap to determine color of grass.",
|
||||||
|
"enum": ["grass", "swamp_grass"],
|
||||||
|
"default": "grass"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"$id": "blockception.minecraft.resource.biomes",
|
"$id": "blockception.minecraft.resource.biomes",
|
||||||
"title": "Client Biome Definitions",
|
"title": "Client Biome Definitions",
|
||||||
"description": "A client biome definition.",
|
"description": "A client biome definition.",
|
||||||
@@ -13,9 +14,11 @@
|
|||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
// Components
|
// Components
|
||||||
"minecraft:ambient_sounds": {"$ref": "./components/ambient_sounds.json"},
|
"minecraft:ambient_sounds": { "$ref": "./components/ambient_sounds.json" },
|
||||||
"minecraft:biome_music": {"$ref": "./components/biome_music.json"},
|
"minecraft:biome_music": { "$ref": "./components/biome_music.json" },
|
||||||
"minecraft:fog_appearance": { "$ref": "./components/fog_appearance.json" },
|
"minecraft:fog_appearance": { "$ref": "./components/fog_appearance.json" },
|
||||||
|
"minecraft:foliage_appearance": { "$ref": "./components/foliage_appearance.json" },
|
||||||
|
"minecraft:grass_appearance": { "$ref": "./components/grass_appearance.json" },
|
||||||
"minecraft:sky_color": { "$ref": "./components/sky_color.json" },
|
"minecraft:sky_color": { "$ref": "./components/sky_color.json" },
|
||||||
"minecraft:water_appearance": { "$ref": "./components/water_appearance.json" }
|
"minecraft:water_appearance": { "$ref": "./components/water_appearance.json" }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user