From 3008b99eae6d03d21e0ecd48ba54df862b0c88ce Mon Sep 17 00:00:00 2001 From: ChibiMango <32205345+ChibiMango@users.noreply.github.com> Date: Wed, 13 Jul 2022 22:39:23 +0100 Subject: [PATCH] Update harvest_farm_block.json Added properties Updated descriptions Removed undocumented comment --- .../format/behaviors/harvest_farm_block.json | 38 ++++++++++++++----- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/source/behavior/entities/format/behaviors/harvest_farm_block.json b/source/behavior/entities/format/behaviors/harvest_farm_block.json index 5c66486b..3e7a8325 100644 --- a/source/behavior/entities/format/behaviors/harvest_farm_block.json +++ b/source/behavior/entities/format/behaviors/harvest_farm_block.json @@ -2,7 +2,7 @@ "$id": "blockception.minecraft.behavior.entities.minecraft.behavior.harvest_farm_block", "type": "object", "title": "Harvest Farm Block", - "description": "Allows the villager to harvest nearby farms. Can only be used by Villagers.", + "description": "Allows the entity to search within an area for farmland with air above it. If found, the entity will replace the air block by planting a seed item from its inventory on the farmland block. This goal requires \"minecraft:inventory\" and \"minecraft:navigation\" to execute. This goal will not execute if the entity does not have an item in its inventory.", "additionalProperties": false, "required": [], "properties": { @@ -10,21 +10,39 @@ "speed_multiplier": { "$ref": "types/speed_multiplier.json" }, "max_seconds_before_search": { "title": "Maximum Seconds Before Search", - "description": "The maximum amount of time in seconds that the goal can take before searching for the first harvest block.", - "$comment": "UNDOCUMENTED", - "type": "number" + "type": "number", + "default": 1.0, + "description": "The maximum amount of time in seconds that the goal can take before searching for the first harvest block. The time is chosen between 0 and this number." }, "search_cooldown_max_seconds": { "title": "Search Cooldown Maximum Seconds", - "description": "The maximum amount of time in seconds that the goal can take before searching again, after failing to find a block to harvest.", - "$comment": "UNDOCUMENTED", - "type": "number" + "type": "number", + "default": 8.0, + "description": "The maximum amount of time in seconds that the goal can take before searching again, after failing to find a a harvest block already. The time is chosen between 0 and this number." + }, + "search_count": { + "title": "Search Count", + "type": "integer", + "default": 0, + "description": "The number of randomly selected blocks each tick that the entity will check within its search range and height for a valid block to move to. A value of 0 will have the mob check every block within range in one tick." + }, + "search_height": { + "title": "Search Height", + "type": "integer", + "default": 1, + "description": "The height in blocks the entity will search within to find a valid target position." + }, + "search_range": { + "title": "Search Range", + "type": "integer", + "default": 16, + "description": "The distance in blocks the entity will search within to find a valid target position." }, "seconds_until_new_task": { "title": "Seconds Until New Task", - "description": "The amount of time in seconds that the goal will cooldown after a successful reap/sow, before it can start again.", - "$comment": "UNDOCUMENTED", - "type": "number" + "type": "number", + "default": 0.5, + "description": "The amount of time in seconds that the goal will cooldown after a successful reap/sow, before it can start again." } }, "examples": [