minecraft:bribeable for you with a switch.Get GodCraftOverview
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
| Field | Type | Default | Description |
|---|---|---|---|
bribe_cooldown | Decimal | "2.0" | Seconds before the entity can be bribed again. |
bribe_items | List | none | Items 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": {}
}
}