From d318bd05dda0f8a16867b0a7f3eec57972c02721 Mon Sep 17 00:00:00 2001 From: StealthyX Date: Mon, 20 Mar 2023 06:36:03 -0400 Subject: [PATCH] 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 } --- .../entities/format/components/knockback_resistance.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/behavior/entities/format/components/knockback_resistance.json b/source/behavior/entities/format/components/knockback_resistance.json index 9fdbe5f6..6003d246 100644 --- a/source/behavior/entities/format/components/knockback_resistance.json +++ b/source/behavior/entities/format/components/knockback_resistance.json @@ -13,12 +13,15 @@ "default": 1.0, "description": "Percentage of knockback to reduce with 1.0 being 100% reduction.", "$comment": "UNDOCUMENTED", - "maximum": 1 + "maximum": 100 } }, "examples": [ { "value": 1.0 + }, + { + "value": 100 } ] }