2021-10-08 12:59:03 +02:00
|
|
|
{
|
2021-10-08 13:04:13 +02:00
|
|
|
"$id": "blockception.minecraft.behavior.entities.minecraft.knockback_resistance",
|
2021-10-08 12:59:03 +02:00
|
|
|
"type": "object",
|
2021-10-08 13:04:13 +02:00
|
|
|
"title": "Knockback Resistance",
|
2023-03-20 11:39:56 +01:00
|
|
|
"description": "Allows an entity to resist being knocked backwards by a melee attack.",
|
2021-10-08 12:59:03 +02:00
|
|
|
"required": [],
|
2023-03-20 11:39:56 +01:00
|
|
|
"additionalProperties": false,
|
2021-10-08 12:59:03 +02:00
|
|
|
"properties": {
|
2022-07-20 21:14:28 +01:00
|
|
|
"value": {
|
|
|
|
|
"title": "Value",
|
2021-10-11 18:10:42 +02:00
|
|
|
"type": "number",
|
2022-07-20 21:14:28 +01:00
|
|
|
"default": 1.0,
|
2023-03-20 11:39:56 +01:00
|
|
|
"description": "Percentage of knockback to reduce with 1.0 being 100% reduction."
|
|
|
|
|
},
|
|
|
|
|
"maximum": {
|
|
|
|
|
"title": "Maximum",
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": 1.0,
|
|
|
|
|
"description": "The maximum amount of knockback resistance that can be applied to the entity."
|
2021-10-11 18:10:42 +02:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
2022-07-20 21:14:28 +01:00
|
|
|
"value": 1.0
|
2023-03-20 06:36:03 -04:00
|
|
|
},
|
|
|
|
|
{
|
2023-03-20 11:39:56 +01:00
|
|
|
"value": 100,
|
|
|
|
|
"maximum": 100
|
2021-10-11 18:10:42 +02:00
|
|
|
}
|
|
|
|
|
]
|
2021-10-08 12:59:03 +02:00
|
|
|
}
|