Files
minecraft-bedrock-json-schemas/behavior/blocks/blocks.json

1 line
65 KiB
JSON
Raw Normal View History

2021-05-08 08:18:57 +00:00
{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.behavior.blocks","examples":[{"format_version":"1.16.200","minecraft:block":{"description":{"identifier":"namespace:block","properties":{}},"components":{},"events":{}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.10"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.12.0"}}},"then":{"$ref":"#/definitions/CH"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.16.0"}}},"then":{"$ref":"#/definitions/CI"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.16.100"}}},"then":{"$ref":"#/definitions/CJ"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.16.200"}}},"then":{"$ref":"#/definitions/HG"}},{"properties":{"format_version":{"$ref":"#/definitions/BCD"}}}],"definitions":{"B":{"type":"string","title":"Block Identifier 1.8.0","description":"The minecraft block identifier","pattern":"^[0-9a-zA-Z:_\\.\\-]+$"},"D":{"additionalProperties":false,"type":"integer","title":"Block Light Absorption 1.10.0","description":"The amount of light this block will absorb.","default":0},"E":{"additionalProperties":false,"type":"number","title":"Block Light Emission 1.10.0","description":"The amount of light this block will emit in a range [0.0, 1.0].","minimum":0,"maximum":1,"default":0.0},"F":{"additionalProperties":false,"type":"boolean","title":"Break On Push 1.10.0","description":"When pushed by a piston the block breaks."},"G":{"additionalProperties":false,"type":"string","title":"Breathability 1.10.0","description":"Property describing the breathability of this block and whether it is treated as a solid or as air.","enum":["solid","air"],"default":"solid"},"H":{"additionalProperties":false,"type":"number","title":"Destroy Time 1.10.0","description":"Sets the destroy time property for the block. Greater numbers result in greater mining times."},"I":{"additionalProperties":false,"type":"string","title":"Display Name 1.10.0","description":"Specifies the display name id for the block."},"J":{"additionalProperties":false,"title":"Entity Collision 1.10.0","description":"Can only be set to false, it disables the collision of the block with entities.","oneOf":[{"type":"boolean","const":false},{"type":"object","additionalProperties":false,"properties":{"origin":{"type":"array","title":"Origin","description":"Minimal position Bounds of the collision box","default":[-8.0,0.0,-8.0],"items":[{"type":"number","title":"X","description":"The x offset"},{"type":"number","title":"Y","description":"The y offset"},{"type":"number","title":"Z","description":"The z offset"}]},"size":{"type":"array","title":"Size","description":"Size of each side of the box of the component","default":[16.0,16.0,16.0],"items":[{"type":"number","title":"X","description":"The x size"},{"type":"number","title":"Y","description":"The y size"},{"type":"number","title":"Z","description":"The z size"}]}}}]},"BA":{"additionalProperties":false,"type":"number","title":"Explosion Resistance 1.10.0","description":"Sets the explosion resistance for this block.","default":0.0},"BB":{"additionalProperties":false,"type":"object","title":"Flammable 1.10.0","description":"Describes the flammable properties for this block.","additionalItems":false,"properties":{"burn_odds":{"type":"integer","default":0,"description":"How likely the block will be destroyed by flames when on fire.","title":"Burn Odds"},"flame_odds":{"type":"integer","default":0,"description":"How likely the block will catch flame when next to a fire.","title":"Flame Odds"}}},"BC":{"additionalProperties":false,"type":"number","title":"Friction 1.10.0","description":"Property describing the friction for this block. Friction effects an entities movements when it walks on the block.","default":0.1},"BD":{"additionalProperties":false,"type":"string","title":"Geometry 1.10.0","description":"The geometry defini