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

1 line
29 KiB
JSON
Raw Normal View History

{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.behavior.block","$comment":"UNDOCUMENTED","required":["format_version","minecraft:block"],"type":"object","title":"Block Behavior","description":"The minecraft block behavior specification.","additionalProperties":false,"properties":{"format_version":{"$ref":"#/definitions/A"},"minecraft:block":{"$ref":"#/definitions/B"}},"defaultSnippets":[{"label":"New block","body":{"format_version":"${1:1.20.80}","minecraft:block":{"description":{"identifier":"$2:${3:${TM_FILENAME/[\\.].*//}}"},"components":"^{$4}"}}}],"definitions":{"A":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^([1-9]+)\\.([0-9]+)\\.([0-9]+)$","type":"string","default":"1.20.81","examples":["1.20.81","1.20.40","1.19.0","1.12.0","1.10.0","1.8.0"],"defaultSnippets":[{"label":"New Format version","body":"1.${1|8,10,12,17,18,19,20|}.${3|2|0|}"}]},"B_components_ref":{"type":"object","title":"Component","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","additionalProperties":false,"properties":{"minecraft:collision_box":{"$ref":"#/definitions/C"},"minecraft:crafting_table":{"$ref":"#/definitions/D"},"minecraft:destructible_by_explosion":{"$ref":"#/definitions/E"},"minecraft:destructible_by_mining":{"$ref":"#/definitions/F"},"minecraft:display_name":{"$ref":"#/definitions/G"},"minecraft:flammable":{"$ref":"#/definitions/H"},"minecraft:friction":{"$ref":"#/definitions/I"},"minecraft:geometry":{"$ref":"#/definitions/J"},"minecraft:light_dampening":{"$ref":"#/definitions/BA"},"minecraft:light_emission":{"$ref":"#/definitions/BB"},"minecraft:loot":{"$ref":"#/definitions/BC"},"minecraft:map_color":{"$ref":"#/definitions/BD"},"minecraft:material_instances":{"$ref":"#/definitions/BE"},"minecraft:placement_filter":{"$ref":"#/definitions/BF"},"minecraft:redstone_conductivity":{"$ref":"#/definitions/BJ"},"minecraft:selection_box":{"$ref":"#/definitions/CA"},"minecraft:transformation":{"$ref":"#/definitions/CB"},"minecraft:custom_components":{"$ref":"#/definitions/CC"},"minecraft:tick":{"$ref":"#/definitions/CD"},"minecraft:entity_fall_on":{"$ref":"#/definitions/CE"}},"patternProperties":{"tag:.+":{"title":"Tag","description":"Applies a tag to the block, using the key without the \"tag:\" prefix as the tag name.","type":"object","additionalProperties":false}}},"B_states_ref":{"title":"States","description":"Block states are variables that can be set to different values in order to change how your block looks or behaves.","type":"object","propertyNames":{"pattern":"^([a-zA-Z0-9_]+:[a-zA-Z0-9_\\-]+)$"},"additionalProperties":{"title":"State","description":"The key defines the name of a state, which must be properly namespaced. Each value is an array that contains all of the possible values of that state or an object defining a range of integers.","oneOf":[{"$ref":"#/definitions/CF"},{"$ref":"#/definitions/CG"}]}},"B_traits_ref":{"title":"Traits","description":"A shortcut for creators to use Vanilla block states without needing to define and manage a series of events or triggers on custom blocks","type":"object","additionalProperties":false,"properties":{"minecraft:placement_direction":{"$ref":"#/definitions/CH"},"minecraft:placement_position":{"$ref":"#/definitions/CI"}}},"C":{"title":"Collision Box","description":"This component can be specified as a Boolean. If this component is omitted, the default value for this component is true, which will give your block the default values for its parameters (a collision box the size/shape of a regular block).","oneOf":[{"type":"boolean","default":true},{"type":"object","additionalProperties":false,"properties":{"origin":{"title":"Origin","description":"Minimal position of the bounds of the collision box. origin is specified as [x, y, z] and must be in the range (-8, 0, -8) to (8, 16, 8), inclusive.","type":"array","items":[{"title":"X","type":"number","minimum":-8.0,"maximum":8},{"title":"Y","type":"number","minimum":0,"maximum":16},{"title":"Z","type