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

minecraft:healable

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

Overview

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

FieldTypeDefaultDescription
filtersMinecraft FilternoneConditions that must pass for healing to work.
force_useBoolean"false"Lets the item be used even when the entity already has full health.
itemsArraynoneItems 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": {}
  }
}

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