Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/explode.json

125 lines
4.0 KiB
JSON
Raw Normal View History

2021-10-08 12:59:03 +02:00
{
2021-10-08 13:04:13 +02:00
"$id": "blockception.minecraft.behavior.entities.minecraft.explode",
2021-10-08 12:59:03 +02:00
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Explode",
2021-10-08 12:59:03 +02:00
"additionalProperties": false,
"description": "Defines how the entity explodes.",
"properties": {
2024-11-18 19:33:19 +05:00
"allow_underwater": {
"title": "Allow Underwater",
"description": "If true, the explosion will affect blocks and entities under water.",
"type": "boolean",
"default": false
},
2021-10-08 12:59:03 +02:00
"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"
},
2024-11-18 19:33:19 +05:00
"damage_scaling": {
"title": "Damage Scaling",
"description": "A scale factor applied to the explosion's damage to entities. A value of 0 prevents the explosion from dealing any damage. Negative values cause the explosion to heal entities instead.",
"type": "number",
"default": 1.0
},
2021-10-08 12:59:03 +02:00
"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",
2021-10-11 18:10:42 +02:00
"oneOf": [
{
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
}
]
},
{
"type": "number"
}
]
2021-10-08 12:59:03 +02:00
},
"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"
},
2024-11-18 19:33:19 +05:00
"knockback_scaling": {
"title": "Knockback Scaling",
"description": "A scale factor applied to the knockback force caused by the explosion.",
"type": "number",
"default": 1.0
},
2021-10-08 12:59:03 +02:00
"max_resistance": {
"type": "number",
"description": "A blocks explosion resistance will be capped at this value when an explosion occurs.",
"title": "Maximum Resistance"
},
2024-11-18 19:33:19 +05:00
"negates_fall_damage": {
"title": "Negates Fall Damage",
"description": "Defines whether the explosion should apply fall damage negation to Players above the point of collision.",
"type": "boolean",
"default": false
},
"particle_effect": {
"title": "Particle Effect",
"description": "The name of the particle effect to use.",
"enum": ["explosion", "wind_burst", "breeze_wind_burst"],
"default": "explosion"
},
2021-10-08 12:59:03 +02:00
"power": {
"type": "number",
"default": 3,
"description": "The radius of the explosion in blocks and the amount of damage the explosion deals.",
"title": "Power"
2024-11-18 19:33:19 +05:00
},
"sound_effect": {
"title": "Sound Effect",
"description": "The name of the sound effect played when the explosion triggers.",
"type": "string",
"default": "explode"
},
"toggles_blocks": {
"title": "Toggles Blocks",
"description": "If true, the explosion will toggle blocks in the explosion radius.",
"type": "boolean",
"default": false
2021-10-08 12:59:03 +02:00
}
2021-10-11 18:10:42 +02:00
},
"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
}
]
2021-10-08 12:59:03 +02:00
}