1. Wiki
  2. /Entities
  3. /minecraft:trust

minecraft:trust

Don't want to write this by hand? GodCraft sets minecraft:trust for you with a switch.Get GodCraft

Overview

minecraft:trust is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Lets the entity remember several players it trusts, like a fox that trusts the players who bred it.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:trust": {}
}

We use cookies to improve your experience and analyse site traffic. Learn more