-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added foliage and grass appearance components
- Loading branch information
Showing
4 changed files
with
98 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
source/resource/biomes/format/components/foliage_appearance.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
source/resource/biomes/format/components/grass_appearance.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters