From b2db28caefe7451bfe17ffa45d582ff3175a7b2e Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Tue, 21 Sep 2021 22:36:14 +0200 Subject: [PATCH] Updated pickup --- .../minecraft.behavior.pickup_items.json | 31 +++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/source/behavior/entities/1.8.0/behaviors/minecraft.behavior.pickup_items.json b/source/behavior/entities/1.8.0/behaviors/minecraft.behavior.pickup_items.json index 354f5e70..8ffb26d0 100644 --- a/source/behavior/entities/1.8.0/behaviors/minecraft.behavior.pickup_items.json +++ b/source/behavior/entities/1.8.0/behaviors/minecraft.behavior.pickup_items.json @@ -8,17 +8,44 @@ "properties": { "priority": { "$ref": "types/priority.json" }, "speed_multiplier": { "$ref": "types/speed_multiplier.json" }, + "can_pickup_any_item": { + "type": "boolean", + "default": false, + "description": "If true, the mob can pickup any item", + "title": "Can Pickup Any Item" + }, + "can_pickup_to_hand_or_equipment": { + "type": "boolean", + "default": true, + "description": "If true, the mob can pickup items to its hand or armor slots", + "title": "Can Pickup To Hand Or Equipment" + }, + "excluded_items": { + "type": "array", + "description": "List of items this mob will not pick up", + "title": "Excluded Items", + "items": { + "title": "Excluded Item", + "$ref": "../../../../general/item/identifier.json" + } + }, "goal_radius": { "type": "number", "default": 0.5, - "description": "Distance in blocks within the mob considers it has reached the goal. This is the `wiggle room` to stop the AI from bouncing back and forth trying to reach a specific spot", + "description": "Distance in blocks within the mob considers it has reached the goal. This is the \"wiggle room\" to stop the AI from bouncing back and forth trying to reach a specific spot", "title": "Goal Radius" }, "max_dist": { "type": "number", "default": 0, "description": "Maximum distance this mob will look for items to pick up", - "title": "Maximu Distance" + "title": "Max Distance" + }, + "pickup_based_on_chance": { + "type": "boolean", + "default": false, + "description": "If true, depending on the difficulty, there is a random chance that the mob may not be able to pickup items", + "title": "Pickup Based On Chance" }, "track_target": { "type": "boolean",