编辑

通过


Entity Documentation - minecraft:trusting

Defines the rules for a mob to trust players.

Trusting Properties

Name Default Value Type Description
probability 1 Decimal number The chance of the entity trusting with each item use between 0.0 and 1.0, where 1.0 is 100%.
trust_event not set Object Event to run when this entity becomes trusting. Can be an object with event and target properties, or a simple event string.
trust_event (as String) not set String
trust_items not set Array of strings The list of items that can be used to get the entity to trust players. Can be an array or a single item string.
trust_items (as String) not set String

Samples