Allows the mob to eat/raid crops out of farms until they are full.
Raid Garden Behavior Properties
Name | Default Value | Type | Description | Example Values |
---|---|---|---|---|
blocks | not set | Array of strings | Blocks that the mob is looking for to eat/raid | Fox: ["minecraft:sweet_berry_bush","minecraft:cave_vines_head_with_berries","minecraft:cave_vines_body_with_berries"] , Rabbit: ["minecraft:carrots"] |
eat_delay | 2 | Integer number | Time in seconds between each time it eats/raids | |
full_delay | 100 | Integer number | Amount of time in seconds before this mob wants to eat/raid again after eating its maximum | |
goal_radius | 0.5 | Decimal number | 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 | Fox: 0.8 , Rabbit: 1 |
initial_eat_delay | 0 | Integer number | Time in seconds before starting to eat/raid once it arrives at it | Fox: 2 |
max_to_eat | 6 | Integer number | Maximum number of crops this entity wants to eat/raid. If set to zero or less then it doesn't have a maximum | |
priority | not set | Integer number | As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. | Fox: 12 , Rabbit: 5 |
search_height | not set | Decimal number | Fox: 2 |
|
search_range | 0 | Integer number | Distance in blocks the mob will look for crops to eat | Fox: 12 , Rabbit: 16 |
speed_multiplier | 1 | Decimal number | Movement speed multiplier of the mob when using this AI Goal | Fox: 1.2 , Rabbit: 0.6 |
Samples
Fox
"minecraft:behavior.raid_garden": {
"priority": 12,
"blocks": [
"minecraft:sweet_berry_bush",
"minecraft:cave_vines_head_with_berries",
"minecraft:cave_vines_body_with_berries"
],
"speed_multiplier": 1.2,
"search_range": 12,
"search_height": 2,
"goal_radius": 0.8,
"max_to_eat": 0,
"initial_eat_delay": 2
}
Rabbit
"minecraft:behavior.raid_garden": {
"priority": 5,
"blocks": [
"minecraft:carrots"
],
"search_range": 16,
"goal_radius": 1,
"speed_multiplier": 0.6
}