-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathschema.blocks.get.json
71 lines (71 loc) · 2.58 KB
/
schema.blocks.get.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "array",
"items": {
"$ref": "#/definitions/BlockInformationElement"
},
"definitions": {
"BlockInformationElement": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"title": "Block ID",
"description": "Any namespaced block ID",
"examples": [
"minecraft:stone",
"minecraft:clay",
"minecraft:green_stained_glass"
]
},
"x": {
"$ref": "#/definitions/PosAxis"
},
"y": {
"$ref": "#/definitions/PosAxis"
},
"z": {
"$ref": "#/definitions/PosAxis"
},
"state": {
"type": "object",
"title": "Block State",
"description": "Object containing block state (https://minecraft.wiki/w/Block_states) information. This is only included if URL parameter `includeState=true` is present.",
"examples": [
{
"facing": "east",
"lit": "false"
}
],
"default": null
},
"data": {
"type": "string",
"title": "Block Entity Data",
"description": "SNBT-formatted string (https://minecraft.wiki/w/NBT_format#SNBT_format) containing block entity data (https://minecraft.wiki/w/Chunk_format#Block_entity_format) information. This is only included if URL parameter `includeData=true` is present.",
"examples": [
"{Items:[{Count:48b,Slot:0b,id:\"minecraft:lantern\"},{Count:1b,Slot:1b,id:\"minecraft:golden_axe\",tag:{Damage:0}}]}"
],
"default": null
}
},
"required": [
"id",
"x",
"y",
"z"
],
"title": "Block information element"
},
"PosAxis": {
"type": "integer",
"title": "Position Axis",
"description": "Describe x/y/z absolute position of block",
"examples": [
-2,
781
]
}
}
}