2021-10-08 12:59:03 +02:00
|
|
|
{
|
2021-10-08 13:04:13 +02:00
|
|
|
"$id": "blockception.minecraft.behavior.entities.minecraft.mob_effect",
|
2021-10-08 12:59:03 +02:00
|
|
|
"type": "object",
|
2021-10-08 13:04:13 +02:00
|
|
|
"title": "Mob Effect",
|
2021-10-08 12:59:03 +02:00
|
|
|
"description": "A component that applies a mob effect to entities that get within range.",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
2022-06-07 20:15:10 +02:00
|
|
|
"cooldown_time": {
|
|
|
|
|
"title": "Cooldown Time",
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"default": 0,
|
|
|
|
|
"description": "Time in seconds to wait between each application of the effect."
|
|
|
|
|
},
|
2021-10-08 12:59:03 +02:00
|
|
|
"effect_range": {
|
2022-06-07 20:15:10 +02:00
|
|
|
"title": "Effect Range",
|
2021-10-08 12:59:03 +02:00
|
|
|
"type": "number",
|
|
|
|
|
"default": 0.2,
|
2022-06-07 20:15:10 +02:00
|
|
|
"description": "How close a hostile entity must be to have the mob effect applied."
|
2021-10-08 12:59:03 +02:00
|
|
|
},
|
2021-10-11 18:10:42 +02:00
|
|
|
"effect_time": {
|
2022-06-07 20:15:10 +02:00
|
|
|
"title": "Effect Time",
|
2021-10-11 18:10:42 +02:00
|
|
|
"type": "integer",
|
|
|
|
|
"default": 10,
|
2022-06-07 20:15:10 +02:00
|
|
|
"description": "How long the applied mob effect lasts in seconds."
|
2021-10-08 12:59:03 +02:00
|
|
|
},
|
|
|
|
|
"entity_filter": {
|
|
|
|
|
"$ref": "../../filters/filters.json",
|
|
|
|
|
"title": "Entity Filter",
|
|
|
|
|
"description": "Filter to use for conditions"
|
2022-06-07 20:15:10 +02:00
|
|
|
},
|
|
|
|
|
"mob_effect": {
|
|
|
|
|
"title": "Mob Effect",
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": "",
|
|
|
|
|
"description": "The mob effect that is applied to entities that enter this entities effect range."
|
2021-10-08 12:59:03 +02:00
|
|
|
}
|
2021-10-11 18:10:42 +02:00
|
|
|
},
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"effect_range": 0.2,
|
|
|
|
|
"effect_time": 10,
|
|
|
|
|
"mob_effect": ""
|
|
|
|
|
}
|
|
|
|
|
]
|
2021-10-08 12:59:03 +02:00
|
|
|
}
|