Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/knockback_resistance.json
StealthyX d318bd05dd Updated knockback_resistance component's max value (#168)
The minecraft:ender_dragon uses a value that is 100x higher than 1.0, I've increased the max cap on this component to at least that amount.

Found in the vanilla behavior pack.
ender_dragon.json
```
      "minecraft:knockback_resistance": {
        "value": 100,
        "max": 100
      }
```

Also added another example:
    {
      "value": 100
    }
2023-03-20 11:36:03 +01:00

28 lines
650 B
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.knockback_resistance",
"type": "object",
"title": "Knockback Resistance",
"additionalProperties": false,
"description": "Determines the amount of knockback resistance that the item has.",
"$comment": "UNDOCUMENTED",
"required": [],
"properties": {
"value": {
"title": "Value",
"type": "number",
"default": 1.0,
"description": "Percentage of knockback to reduce with 1.0 being 100% reduction.",
"$comment": "UNDOCUMENTED",
"maximum": 100
}
},
"examples": [
{
"value": 1.0
},
{
"value": 100
}
]
}