Files
minecraft-bedrock-json-schemas/source/behavior/blocks/format/components/liquid_detection.json
Xterionix 40569873a8 Updated for 1.21.60 (#334)
* - Add crafting item catalogs
* - Removed experimental warning for item visual
* - Added renders_when_invisible entity component
* - Removed experimental warning for liquid detection
* - Added property inheritance to breedable
* - Added min_looked_at_duration field to look_at component
* - Added combine_parent_colors to breedable
* - Update catalog file schema
* - Split storage item components
* - Added new entity filters
* - Added surface opacity to water appearance biome component
* - Remove actor_id loot table example as it is no longer the standard
* - Add set_armor_trim trim loot table function
* - Added match_tool loot table condition
* - Added creature_spawn_probability component
* - Added verticalFlySpeed to has_ability
* - Update descriptions and default values
* - Add base field to block_sounds
* - Removed block sounds enum as creators can specify custom ones too
* - Change default format version
2025-02-13 14:38:27 +01:00

56 lines
3.0 KiB
JSON

{
"$id": "blockception.minecraft.behavior.blocks.minecraft.liquid_detection",
"title": "Liquid Detection",
"description": "The definitions for how a block behaves when detecting liquid. Only one rule definition is allowed per liquid type - if multiple are specified, the first will be used and the rest will be ignored.",
"type": "object",
"additionalProperties": false,
"required": [ ],
"definitions": {
"definition_rule": {
"title": "Definition Rule",
"description": "The definition rule that specifies the behavior for one liquid type.",
"type": "object",
"additionalProperties": false,
"properties": {
"can_contain_liquid": {
"title": "Can Contain Liquid",
"description": "Whether this block can contain the liquid. For example, if the liquid type is water, this means the block can be waterlogged.",
"type": "boolean",
"default": false
},
"liquid_type": {
"title": "Liquid Type",
"description": "The type of liquid this detection rule is for.",
"type": "string",
"enum": [ "water" ],
"default": "water"
},
"on_liquid_touches": {
"title": "On Liquid Touches",
"description": "How the block reacts to flowing water. Must be one of the following options:\n\"blocking\" - The default value for this field. The block stops the liquid from flowing.\n\"broken\" - The block is destroyed completely.\n\"popped\" - The block is destroyed and its item is spawned.\n\"no_reaction\" - The block is unaffected; visually, the liquid will flow through the block.",
"type": "string",
"enum": [ "blocking", "broken", "popped", "no_reaction" ],
"default": "blocking"
},
"stops_liquid_flowing_from_direction": {
"title": "Stops Liquid Flowing From Direction",
"description": "When a block contains a liquid, controls the directions in which the liquid can't flow out from the block. Also controls the directions in which a block can stop liquid flowing into it if no_reaction is set for the on_liquid_touches field. The default is an empty list; this means that liquid can flow out of all directions by default.",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [ "up", "down", "north", "south", "east", "west", "side", "all" ]
}
}
}
}
},
"properties": {
"detection_rules": {
"type": "array",
"items": {
"$ref": "#/definitions/definition_rule"
}
}
}
}