minecraft:healable for you with a switch.Get GodCraftOverview
minecraft:healable is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Lets players feed or use items on the entity to restore its health, like giving a wolf meat.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
filters | Minecraft Filter | none | Conditions that must pass for healing to work. |
force_use | Boolean | "false" | Lets the item be used even when the entity already has full health. |
items | Array | none | Items that heal, with how much health each restores and optional effects. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:healable": {
"filters": {},
"force_use": "false",
"items": {}
}
}