Snacking¶
文档版本:1.21.50.25
Allows the mob to take a load off and snack on food that it found nearby.
架构¶
snacking:
{
priority "priority"
array "items" : opt
{
descriptor "<any array element>"
}
descriptor "items"
number "snacking_cooldown" : opt
number "snacking_cooldown_min" : opt
number "snacking_stop_chance" : opt
}
priority
:priority
items
:array- Items that we are interested in snacking on.
items
<any array element>
:descriptor
item
:identifier
item
:object- An object that describes an item.
item
tags
:0- [UNDOCUMENTED] A Molang expression ran against item or block to match.
item_tag
:string- [UNDOCUMENTED] A tag to lookup item or block by.
items
:descriptor- Items that we are interested in snacking on.
snacking_cooldown
:number- The cooldown time in seconds before the mob is able to snack again.
snacking_cooldown_min
:number- The minimum time in seconds before the mob is able to snack again.
snacking_stop_chance
:number- This is the chance that the mob will stop snacking, from 0 to 1.