Trusting¶
文档版本:1.21.50.25
Defines the rules for a mob to trust players.
架构¶
trusting:
{
number "probability" : opt
event_object "trust_event"
array "trust_items" : opt
{
identifier "<any array element>"
}
}
probability
:number- The chance of the entity trusting with each item use between 0.0 and 1.0, where 1.0 is 100%
trust_event
:event_object- Event to run when this entity becomes trusting.
trust_items
:array- The list of items that can be used to get the entity to trust players.
trust_items