Entity Documentation - minecraft:trusting
minecraft:trusting
defines the rules for an entity to trust players.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
probability | 1.00 | Decimal | 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 | String | Event to initiate when the entity becomes trusting. |
trust_items | not set | List | The list of items that can be used to get the entity to trust players. |
Example
"minecraft:trusting": {
"probability": 1.00,
"trust_items": ["emerald", "gold" ],
"trust_event": {
"event": "minecraft:trust",
"target": "self"
}
Vanilla entities examples
ocelot
"minecraft:trusting": {
"probability": 0.33,
"trust_items": [ "fish", "salmon" ],
"trust_event": {
"event": "minecraft:on_trust",
"target": "self"
}
Vanilla entities using minecraft:trusting
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for