-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathschema.blocks.put.json
82 lines (82 loc) · 3.35 KB
/
schema.blocks.put.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
72
73
74
75
76
77
78
79
80
81
82
{
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "array",
"items": {
"$ref": "#/definitions/BlockPlacementInstructionElement"
},
"definitions": {
"BlockPlacementInstructionElement": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"title": "Block ID",
"description": "Any namespaced block ID (https://minecraft.wiki/w/Java_Edition_data_values#Blocks)",
"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",
"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",
"examples": [
"{Items:[{Count:48b,Slot:0b,id:\"minecraft:lantern\"},{Count:1b,Slot:1b,id:\"minecraft:golden_axe\",tag:{Damage:0}}]}"
],
"default": null
}
},
"required": [
"id"
],
"title": "Block Placement Instruction Element"
},
"PosAxis": {
"anyOf": [
{
"type": "integer",
"description": "Any negative or positive whole number to represent absolute world coordinates",
"examples": [
-2,
781
]
},
{
"type": "string",
"description": "Any negative or positive whole number to represent absolute world coordinates, a relative coordinate (https://minecraft.wiki/w/Coordinates#Relative_world_coordinates) or a local coordinate (https://minecraft.wiki/w/Coordinates#Local_coordinates)",
"examples": [
"-2",
"~84",
"^-412"
]
}
],
"title": "Position Axis",
"description": "Describe x/y/z placement position for block. If omitted, axis value defaults to the corresponding axis in the request URL. Each block position in the array of BlockPlacementInstructionElements should be unique."
}
}
}