Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/explode.json
2021-10-11 18:10:42 +02:00

83 lines
2.4 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.explode",
"type": "object",
"title": "Explode",
"additionalProperties": false,
"description": "Defines how the entity explodes.",
"properties": {
"breaks_blocks": {
"type": "boolean",
"default": true,
"description": "If true, the explosion will destroy blocks in the explosion radius.",
"title": "Breaks Blocks"
},
"causes_fire": {
"type": "boolean",
"default": false,
"description": "If true, blocks in the explosion radius will be set on fire.",
"title": "Causes Fire"
},
"destroy_affected_by_griefing": {
"type": "boolean",
"default": false,
"description": "If true, whether the explosion breaks blocks is affected by the mob griefing game rule.",
"title": "Destroy Affected By Griefing"
},
"fire_affected_by_griefing": {
"type": "boolean",
"default": false,
"description": "If true, whether the explosion causes fire is affected by the mob griefing game rule.",
"title": "Fire Affected By Griefing"
},
"fuse_length": {
"default": [0.0, 0.0],
"description": "The range for the random amount of time the fuse will be lit before exploding, a negative value means the explosion will be immediate.",
"title": "Fuse Length",
"oneOf": [
{
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
}
]
},
{
"type": "number"
}
]
},
"fuse_lit": {
"type": "boolean",
"default": false,
"description": "If true, the fuse is already lit when this component is added to the entity.",
"title": "Fuse Lit"
},
"max_resistance": {
"type": "number",
"description": "A blocks explosion resistance will be capped at this value when an explosion occurs.",
"title": "Maximum Resistance"
},
"power": {
"type": "number",
"default": 3,
"description": "The radius of the explosion in blocks and the amount of damage the explosion deals.",
"title": "Power"
}
},
"examples": [
{
"breaks_blocks": true,
"causes_fire": false,
"destroy_affected_by_griefing": false,
"fire_affected_by_griefing": false,
"fuse_lit": false,
"max_resistance": 0.0,
"power": 3
}
]
}