minecraft:boostable for you with a switch.Get GodCraftOverview
minecraft:boostable is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Lets a rider speed up a mount by using an item, like a carrot on a stick for pigs.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
boost_items | List | none | Items that give a boost while riding, with how much durability each use costs and what item it turns into when used up. |
duration | Decimal | "3.00" | How long one boost lasts, in seconds. |
speed_multiplier | Decimal | "1.35" | How much faster the mount goes while boosted. 2 means twice as fast. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:boostable": {
"boost_items": {},
"duration": "3.00",
"speed_multiplier": "1.35"
}
}