跳转至

Raid Garden

文档版本:1.21.0.24

Allows the mob to eat/raid crops out of farms until they are full.

架构

raid_garden:
{
  priority "priority"
  speed_multiplier "speed_multiplier"
  array "blocks" : opt
  {
    reference "<any array element>"
  }
  integer "eat_delay" : opt
  integer "full_delay" : opt
  integer "initial_eat_delay" : opt
  number "goal_radius" : opt
  integer "max_to_eat" : opt
  integer "search_range" : opt
  integer "search_height" : opt
}
prioritypriority
priority:
integer
speed_multiplierspeed_multiplier
speed_multiplier:
number
blocksarray
Blocks that the mob is looking for to eat.
blocks
<any array element>reference
A block identifier.
identifier:
string
reference:
{
  identifier "name"
  object "states" : opt
  {
    ['boolean', 'integer', 'string'] "\w*:?\w+" : opt
  }
  0 "tags"
}
nameidentifier
statesobject
states
\w*:?\w+['boolean', 'integer', 'string']
The key of property is the name of the block state/property, the value must be the same as the block properties accepted values.
tags0
A condition using Molang queries that results to true/false that can be used to query for blocks with certain tags.
0:
string
eat_delayinteger
Time in seconds between each time it eats.
full_delayinteger
Amount of time in seconds before this mob wants to eat again.
initial_eat_delayinteger
Time in seconds before starting to eat/raid once it arrives at it.
goal_radiusnumber
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
max_to_eatinteger
Maximum number of things this entity wants to eat.
search_rangeinteger
Distance in blocks the mob will look for crops to eat.
search_heightinteger
Height in blocks the mob will look for crops to eat.