-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
94 additions
and
62 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
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,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" | ||
} | ||
} | ||
] | ||
} |
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,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 | ||
} | ||
} | ||
} | ||
} | ||
} |