Map Data Format
Map .json Structure
Example map.json
{
"blockTypes": [
{
"id": 1,
"name": "Bricks",
"textureUri": "blocks/bricks.png" // resolves to assets/blocks/bricks.png
},
{
"id": 2,
"name": "Bouncy Clay",
"textureUri": "blocks/clay.png"
"customColliderOptions": {
"bounciness": 4
}
},
{
"id": 3,
"name": "Diamond Ore",
"textureUri": "blocks/diamond-ore.png"
},
{
"id": 4,
"name": "Dirt",
"textureUri": "blocks/dirt.png"
},
{
"id": 5,
"name": "Dragons Stone",
"textureUri": "blocks/dragons-stone.png"
},
{
"id": 6,
"name": "Water",
"textureUri": "blocks/water.png",
"isLiquid": true // applies a liquid shader to the texture
},
{
"id": 7,
"name": "Grass",
// textureUri when provided a directory will resolve to
// the following 6 images mapped to the faces of the block.
// ---
// assets/blocks/grass/+x.png
// assets/blocks/grass/+y.png
// assets/blocks/grass/+z.png
// assets/blocks/grass/-x.png
// assets/blocks/grass/-y.png
// assets/blocks/grass/-z.png
// ---
// This allows you to create more unique block types
// with different textures on each block face.
"textureUri": "blocks/grass"
}
],
"blocks": {
"0,0,0": 2,
"1,0,0": 2,
"0,0,1": 2,
"1,0,1": 2,
"2,0,0": 7,
"0,0,2": 7,
"-2,0,-2": 7,
"2,0,-2": 7,
// etc... order doesn't matter.
},
}Last updated
