Entity Documentation - minecraft:trusting

Defines the rules for a mob to trust players.

Trusting Properties

Name Default Value Type Description Example Values
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%. Ocelot: 0.33
trust_event not set Minecraft Event Trigger Event to run when this entity becomes trusting. Ocelot: {"event":"minecraft:on_trust","target":"self"}
trust_items not set Array of strings The list of items that can be used to get the entity to trust players. Ocelot: ["fish","salmon"]

Samples

Ocelot

"minecraft:trusting": {
  "probability": 0.33,
  "trust_items": [
    "fish",
    "salmon"
  ],
  "trust_event": {
    "event": "minecraft:on_trust",
    "target": "self"
  }
}