Updating filters and behaviors

This commit is contained in:
DaanV2
2023-10-24 21:58:11 +02:00
parent 96d0654970
commit b79f694f7a
25 changed files with 496 additions and 16 deletions

View File

@@ -25,6 +25,12 @@
"default": "N/A",
"description": "Defines the entity types this entity will attack."
},
"can_spread_on_fire": {
"title": "Can Spread On Fire",
"type": "boolean",
"default": false,
"description": "If the entity is on fire, this allows the entity's target to catch on fire after being hi"
},
"cooldown_time": {
"title": "Cooldown Time",
"type": "number",

View File

@@ -12,7 +12,6 @@
"speed_multiplier": {
"$ref": "./types/speed_multiplier.json"
},
"attack_once": {
"title": "Attack Once",
"type": "boolean",
@@ -25,6 +24,12 @@
"default": "N/A",
"description": "Defines the entity types this entity will attack."
},
"can_spread_on_fire": {
"title": "Can Spread On Fire",
"type": "boolean",
"default": false,
"description": "If the entity is on fire, this allows the entity's target to catch on fire after being hi"
},
"cooldown_time": {
"title": "Cooldown Time",
"type": "number",

View File

@@ -19,6 +19,12 @@
"description": "Time in seconds before selecting a target.",
"title": "Attack Interval"
},
"cooldown": {
"title": "Cooldown",
"description": "The amount of time in seconds that the mob has to wait before selecting a target of the same type again",
"default": 0.0,
"type": "number"
},
"must_reach": {
"type": "boolean",
"default": false,

View File

@@ -14,6 +14,12 @@
"default": false,
"description": "If the goal should continue to be used as long as the mob is leashed."
},
"continue_sitting_on_reload": {
"title": "Continue Sitting On Reload",
"type": "boolean",
"default": false,
"description": "The mob will stay sitting on reload."
},
"max_angle_of_view_horizontal": {
"title": "Max Angle Of View Horizontal",
"type": "number",

View File

@@ -0,0 +1,112 @@
{
"$id": "blockception.minecraft.behavior.entities.minecraft.behavior.random_search_and_dig",
"additionalProperties": false,
"description": "Allows this entity to locate a random target block that it can path find to. Once found, the entity will move towards it and dig up an item.",
"type": "object",
"title": "Random Look Around",
"required": [],
"properties": {
"priority": { "$ref": "types/priority.json" },
"speed_multiplier": { "$ref": "types/speed_multiplier.json" },
"cooldown_range": {
"title": "Cooldown Range",
"default": [0.0, 0.0],
"description": "Goal cooldown range in seconds.",
"$ref": "../../../../general/vectors/number2.json"
},
"digging_duration_range": {
"title": "Digging Duration Range",
"$ref": "../../../../general/vectors/number2.json",
"default": [0.0, 0.0],
"description": "Digging duration in seconds."
},
"find_valid_position_retries": {
"title": "Find Valid Position Retries",
"type": "number",
"default": 0.0,
"description": "Amount of retries to find a valid target position within search range."
},
"goal_radius": {
"title": "Goal Radius",
"type": "number",
"default": 1500000,
"description": "Distance in blocks within the entity to considers it has reached it's target position."
},
"item_table": {
"title": "Item Table",
"type": "string",
"default": "",
"description": "File path relative to the resource pack root for items to spawn list (loot table format)."
},
"on_digging_start": {
"title": "On Digging Start",
"$ref": "../types/trigger.json",
"description": "Event to run when the goal ends searching has begins digging."
},
"on_fail_during_digging": {
"title": "On Fail During Digging",
"$ref": "../types/trigger.json",
"description": "Event to run when the goal failed while in digging state."
},
"on_fail_during_searching": {
"title": "On Fail During Searching",
"$ref": "../types/trigger.json",
"description": "Event to run when the goal failed while in searching state."
},
"on_item_found": {
"title": "On Item Found",
"$ref": "../types/trigger.json",
"description": "Event to run when the goal find a item."
},
"on_searching_start": {
"title": "On Searching Start",
"$ref": "../types/trigger.json",
"description": "Event to run when the goal starts searching."
},
"on_success": {
"title": "On Success",
"$ref": "../types/trigger.json",
"description": "Event to run when searching and digging has ended."
},
"search_range_xz": {
"title": "Search Range XZ",
"type": "number",
"default": 0.0,
"description": "Width and length of the volume around the entity used to find a valid target position"
},
"search_range_y": {
"title": "Search Range Y",
"type": "number",
"default": 0.0,
"description": "Height of the volume around the entity used to find a valid target position"
},
"spawn_item_after_seconds": {
"title": "Spawn Item After Seconds",
"type": "number",
"default": 0.0,
"description": "Digging duration before spawning item in seconds."
},
"spawn_item_pos_offset": {
"title": "Spawn Item Pos Offset",
"type": "number",
"default": 0.0,
"description": "Distance to offset the item's spawn location in the direction the mob is facing."
},
"target_blocks": {
"title": "Target Blocks",
"type": "array",
"description": "List of target block types the goal will look to dig on. Overrides the default list.",
"items": {
"$ref": "../../../../general/block/reference.json"
}
},
"target_dig_position_offset": {
"title": "Target Dig Position Offset",
"type": "number",
"default": 2250000,
"description": "Dig target position offset from the feet position of the mob in their facing direction."
}
}
}

View File

@@ -8,7 +8,6 @@
"properties": {
"priority": { "$ref": "types/priority.json" },
"speed_multiplier": { "$ref": "types/speed_multiplier.json" },
"attack_once": {
"title": "Attack Once",
"type": "boolean",
@@ -21,6 +20,12 @@
"default": "N/A",
"description": "Defines the entity types this entity will attack."
},
"can_spread_on_fire": {
"title": "Can Spread On Fire",
"type": "boolean",
"default": false,
"description": "If the entity is on fire, this allows the entity's target to catch on fire after being hi"
},
"cooldown_time": {
"title": "Cooldown Time",
"type": "number",

View File

@@ -0,0 +1,31 @@
{
"$id": "blockception.minecraft.behavior.entities.minecraft.behavior.timer_flag",
"title": "Timer Flag",
"description": "Fires an event when this behavior starts, then waits for a duration before stopping. When stopping due to that timeout or due to being interrupted by another behavior, fires another event. query.timer_flag_<n> will return 1.0 on both the client and server when this behavior is running, and 0.0 otherwise.",
"type": "object",
"additionalProperties": false,
"properties": {
"cooldown_range": {
"title": "Cooldown Range",
"$ref": "../../../../general/vectors/number2.json",
"default": [10.0, 10.0],
"description": "Goal cooldown range in seconds."
},
"duration_range": {
"title": "Duration Range",
"$ref": "../../../../general/vectors/number2.json",
"default": [2.0, 2.0],
"description": "Goal duration range in seconds."
},
"on_end": {
"title": "On End",
"$ref": "../types/trigger.json",
"description": "Event to run when the goal ends."
},
"on_start": {
"title": "On Start",
"$ref": "../types/trigger.json",
"description": "Event to run when the goal starts."
}
}
}