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 ,
"required" : [ "description" , "components" ] ,
"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-06-08 21:18:47 +02:00
"minecraft:block_light_filter" : { "$ref" : "./components/block_light_filter.json" } ,
2022-06-07 21:37:57 +02:00
"minecraft:block_light_emission" : { "$ref" : "./components/block_light_emission.json" } ,
"minecraft:breakonpush" : { "$ref" : "./components/breakonpush.json" } ,
"minecraft:breathability" : { "$ref" : "./components/breathability.json" } ,
"minecraft:destroy_time" : { "$ref" : "./components/destroy_time.json" } ,
"minecraft:display_name" : { "$ref" : "./components/display_name.json" } ,
"minecraft:entity_collision" : { "$ref" : "./components/entity_collision.json" } ,
"minecraft:explosion_resistance" : { "$ref" : "./components/explosion_resistance.json" } ,
"minecraft:flammable" : { "$ref" : "./components/flammable.json" } ,
"minecraft:friction" : { "$ref" : "./components/friction.json" } ,
"minecraft:geometry" : { "$ref" : "./components/geometry.json" } ,
"minecraft:immovable" : { "$ref" : "./components/immovable.json" } ,
"minecraft:loot" : { "$ref" : "./components/loot.json" } ,
"minecraft:map_color" : { "$ref" : "./components/map_color.json" } ,
"minecraft:material_instances" : { "$ref" : "./components/material_instances.json" } ,
"minecraft:onlypistonpush" : { "$ref" : "./components/onlypistonpush.json" } ,
2022-07-27 19:30:39 +02:00
"minecraft:part_visibility" : { "$ref" : "./components/part_visibility.json" } ,
2022-06-07 21:37:57 +02:00
"minecraft:on_fall_on" : { "$ref" : "./components/on_fall_on.json" } ,
"minecraft:on_interact" : { "$ref" : "./components/on_interact.json" } ,
"minecraft:on_placed" : { "$ref" : "./components/on_placed.json" } ,
"minecraft:on_player_destroyed" : { "$ref" : "./components/on_player_destroyed.json" } ,
"minecraft:on_player_placing" : { "$ref" : "./components/on_player_placing.json" } ,
"minecraft:on_step_off" : { "$ref" : "./components/on_step_off.json" } ,
"minecraft:on_step_on" : { "$ref" : "./components/on_step_on.json" } ,
"minecraft:pick_collision" : { "$ref" : "./components/pick_collision.json" } ,
"minecraft:placement_filter" : { "$ref" : "./components/placement_filter.json" } ,
"minecraft:preventsjumping" : { "$ref" : "./components/preventsjumping.json" } ,
"minecraft:random_ticking" : { "$ref" : "./components/random_ticking.json" } ,
"minecraft:rotation" : { "$ref" : "./components/rotation.json" } ,
"minecraft:ticking" : { "$ref" : "./components/ticking.json" } ,
"minecraft:unit_cube" : { "$ref" : "./components/unit_cube.json" } ,
"minecraft:unwalkable" : { "$ref" : "./components/unwalkable.json" }
}
}
} ,
"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 ,
"required" : [ "identifier" ] ,
"properties" : {
2022-10-10 19:34:01 +02:00
"menu_category" : {
"title" : "Menu Category" ,
"$comment" : "UNDOCUMENTED" ,
"description" : "The category this block will be placed in in the menu." ,
"type" : "object" ,
"default" : "misc" ,
"additionalProperties" : false ,
"required" : [ "category" ] ,
"properties" : {
"category" : {
"title" : "Category" ,
"$comment" : "UNDOCUMENTED" ,
"description" : "construction" ,
"type" : "string" ,
"examples" : [ "construction" ]
} ,
"group" : {
"title" : "Group" ,
"$comment" : "UNDOCUMENTED" ,
"description" : "" ,
"type" : "string" ,
"examples" : [ "itemGroup.name.planks" ]
}
}
} ,
2022-06-07 21:37:57 +02:00
"identifier" : {
"type" : "string" ,
"description" : "The identifier for this block. The name must include a namespace and must not use the Minecraft namespace unless overriding a Vanilla block." ,
"title" : "Identifier" ,
"$ref" : "../../../general/block/identifier.json"
} ,
"is_experimental" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If this block is experimental, it will only be registered if the world is marked as experimantal." ,
"title" : "Is Experimental"
} ,
"register_to_creative_menu" : {
"type" : "boolean" ,
"default" : false ,
"description" : "Whether or not to register this block to the creative inventory menu." ,
"title" : "Register To Creative Menu"
} ,
"properties" : {
"title" : "Properties" ,
2022-07-22 19:41:04 +02:00
"description" : "UNDOCUMENTED." ,
2022-06-07 21:37:57 +02:00
"$comment" : "UNDOCUMENTED" ,
"propertyNames" : { "pattern" : "^([a-zA-Z0-9_]+:[a-zA-Z0-9_\\-]+)$" } ,
"type" : "object" ,
"additionalProperties" : {
"title" : "Property" ,
2022-07-22 19:41:04 +02:00
"description" : "A block property." ,
2022-06-07 21:37:57 +02:00
"oneOf" : [
{
"type" : "array" ,
"items" : {
"title" : "Property Value" ,
2022-07-22 19:41:04 +02:00
"description" : "The value of this property." ,
2022-06-07 21:37:57 +02:00
"anyOf" : [ { "type" : "boolean" } , { "type" : "number" } , { "type" : "integer" } , { "type" : "string" } ]
}
} ,
{ "type" : "object" }
]
}
}
}
} ,
"events" : { "$ref" : "./events.json" } ,
"components" : {
"type" : "object" ,
"title" : "Component" ,
"$ref" : "#/definitions/components_ref"
} ,
"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" ,
2022-07-22 19:41:04 +02:00
"description" : "UNDOCUMENTED." ,
2022-06-07 21:37:57 +02:00
"$comment" : "UNDOCUMENTED" ,
"$ref" : "../../../molang/string.json"
} ,
"components" : {
"type" : "object" ,
"title" : "Component" ,
"$ref" : "#/definitions/components_ref"
}
}
}
}
}
}