minecraft:projectile for you with a switch.Get GodCraftOverview
minecraft:projectile is an item component: it goes in the components object of a custom item. Marks the item as ammo that a shooter item (like a bow) can fire, and says which entity flies out.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
minimum_critical_power | number | 0 | How much the shot must be charged before it can land a critical hit. |
projectile_entity | Entity Reference | none | The entity that is launched, for example "minecraft:arrow". |
Example
Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):
BP/items/<name>.json
{
"minecraft:projectile": {
"minimum_critical_power": 0,
"projectile_entity": {}
}
}