2022-06-07 21:37:57 +02:00
{
"$schema" : "http://json-schema.org/draft-07/schema" ,
2022-06-07 21:39:02 +02:00
"$id" : "blockception.minecraft.behavior.blocks" ,
2022-06-07 21:37:57 +02:00
"title" : "Block Definitions" ,
2022-07-22 19:41:04 +02:00
"description" : "A custom block definition." ,
2022-06-07 21:37:57 +02:00
"type" : "object" ,
"additionalProperties" : false ,
2024-09-22 16:25:16 +05:00
"required" : [ "description" , "components" ] ,
2022-06-07 21:37:57 +02:00
"definitions" : {
"components_ref" : {
"type" : "object" ,
"title" : "Component" ,
2022-07-22 19:41:04 +02:00
"description" : "UNDOCUMENTED." ,
2022-06-07 21:37:57 +02:00
"$comment" : "UNDOCUMENTED" ,
"additionalProperties" : false ,
"properties" : {
2022-10-29 16:36:39 +02:00
//Components
"minecraft:collision_box" : { "$ref" : "./components/collision_box.json" } ,
"minecraft:crafting_table" : { "$ref" : "./components/crafting_table.json" } ,
"minecraft:destructible_by_explosion" : { "$ref" : "./components/destructible_by_explosion.json" } ,
"minecraft:destructible_by_mining" : { "$ref" : "./components/destructible_by_mining.json" } ,
2025-03-03 12:44:05 +05:00
"minecraft:destruction_particles" : { "$ref" : "./components/destruction_particles.json" } ,
2022-06-07 21:37:57 +02:00
"minecraft:display_name" : { "$ref" : "./components/display_name.json" } ,
"minecraft:flammable" : { "$ref" : "./components/flammable.json" } ,
"minecraft:friction" : { "$ref" : "./components/friction.json" } ,
"minecraft:geometry" : { "$ref" : "./components/geometry.json" } ,
2024-12-05 20:54:27 +05:00
"minecraft:item_visual" : { "$ref" : "./components/item_visual.json" } ,
2022-10-29 16:36:39 +02:00
"minecraft:light_dampening" : { "$ref" : "./components/light_dampening.json" } ,
"minecraft:light_emission" : { "$ref" : "./components/light_emission.json" } ,
2024-12-05 20:54:27 +05:00
"minecraft:liquid_detection" : { "$ref" : "./components/liquid_detection.json" } ,
2022-06-07 21:37:57 +02:00
"minecraft:loot" : { "$ref" : "./components/loot.json" } ,
"minecraft:map_color" : { "$ref" : "./components/map_color.json" } ,
"minecraft:material_instances" : { "$ref" : "./components/material_instances.json" } ,
"minecraft:placement_filter" : { "$ref" : "./components/placement_filter.json" } ,
2024-09-22 16:25:16 +05:00
"minecraft:redstone_conductivity" : { "$ref" : "./components/redstone_conductivity.json" } ,
2025-03-03 12:44:05 +05:00
"minecraft:replaceable" : { "$ref" : "./components/replaceable.json" } ,
2022-10-29 16:36:39 +02:00
"minecraft:selection_box" : { "$ref" : "./components/selection_box.json" } ,
2023-05-21 17:11:28 +02:00
"minecraft:transformation" : { "$ref" : "./components/transformation.json" } ,
2024-05-24 15:50:22 +05:00
"minecraft:custom_components" : { "$ref" : "./components/custom_components.json" } ,
2024-05-25 14:28:48 +05:00
"minecraft:tick" : { "$ref" : "./components/tick.json" } ,
2024-12-05 20:54:27 +05:00
"minecraft:entity_fall_on" : { "$ref" : "./components/entity_fall_on.json" } ,
// Tags
"tag:minecraft:diamond_tier_destructible" : { } ,
"tag:minecraft:iron_tier_destructible" : { } ,
"tag:minecraft:is_axe_item_destructible" : { } ,
"tag:minecraft:is_hoe_item_destructible" : { } ,
"tag:minecraft:is_mace_item_destructible" : { } ,
"tag:minecraft:is_pickaxe_item_destructible" : { } ,
"tag:minecraft:is_shears_item_destructible" : { } ,
"tag:minecraft:is_shovel_item_destructible" : { } ,
"tag:minecraft:is_sword_item_destructible" : { } ,
"tag:minecraft:netherite_tier_destructible" : { } ,
"tag:minecraft:stone_tier_destructible" : { }
2024-04-02 08:57:17 +01:00
} ,
"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
}
2022-06-07 21:37:57 +02:00
}
2024-03-18 23:58:22 +05:00
} ,
2024-04-01 09:52:43 +01:00
"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." ,
2024-03-18 23:58:22 +05:00
"type" : "object" ,
2024-04-01 09:52:43 +01:00
"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" : [
// "my:state": [false, true]
{ "$ref" : "./states/enum.json" } ,
// "my:state": { "values": { "min": 0, "max": 15 } }
{ "$ref" : "./states/integer_range.json" }
]
}
} ,
"traits_ref" : {
"title" : "Traits" ,
2024-03-18 23:58:22 +05:00
"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" ,
2024-04-01 09:52:43 +01:00
"type" : "object" ,
2024-03-18 23:58:22 +05:00
"additionalProperties" : false ,
"properties" : {
2024-04-01 09:52:43 +01:00
"minecraft:placement_direction" : { "$ref" : "./traits/placement_direction.json" } ,
"minecraft:placement_position" : { "$ref" : "./traits/placement_position.json" }
2024-03-18 23:58:22 +05:00
}
2022-06-07 21:37:57 +02:00
}
} ,
"properties" : {
"description" : {
"title" : "Block Description" ,
2022-07-22 19:41:04 +02:00
"description" : "The description for this block." ,
2022-06-07 21:37:57 +02:00
"type" : "object" ,
"additionalProperties" : false ,
2024-09-22 16:25:16 +05:00
"required" : [ "identifier" ] ,
2022-06-07 21:37:57 +02:00
"properties" : {
2024-04-01 09:52:43 +01:00
"identifier" : {
"title" : "Identifier" ,
"description" : "The identifier for this block. The name must include a namespace and must not use the Minecraft namespace unless overriding a Vanilla block." ,
"type" : "string" ,
"$ref" : "../../../general/block/identifier.json"
} ,
2022-10-10 19:34:01 +02:00
"menu_category" : {
"title" : "Menu Category" ,
2024-04-01 09:52:43 +01:00
"description" : "Specifies the menu category and group for the block, which determine where this block is placed in the inventory and crafting table container screens. If this field is omitted, the block will not appear in the inventory or crafting table container screens." ,
2022-10-10 19:34:01 +02:00
"type" : "object" ,
2024-09-22 16:25:16 +05:00
"examples" : [ { "category" : "construction" } ] ,
2022-10-10 19:34:01 +02:00
"additionalProperties" : false ,
2024-09-22 16:25:16 +05:00
"required" : [ "category" ] ,
2022-10-10 19:34:01 +02:00
"properties" : {
2022-11-25 19:42:49 +00:00
"category" : {
2024-03-20 13:16:15 +05:00
"$ref" : "../../../general/vanilla/creative_category.json"
2022-10-10 19:34:01 +02:00
} ,
"group" : {
2025-02-13 18:38:27 +05:00
"title" : "Group" ,
"description" : "A translation string of an existing group in minecraft to group this block/item under" ,
"type" : "string" ,
"pattern" : "^[0-9a-zA-Z:_\\.\\-]+$"
2022-11-02 08:16:09 +01:00
} ,
"is_hidden_in_commands" : {
"title" : "Is Hidden In Commands" ,
2024-04-01 09:52:43 +01:00
"description" : "Determines whether or not this item can be used with commands such as /give and /setblock. Commands can use blocks by default" ,
"type" : "boolean" ,
"default" : false
2022-10-10 19:34:01 +02:00
}
}
} ,
2024-04-01 09:52:43 +01:00
"states" : { "$ref" : "#/definitions/states_ref" } ,
"traits" : { "$ref" : "#/definitions/traits_ref" }
2022-06-07 21:37:57 +02:00
}
} ,
2024-04-01 09:52:43 +01:00
"components" : { "$ref" : "#/definitions/components_ref" } ,
2022-06-07 21:37:57 +02:00
"permutations" : {
"type" : "array" ,
"title" : "Permutations" ,
2022-07-22 19:41:04 +02:00
"description" : "UNDOCUMENTED." ,
2022-06-07 21:37:57 +02:00
"$comment" : "UNDOCUMENTED" ,
"items" : {
"title" : "Permutation" ,
2022-07-22 19:41:04 +02:00
"description" : "UNDOCUMENTED." ,
2022-06-07 21:37:57 +02:00
"$comment" : "UNDOCUMENTED" ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"condition" : {
"title" : "Condition" ,
2024-04-01 09:52:43 +01:00
"description" : "A Molang expression that evaluates to true or false to determine if this permutation should be used. For permutation conditions you are limited to using one Molang query: \"query.block_state()\"" ,
"$ref" : "../../../molang/boolean.json"
2022-06-07 21:37:57 +02:00
} ,
"components" : {
"type" : "object" ,
"title" : "Component" ,
"$ref" : "#/definitions/components_ref"
}
}
}
}
}
}