Updated knockback_resistance to reflect documentation

This commit is contained in:
DaanV2
2023-03-20 11:39:56 +01:00
parent 4897de97ca
commit 7efd70ec36

View File

@@ -2,18 +2,21 @@
"$id": "blockception.minecraft.behavior.entities.minecraft.knockback_resistance", "$id": "blockception.minecraft.behavior.entities.minecraft.knockback_resistance",
"type": "object", "type": "object",
"title": "Knockback Resistance", "title": "Knockback Resistance",
"additionalProperties": false, "description": "Allows an entity to resist being knocked backwards by a melee attack.",
"description": "Determines the amount of knockback resistance that the item has.",
"$comment": "UNDOCUMENTED",
"required": [], "required": [],
"additionalProperties": false,
"properties": { "properties": {
"value": { "value": {
"title": "Value", "title": "Value",
"type": "number", "type": "number",
"default": 1.0, "default": 1.0,
"description": "Percentage of knockback to reduce with 1.0 being 100% reduction.", "description": "Percentage of knockback to reduce with 1.0 being 100% reduction."
"$comment": "UNDOCUMENTED", },
"maximum": 100 "maximum": {
"title": "Maximum",
"type": "number",
"default": 1.0,
"description": "The maximum amount of knockback resistance that can be applied to the entity."
} }
}, },
"examples": [ "examples": [
@@ -21,7 +24,8 @@
"value": 1.0 "value": 1.0
}, },
{ {
"value": 100 "value": 100,
"maximum": 100
} }
] ]
} }