Update block description (#262)
This commit is contained in:
30
source/behavior/blocks/format/states/enum.json
Normal file
30
source/behavior/blocks/format/states/enum.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.block.states.enum",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"maxItems": 16,
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"description": "A valid value of this state. All valid values must be of the same type (boolean, integer or string)."
|
||||
},
|
||||
"oneOf": [
|
||||
{
|
||||
"items": {
|
||||
"title": "Boolean State Value",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
{
|
||||
"items": {
|
||||
"title": "Integer State Value",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"items": {
|
||||
"title": "String State Value",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
28
source/behavior/blocks/format/states/integer_range.json
Normal file
28
source/behavior/blocks/format/states/integer_range.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.block.states.integer_range",
|
||||
"type": "object",
|
||||
"required": ["values"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"values": {
|
||||
"title": "State Integer Value Range",
|
||||
"type": "object",
|
||||
"required": ["min", "max"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"min": {
|
||||
"title": "Minimum",
|
||||
"description": "The lowest integer this state supports. This is also used as the default state value.",
|
||||
"type": "integer",
|
||||
"default": 0
|
||||
},
|
||||
"max": {
|
||||
"title": "Maximum",
|
||||
"description": "The highest integer this state supports. This cannot be more than 15 above the minimum.",
|
||||
"type": "integer",
|
||||
"default": 15
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user