From be4669ff2efc1d98c4ec34c910e6e769cbb6c2c2 Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Tue, 21 Sep 2021 22:36:06 +0200 Subject: [PATCH] Updating knockback --- .../minecraft.behavior.knockback_roar.json | 32 +++++++++++++++-- .../minecraft.behavior.knockback_roar.json | 35 ++++++++++++++++--- 2 files changed, 61 insertions(+), 6 deletions(-) diff --git a/source/behavior/entities/1.16.0/behaviors/minecraft.behavior.knockback_roar.json b/source/behavior/entities/1.16.0/behaviors/minecraft.behavior.knockback_roar.json index 6ba1c8fb..19fe7c6f 100644 --- a/source/behavior/entities/1.16.0/behaviors/minecraft.behavior.knockback_roar.json +++ b/source/behavior/entities/1.16.0/behaviors/minecraft.behavior.knockback_roar.json @@ -19,14 +19,42 @@ "description": "Time in seconds the mob has to wait before using the goal again", "title": "Cooldown Time" }, - "duration": { "type": "number", "default": 1, "description": "The duration of the roar (in seconds).", "title": "Duration" }, - "knockback_damage": { "type": "integer", "default": 6, "description": "The damage dealt by the knockback roar.", "title": "Knockback Damage" }, + "duration": { + "type": "number", + "default": 1, + "description": "The duration of the roar (in seconds).", + "title": "Duration" + }, + "knockback_damage": { + "type": "integer", + "default": 6, + "description": "The damage dealt by the knockback roar.", + "title": "Knockback Damage" + }, + "knockback_horizontal_strength": { + "type": "integer", + "default": 4, + "description": "The strength of the horizontal knockback.", + "title": "Knockback Horizontal Strength" + }, "knockback_range": { "type": "integer", "default": 4, "description": "The radius (in blocks) of the knockback effect.", "title": "Knockback Range" }, + "knockback_vertical_strength": { + "type": "integer", + "default": 4, + "description": "The strength of the vertical knockback.", + "title": "Knockback Vertical Strength" + }, + "track_target": { + "type": "boolean", + "default": false, + "description": "If true, this mob will chase after the target as long as it's a valid target", + "title": "Track Target" + }, "knockback_strength": { "type": "integer", "default": 4, "description": "The strength of the knockback.", "title": "Knockback Strength" }, "knockback_filters": { "$ref": "../../filters/filters.json", diff --git a/source/behavior/entities/1.8.0/behaviors/minecraft.behavior.knockback_roar.json b/source/behavior/entities/1.8.0/behaviors/minecraft.behavior.knockback_roar.json index 45516ee3..7e556b5e 100644 --- a/source/behavior/entities/1.8.0/behaviors/minecraft.behavior.knockback_roar.json +++ b/source/behavior/entities/1.8.0/behaviors/minecraft.behavior.knockback_roar.json @@ -7,6 +7,7 @@ "required": [], "properties": { "priority": { "$ref": "./types/priority.json" }, + "trigger": { "$ref": "../types/trigger.json" }, "attack_time": { "type": "number", "default": 0.5, @@ -19,15 +20,41 @@ "description": "Time in seconds the mob has to wait before using the goal again", "title": "Cooldown Time" }, - "duration": { "type": "number", "default": 1, "description": "The duration of the roar (in seconds).", "title": "Duration" }, - "knockback_damage": { "type": "integer", "default": 6, "description": "The damage dealt by the knockback roar.", "title": "Knockback Damage" }, + "duration": { + "type": "number", + "default": 1, + "description": "The duration of the roar (in seconds).", + "title": "Duration" + }, + "knockback_damage": { + "type": "integer", + "default": 6, + "description": "The damage dealt by the knockback roar.", + "title": "Knockback Damage" + }, + "knockback_horizontal_strength": { + "type": "integer", + "default": 4, + "description": "The strength of the horizontal knockback.", + "title": "Knockback Horizontal Strength" + }, "knockback_range": { "type": "integer", "default": 4, "description": "The radius (in blocks) of the knockback effect.", "title": "Knockback Range" }, - "knockback_strength": { "type": "integer", "default": 4, "description": "The strength of the knockback.", "title": "Knockback Strength" }, - "trigger": { "$ref": "../types/trigger.json" } + "knockback_vertical_strength": { + "type": "integer", + "default": 4, + "description": "The strength of the vertical knockback.", + "title": "Knockback Vertical Strength" + }, + "track_target": { + "type": "boolean", + "default": false, + "description": "If true, this mob will chase after the target as long as it's a valid target", + "title": "Track Target" + } } }