From 7efd70ec36ef035472adab252a186fe846969c1b Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Mon, 20 Mar 2023 11:39:56 +0100 Subject: [PATCH] Updated knockback_resistance to reflect documentation --- .../components/knockback_resistance.json | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/source/behavior/entities/format/components/knockback_resistance.json b/source/behavior/entities/format/components/knockback_resistance.json index 6003d246..c1c3bf88 100644 --- a/source/behavior/entities/format/components/knockback_resistance.json +++ b/source/behavior/entities/format/components/knockback_resistance.json @@ -2,18 +2,21 @@ "$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", + "description": "Allows an entity to resist being knocked backwards by a melee attack.", "required": [], + "additionalProperties": false, "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 + "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." } }, "examples": [ @@ -21,7 +24,8 @@ "value": 1.0 }, { - "value": 100 + "value": 100, + "maximum": 100 } ] }