Raid Garden¶
文档版本:1.21.50.25
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
}
priority
:priority
speed_multiplier
:speed_multiplier
blocks
:array- Blocks that the mob is looking for to eat.
blocks
<any array element>
:reference- A block identifier.
reference:
{
identifier "name"
object "states" : opt
{
['boolean', 'integer', 'string'] "\w*:?\w+" : opt
}
0 "tags"
}
name
:identifier
states
:object
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.
tags
:0- A condition using Molang queries that results to true/false that can be used to query for blocks with certain tags.
eat_delay
:integer- Time in seconds between each time it eats.
full_delay
:integer- Amount of time in seconds before this mob wants to eat again.
initial_eat_delay
:integer- Time in seconds before starting to eat/raid once it arrives at it.
goal_radius
: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
max_to_eat
:integer- Maximum number of things this entity wants to eat.
search_range
:integer- Distance in blocks the mob will look for crops to eat.
search_height
:integer- Height in blocks the mob will look for crops to eat.