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

minecraft:bribeable

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

Overview

minecraft:bribeable is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Lets players give the entity an item as a bribe, which puts it in a bribed state. Vanilla dolphins use this to lead players to treasure.

Fields

FieldTypeDefaultDescription
bribe_cooldownDecimal"2.0"Seconds before the entity can be bribed again.
bribe_itemsListnoneItems that count as a bribe.

Example

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

BP/entities/<name>.json
{
  "minecraft:bribeable": {
    "bribe_cooldown": "2.0",
    "bribe_items": {}
  }
}

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