Minecraft Blocks:
{
"id": 32,
"name": "gravel",
"displayName": "Gravel",
"hardness": 0.6,
"resistance": 0.6,
"stackSize": 64,
"diggable": true,
"material": "mineable/shovel",
"transparent": false,
"emitLight": 0,
"filterLight": 15,
"defaultState": 109,
"minStateId": 109,
"maxStateId": 109,
"boundingBox": "block",
"image": "/images/1.19/gravel.png",
"states": [],
"drops": [
42
],
"harvestTools": null
}
Returns an array of all blocks.
[
{
"id": 32,
"name": "gravel",
"displayName": "Gravel",
"hardness": 0.6,
"resistance": 0.6,
"stackSize": 64,
...
},
{
"id": 2,
"name": "granite",
"displayName": "Granite",
"hardness": 1.5,
"resistance": 6,
"stackSize": 64,
...
},
...
]
Returns an array of block objects whose fields satisfy the query /search?q=<query>
(query may either be of type 'string' or 'number')
/api/block/search?q=block
[
{
"id": 1,
"name": "stone",
"displayName": "Stone",
"hardness": 1.5,
"resistance": 6,
"stackSize": 64,
"boundingBox": "block",
...
},
{
"id": 2,
"name": "granite",
"displayName": "Granite",
"hardness": 1.5,
"resistance": 6,
"stackSize": 64,
"boundingBox": "block",
...
},
...
]
Returns a single block whose blockId
exists
(:blockId
may only be of type 'number')
/api/block/200
{
"id": 200,
"name": "deepslate_redstone_ore",
"displayName": "Deepslate Redstone Ore",
"hardness": 4.5,
"resistance": 3,
"stackSize": 64,
...
}