Updated pickup

This commit is contained in:
DaanV2
2021-09-21 22:36:14 +02:00
parent be4669ff2e
commit b2db28caef

View File

@@ -8,17 +8,44 @@
"properties": { "properties": {
"priority": { "$ref": "types/priority.json" }, "priority": { "$ref": "types/priority.json" },
"speed_multiplier": { "$ref": "types/speed_multiplier.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": { "goal_radius": {
"type": "number", "type": "number",
"default": 0.5, "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" "title": "Goal Radius"
}, },
"max_dist": { "max_dist": {
"type": "number", "type": "number",
"default": 0, "default": 0,
"description": "Maximum distance this mob will look for items to pick up", "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": { "track_target": {
"type": "boolean", "type": "boolean",